Update tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2011-04-07 23:51:25 +00:00
parent d5321da8d2
commit 9974b8b3cb
30 changed files with 71 additions and 71 deletions

View File

@ -45,7 +45,7 @@
.previous
.byte 1
.previous
# CHECK: (('sh_name', 0x00000012) # 'test1'
# CHECK: (('sh_name', 0x00000044) # 'test1'
# CHECK-NEXT: ('sh_type', 0x00000001)
# CHECK-NEXT: ('sh_flags', 0x00000000)
# CHECK-NEXT: ('sh_addr', 0x00000000)
@ -57,7 +57,7 @@
# CHECK-NEXT: ('sh_entsize', 0x00000000)
# CHECK-NEXT: ('_section_data', '01010101 010101')
# CHECK-NEXT: ),
# CHECK: (('sh_name', 0x00000018) # 'test2'
# CHECK: (('sh_name', 0x0000003e) # 'test2'
# CHECK-NEXT: ('sh_type', 0x00000001)
# CHECK-NEXT: ('sh_flags', 0x00000000)
# CHECK-NEXT: ('sh_addr', 0x00000000)
@ -69,7 +69,7 @@
# CHECK-NEXT: ('sh_entsize', 0x00000000)
# CHECK-NEXT: ('_section_data', '02020202 0202')
# CHECK-NEXT: ),
# CHECK: (('sh_name', 0x0000001e) # 'test3'
# CHECK: (('sh_name', 0x00000038) # 'test3'
# CHECK-NEXT: ('sh_type', 0x00000001)
# CHECK-NEXT: ('sh_flags', 0x00000000)
# CHECK-NEXT: ('sh_addr', 0x00000000)
@ -81,7 +81,7 @@
# CHECK-NEXT: ('sh_entsize', 0x00000000)
# CHECK-NEXT: ('_section_data', '03030303 03')
# CHECK-NEXT: ),
# CHECK: (('sh_name', 0x00000024) # 'test4'
# CHECK: (('sh_name', 0x00000032) # 'test4'
# CHECK-NEXT: ('sh_type', 0x00000001)
# CHECK-NEXT: ('sh_flags', 0x00000000)
# CHECK-NEXT: ('sh_addr', 0x00000000)
@ -93,7 +93,7 @@
# CHECK-NEXT: ('sh_entsize', 0x00000000)
# CHECK-NEXT: ('_section_data', '040404')
# CHECK-NEXT: ),
# CHECK: (('sh_name', 0x0000002a) # 'test5'
# CHECK: (('sh_name', 0x0000002c) # 'test5'
# CHECK-NEXT: ('sh_type', 0x00000001)
# CHECK-NEXT: ('sh_flags', 0x00000000)
# CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -5,7 +5,7 @@
.local foo
.comm foo,2048,16
// CHECK: ('sh_name', 0x0000000d) # '.bss'
// CHECK: ('sh_name', 0x00000007) # '.bss'
// CHECK-NEXT: ('sh_type', 0x00000008)
// CHECK-NEXT: ('sh_flags', 0x00000003)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -27,7 +27,7 @@ f0:
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000')
// CHECK: (('sh_name', 0x00000007) # '.data'
// CHECK: (('sh_name', 0x00000026) # '.data'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000003)
// CHECK-NEXT: ('sh_addr',

View File

@ -8,7 +8,7 @@
.align 8
// CHECK: # Section 0x00000003
// CHECK-NEXT: (('sh_name', 0x0000000d) # '.bss'
// CHECK-NEXT: (('sh_name', 0x00000007) # '.bss'
// CHECK-NEXT: ('sh_type', 0x00000008)
// CHECK-NEXT: ('sh_flags', 0x00000003)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -20,7 +20,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.rodata'
// CHECK-NEXT: (('sh_name', 0x00000026) # '.rodata'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -10,7 +10,7 @@ f:
nop
.cfi_endproc
// CHECK: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -24,11 +24,11 @@ f:
// CHECK-NEXT: ),
// CHECK: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000498)
// CHECK-NEXT: ('sh_offset', 0x00000490)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -11,7 +11,7 @@ f:
.cfi_endproc
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK-NEXT: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -25,11 +25,11 @@ f:
// CHECK-NEXT: ),
// CHECK: # Section 0x00000005
// CHECK-NEXT: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK-NEXT: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x000003a0)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -7,7 +7,7 @@ f:
nop
.cfi_endproc
// CHECK: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -20,11 +20,11 @@ f:
// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 14000000 1c000000 00000000 02000000 00410d06 00000000')
// CHECK-NEXT: ),
// CHECK: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_offset', 0x00000390)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -7,7 +7,7 @@ f:
nop
.cfi_endproc
// CHECK: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -21,11 +21,11 @@ f:
// CHECK-NEXT: ),
// CHECK: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_offset', 0x00000390)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -7,7 +7,7 @@ f:
nop
.cfi_endproc
// CHECK: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -21,11 +21,11 @@ f:
// CHECK-NEXT: ),
// CHECK: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_offset', 0x00000390)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -10,7 +10,7 @@ f:
.cfi_endproc
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK-NEXT: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -24,11 +24,11 @@ f:
// CHECK-NEXT: ),
// CHECK: # Section 0x00000005
// CHECK-NEXT: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK-NEXT: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_offset', 0x00000390)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -14,7 +14,7 @@ f:
nop
.cfi_endproc
// CHECK: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -27,11 +27,11 @@ f:
// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 1c000000 1c000000 00000000 04000000 00410e10 410a0e08 410b0000 00000000')
// CHECK-NEXT: ),
// CHECK: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x000003a0)
// CHECK-NEXT: ('sh_offset', 0x00000398)
// CHECK-NEXT: ('sh_size', 0x00000018)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -213,7 +213,7 @@ f36:
.cfi_endproc
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK-NEXT: (('sh_name', 0x00000011) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -227,11 +227,11 @@ f36:
// CHECK-NEXT: ),
// CHECK: # Section 0x00000005
// CHECK-NEXT: (('sh_name', 0x0000001c) # '.rela.eh_frame'
// CHECK-NEXT: (('sh_name', 0x0000000c) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000e38)
// CHECK-NEXT: ('sh_offset', 0x00000e30)
// CHECK-NEXT: ('sh_size', 0x000006c0)
// CHECK-NEXT: ('sh_link', 0x00000007)
// CHECK-NEXT: ('sh_info', 0x00000004)

View File

@ -4,7 +4,7 @@
// of the file.
// CHECK: # Section 0x00000001
// CHECK-NEXT: (('sh_name', 0x00000030) # '.group'
// CHECK-NEXT: (('sh_name', 0x0000001b) # '.group'
// CHECK-NEXT: ('sh_type', 0x00000011)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -16,7 +16,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000004)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x00000002
// CHECK-NEXT: (('sh_name', 0x00000030) # '.group'
// CHECK-NEXT: (('sh_name', 0x0000001b) # '.group'
// CHECK-NEXT: ('sh_type', 0x00000011)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -28,7 +28,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000004)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x00000003
// CHECK-NEXT: (('sh_name', 0x00000030) # '.group'
// CHECK-NEXT: (('sh_name', 0x0000001b) # '.group'
// CHECK-NEXT: ('sh_type', 0x00000011)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -9,7 +9,7 @@
.zero 1
.align 8
// CHECK: (('sh_name', 0x0000000d) # '.bss'
// CHECK: (('sh_name', 0x00000007) # '.bss'
// CHECK-NEXT: ('sh_type',
// CHECK-NEXT: ('sh_flags'
// CHECK-NEXT: ('sh_addr',

View File

@ -2,7 +2,7 @@
// Test that .debug_line is populated.
// CHECK: (('sh_name', 0x00000012) # '.debug_line'
// CHECK: (('sh_name', 0x00000011) # '.debug_line'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -8,7 +8,7 @@
// FIXME2: We need a debug_line dumper so that we can test the actual contents.
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.debug_line'
// CHECK-NEXT: (('sh_name', 0x00000011) # '.debug_line'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -8,7 +8,7 @@ c:
.asciz "hi\n"
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.debug_line'
// CHECK-NEXT: (('sh_name', 0x0000000c) # '.debug_line'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -14,7 +14,7 @@
// CHECK-NEXT: ('sh_addralign', 0x00000004)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK: ('sh_name', 0x00000007) # '.data'
// CHECK: ('sh_name', 0x00000026) # '.data'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000003)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -25,7 +25,7 @@
// CHECK-NEXT: ('sh_addralign', 0x00000004)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK: ('sh_name', 0x0000000d) # '.bss'
// CHECK: ('sh_name', 0x00000007) # '.bss'
// CHECK-NEXT: ('sh_type', 0x00000008)
// CHECK-NEXT: ('sh_flags', 0x00000003)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -36,7 +36,7 @@
// CHECK-NEXT: ('sh_addralign', 0x00000004)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK: ('sh_name', 0x00000012) # '.shstrtab'
// CHECK: ('sh_name', 0x0000000c) # '.shstrtab'
// CHECK-NEXT: ('sh_type', 0x00000003)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -47,7 +47,7 @@
// CHECK-NEXT: ('sh_addralign', 0x00000001)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK: ('sh_name', 0x0000001c) # '.symtab'
// CHECK: ('sh_name', 0x0000001e) # '.symtab'
// CHECK-NEXT: ('sh_type', 0x00000002)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -58,7 +58,7 @@
// CHECK-NEXT: ('sh_addralign', 0x00000008)
// CHECK-NEXT: ('sh_entsize', 0x00000018)
// CHECK: ('sh_name', 0x00000024) # '.strtab'
// CHECK: ('sh_name', 0x00000016) # '.strtab'
// CHECK-NEXT: ('sh_type', 0x00000003)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -20,7 +20,7 @@ declare void @foo(i64* nocapture) nounwind
;;;;;
; 64: (('sh_name', 0x00000012) # '.rodata.str1.1'
; 64: (('sh_name', 0x0000004e) # '.rodata.str1.1'
; 64-NEXT: ('sh_type', 0x00000001)
; 64-NEXT: ('sh_flags', 0x00000032)
; 64-NEXT: ('sh_addr',
@ -31,7 +31,7 @@ declare void @foo(i64* nocapture) nounwind
; 64-NEXT: ('sh_addralign', 0x00000001)
; 64-NEXT: ('sh_entsize', 0x00000001)
; 64: (('sh_name', 0x00000021) # '.rodata.cst8'
; 64: (('sh_name', 0x00000041) # '.rodata.cst8'
; 64-NEXT: ('sh_type', 0x00000001)
; 64-NEXT: ('sh_flags', 0x00000012)
; 64-NEXT: ('sh_addr',

View File

@ -33,7 +33,7 @@
.quad 42
// CHECK: # Section 0x00000004
// CHECK-NEXT: ('sh_name', 0x00000012) # '.rodata.str1.1'
// CHECK-NEXT: ('sh_name', 0x00000048) # '.rodata.str1.1'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000032)
// CHECK-NEXT: ('sh_addr',
@ -45,7 +45,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000001)
// CHECK: # Section 0x00000005
// CHECK-NEXT: ('sh_name', 0x00000021) # '.rodata.str2.1'
// CHECK-NEXT: ('sh_name', 0x00000039) # '.rodata.str2.1'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000032)
// CHECK-NEXT: ('sh_addr',
@ -57,7 +57,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000002)
// CHECK: # Section 0x00000006
// CHECK-NEXT: ('sh_name', 0x00000030) # '.rodata.cst8
// CHECK-NEXT: ('sh_name', 0x0000002c) # '.rodata.cst8
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000012)
// CHECK-NEXT: ('sh_addr',

View File

@ -5,7 +5,7 @@
addl $_GLOBAL_OFFSET_TABLE_, %ebx
// CHECK: ('sh_name', 0x00000001) # '.text'
// CHECK: ('sh_name', 0x00000005) # '.text'
// CHECK-NEXT: ('sh_type',
// CHECK-NEXT: ('sh_flags',
// CHECK-NEXT: ('sh_addr',

View File

@ -1,6 +1,6 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump --dump-section-data | FileCheck %s
// CHECK: (('sh_name', 0x00000012) # '.comment'
// CHECK: (('sh_name', 0x00000007) # '.comment'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000030)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -74,7 +74,7 @@ foo:
// Section 5 is "sec1"
// CHECK: # Section 0x00000005
// CHECK-NEXT: (('sh_name', 0x00000012) # '.sec1'
// CHECK-NEXT: (('sh_name', 0x00000035) # '.sec1'
// Symbol number 1 is .Lfoo
// CHECK: # Symbol 0x00000001

View File

@ -1,7 +1,7 @@
// RUN: llvm-mc -mc-no-exec-stack -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.note.GNU-stack'
// CHECK-NEXT: (('sh_name', 0x0000000c) # '.note.GNU-stack'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -156,7 +156,7 @@
// Section 4 is bss
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x0000000d) # '.bss'
// CHECK-NEXT: (('sh_name', 0x0000000b) # '.bss'
// CHECK: # Symbol 0x00000001
// CHECK-NEXT: (('st_name', 0x00000005) # '.Lfoo'

View File

@ -6,7 +6,7 @@
jmp -256 # R_X86_64_PC32
// CHECK: # Section 0x00000002
// CHECK-NEXT: (('sh_name', 0x00000012) # '.rela.text'
// CHECK-NEXT: (('sh_name', 0x00000001) # '.rela.text'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -20,7 +20,7 @@ bar:
// CHECK: # Section 0x00000001
// CHECK: (('sh_name', 0x00000001) # '.text'
// CHECK: (('sh_name', 0x00000006) # '.text'
// CHECK: # Relocation 0x00000000
// CHECK-NEXT: (('r_offset', 0x00000001)

View File

@ -17,7 +17,7 @@ defined3:
// Section 1 is .text
// CHECK: # Section 0x00000001
// CHECK-NEXT: (('sh_name', 0x00000001) # '.text'
// CHECK-NEXT: (('sh_name', 0x00000006) # '.text'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000006)
// CHECK-NEXT: ('sh_addr', 0x00000000)

View File

@ -7,10 +7,10 @@
.section .note.GNU-,"",@progbits
.section -.note.GNU,"",@progbits
// CHECK: ('sh_name', 0x00000012) # '.note.GNU-stack'
// CHECK: ('sh_name', 0x00000022) # '.note.GNU-stack2'
// CHECK: ('sh_name', 0x00000033) # '.note.GNU-'
// CHECK: ('sh_name', 0x0000003e) # '-.note.GNU'
// CHECK: ('sh_name', 0x00000038) # '.note.GNU-stack'
// CHECK: ('sh_name', 0x0000008f) # '.note.GNU-stack2'
// CHECK: ('sh_name', 0x000000a0) # '.note.GNU-'
// CHECK: ('sh_name', 0x00000084) # '-.note.GNU'
// Test that the defaults are used
@ -19,7 +19,7 @@
.section .rodata
.section zed, ""
// CHECK: (('sh_name', 0x00000049) # '.init'
// CHECK: (('sh_name', 0x00000012) # '.init'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000006)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -31,7 +31,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x0000000b
// CHECK-NEXT: (('sh_name', 0x0000004f) # '.fini'
// CHECK-NEXT: (('sh_name', 0x00000048) # '.fini'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000006)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -43,7 +43,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x0000000c
// CHECK-NEXT: (('sh_name', 0x00000055) # '.rodata'
// CHECK-NEXT: (('sh_name', 0x00000076) # '.rodata'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -55,7 +55,7 @@
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Section 0x0000000d
// CHECK-NEXT: (('sh_name', 0x0000005d) # 'zed'
// CHECK-NEXT: (('sh_name', 0x00000058) # 'zed'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -68,7 +68,7 @@
// CHECK-NEXT: ),
.section .note.test,"",@note
// CHECK: (('sh_name', 0x00000061) # '.note.test'
// CHECK: (('sh_name', 0x00000007) # '.note.test'
// CHECK-NEXT: ('sh_type', 0x00000007)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -90,7 +90,7 @@ bar:
.section .eh_frame,"a",@unwind
// CHECK: (('sh_name', 0x00000080) # '.eh_frame'
// CHECK: (('sh_name', 0x0000004e) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x70000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
@ -106,5 +106,5 @@ bar:
.section bar-"foo"
.section "foo"
// CHECK: ('sh_name', 0x0000008a) # 'bar-"foo"'
// CHECK: ('sh_name', 0x00000094) # 'foo'
// CHECK: ('sh_name', 0x000000ab) # 'bar-"foo"'
// CHECK: ('sh_name', 0x00000034) # 'foo'

View File

@ -7,4 +7,4 @@
// CHECK: ('_symbols', [
// CHECK: (('st_name', 0x00000001) # '.Lfoo'
// CHECK-NEXT: ('st_bind', 0x00000001)
// CHECK: (('sh_name', 0x0000002f) # '.strtab'
// CHECK: (('sh_name', 0x0000001b) # '.strtab'