diff options
author | Eric Christopher <echristo@apple.com> | 2010-10-19 00:19:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-10-19 00:19:49 +0000 |
commit | 1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92 (patch) | |
tree | a0211d7591ae98a122deeb82bc3fc081200b8283 /test/MC/ELF | |
parent | 3454ed9545d10064d84e45ad9a9ea26dddc255ba (diff) | |
download | external_llvm-1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92.zip external_llvm-1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92.tar.gz external_llvm-1dcb1eafbc0c94dc0cb9cd0d3f002524de8a5a92.tar.bz2 |
Speculatively revert 116753 and 116756 to attempt to fix the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
31 files changed, 534 insertions, 534 deletions
diff --git a/test/MC/ELF/alias.s b/test/MC/ELF/alias.s index fa2d732..4842d27 100644 --- a/test/MC/ELF/alias.s +++ b/test/MC/ELF/alias.s @@ -15,70 +15,70 @@ bar3 = foo3 foo4: bar4 = foo4 -// CHECK: # Symbol 0x1 -// CHECK-NEXT: (('st_name', 0x5) # 'bar' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 5) # 'bar' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x2 -// CHECK-NEXT: (('st_name', 0x1d) # 'bar4' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x2) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 2 +// CHECK-NEXT: (('st_name', 29) # 'bar4' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 2) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x3 -// CHECK-NEXT: (('st_name', 0x1) # 'foo' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 3 +// CHECK-NEXT: (('st_name', 1) # 'foo' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x4 -// CHECK-NEXT: (('st_name', 0xe) # 'foo3' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 4 +// CHECK-NEXT: (('st_name', 14) # 'foo3' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x5 -// CHECK-NEXT: (('st_name', 0x18) # 'foo4' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x2) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 5 +// CHECK-NEXT: (('st_name', 24) # 'foo4' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 2) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x6 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x7 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x8 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x9 -// CHECK-NEXT: (('st_name', 0x13) # 'bar3' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) -// CHECK: # Symbol 0xa -// CHECK-NEXT: (('st_name', 0x9) # 'bar2' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x0) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 6 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 7 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 8 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 9 +// CHECK-NEXT: (('st_name', 19) # 'bar3' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) +// CHECK: # Symbol 10 +// CHECK-NEXT: (('st_name', 9) # 'bar2' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 0) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) diff --git a/test/MC/ELF/align-bss.s b/test/MC/ELF/align-bss.s index 893ef80..b6a3ba8 100644 --- a/test/MC/ELF/align-bss.s +++ b/test/MC/ELF/align-bss.s @@ -5,13 +5,13 @@ .local foo .comm foo,2048,16 -// CHECK: ('sh_name', 0xd) # '.bss' -// CHECK-NEXT: ('sh_type', 0x8) -// CHECK-NEXT: ('sh_flags', 0x3) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x800) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x10) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 13) # '.bss' +// CHECK-NEXT: ('sh_type', 8) +// CHECK-NEXT: ('sh_flags', 3) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 2048) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 16) +// CHECK-NEXT: ('sh_entsize', 0) diff --git a/test/MC/ELF/align-nops.s b/test/MC/ELF/align-nops.s index bf65fa4..b6793ec 100644 --- a/test/MC/ELF/align-nops.s +++ b/test/MC/ELF/align-nops.s @@ -15,26 +15,26 @@ f0: .long 0 .align 8 -// CHECK: (('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) +// CHECK: (('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x10) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x8) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK-NEXT: ('sh_size', 16) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 8) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ('_section_data', '00000000 0f1f4000 00000000 0f1f4000') -// CHECK: (('sh_name', 0x7) # '.data' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x3) +// CHECK: (('sh_name', 7) # '.data' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 3) // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x10) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x8) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK-NEXT: ('sh_size', 16) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 8) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ('_section_data', '00000000 90909090 00000000 00000000') diff --git a/test/MC/ELF/align-size.s b/test/MC/ELF/align-size.s index 3616d3b..4d705cf 100644 --- a/test/MC/ELF/align-size.s +++ b/test/MC/ELF/align-size.s @@ -5,9 +5,9 @@ .zero 4 .align 8 -// CHECK: (('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x8) +// CHECK: (('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 8) diff --git a/test/MC/ELF/align-text.s b/test/MC/ELF/align-text.s index 1f2c9f9..4f4497c 100644 --- a/test/MC/ELF/align-text.s +++ b/test/MC/ELF/align-text.s @@ -6,14 +6,14 @@ .text .zero 1 -// CHECK: (('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x2) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: (('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 2) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ), diff --git a/test/MC/ELF/align.s b/test/MC/ELF/align.s index e1cd340..d375c4a 100644 --- a/test/MC/ELF/align.s +++ b/test/MC/ELF/align.s @@ -7,26 +7,26 @@ .section .rodata,"a",@progbits .align 8 -// CHECK: # Section 0x3 -// CHECK-NEXT: (('sh_name', 0xd) # '.bss' -// CHECK-NEXT: ('sh_type', 0x8) -// CHECK-NEXT: ('sh_flags', 0x3) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x44) -// CHECK-NEXT: ('sh_size', 0x0) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: # Section 3 +// CHECK-NEXT: (('sh_name', 13) # '.bss' +// CHECK-NEXT: ('sh_type', 8) +// CHECK-NEXT: ('sh_flags', 3) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 68) +// CHECK-NEXT: ('sh_size', 0) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Section 0x4 -// CHECK-NEXT: (('sh_name', 0x12) # '.rodata' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x2) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x48) -// CHECK-NEXT: ('sh_size', 0x0) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x8) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK-NEXT: # Section 4 +// CHECK-NEXT: (('sh_name', 18) # '.rodata' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 2) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 72) +// CHECK-NEXT: ('sh_size', 0) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 8) +// CHECK-NEXT: ('sh_entsize', 0) diff --git a/test/MC/ELF/basic-elf.ll b/test/MC/ELF/basic-elf.ll index 187a1f6..f130ced 100644 --- a/test/MC/ELF/basic-elf.ll +++ b/test/MC/ELF/basic-elf.ll @@ -12,100 +12,100 @@ define i32 @main() nounwind { declare i32 @puts(i8* nocapture) nounwind -; 32: ('e_indent[EI_CLASS]', 0x1) -; 32: ('e_indent[EI_DATA]', 0x1) -; 32: ('e_indent[EI_VERSION]', 0x1) +; 32: ('e_indent[EI_CLASS]', 1) +; 32: ('e_indent[EI_DATA]', 1) +; 32: ('e_indent[EI_VERSION]', 1) ; 32: ('_sections', [ ; 32: # Section 0 -; 32: (('sh_name', 0x0) # '' +; 32: (('sh_name', 0) # '' ; 32: # '.text' -; 32: ('st_bind', 0x0) -; 32: ('st_type', 0x3) +; 32: ('st_bind', 0) +; 32: ('st_type', 3) -; 32: ('st_bind', 0x0) -; 32: ('st_type', 0x3) +; 32: ('st_bind', 0) +; 32: ('st_type', 3) -; 32: ('st_bind', 0x0) -; 32: ('st_type', 0x3) +; 32: ('st_bind', 0) +; 32: ('st_type', 3) ; 32: # 'main' -; 32: ('st_bind', 0x1) -; 32-NEXT: ('st_type', 0x2) +; 32: ('st_bind', 1) +; 32-NEXT: ('st_type', 2) ; 32: # 'puts' -; 32: ('st_bind', 0x1) -; 32-NEXT: ('st_type', 0x0) +; 32: ('st_bind', 1) +; 32-NEXT: ('st_type', 0) ; 32: # '.rel.text' ; 32: ('_relocations', [ -; 32: # Relocation 0x0 -; 32: (('r_offset', 0x6) -; 32: ('r_type', 0x1) +; 32: # Relocation 0 +; 32: (('r_offset', 6) +; 32: ('r_type', 1) ; 32: ), -; 32: # Relocation 0x1 -; 32: (('r_offset', 0xb) -; 32: ('r_type', 0x2) +; 32: # Relocation 1 +; 32: (('r_offset', 11) +; 32: ('r_type', 2) ; 32: ), -; 32: # Relocation 0x2 -; 32: (('r_offset', 0x12) -; 32: ('r_type', 0x1) +; 32: # Relocation 2 +; 32: (('r_offset', 18) +; 32: ('r_type', 1) ; 32: ), -; 32: # Relocation 0x3 -; 32: (('r_offset', 0x17) -; 32: ('r_type', 0x2) +; 32: # Relocation 3 +; 32: (('r_offset', 23) +; 32: ('r_type', 2) ; 32: ), ; 32: ]) -; 64: ('e_indent[EI_CLASS]', 0x2) -; 64: ('e_indent[EI_DATA]', 0x1) -; 64: ('e_indent[EI_VERSION]', 0x1) +; 64: ('e_indent[EI_CLASS]', 2) +; 64: ('e_indent[EI_DATA]', 1) +; 64: ('e_indent[EI_VERSION]', 1) ; 64: ('_sections', [ ; 64: # Section 0 -; 64: (('sh_name', 0x0) # '' +; 64: (('sh_name', 0) # '' ; 64: # '.text' -; 64: ('st_bind', 0x0) -; 64: ('st_type', 0x3) +; 64: ('st_bind', 0) +; 64: ('st_type', 3) -; 64: ('st_bind', 0x0) -; 64: ('st_type', 0x3) +; 64: ('st_bind', 0) +; 64: ('st_type', 3) -; 64: ('st_bind', 0x0) -; 64: ('st_type', 0x3) +; 64: ('st_bind', 0) +; 64: ('st_type', 3) ; 64: # 'main' -; 64-NEXT: ('st_bind', 0x1) -; 64-NEXT: ('st_type', 0x2) +; 64-NEXT: ('st_bind', 1) +; 64-NEXT: ('st_type', 2) ; 64: # 'puts' -; 64-NEXT: ('st_bind', 0x1) -; 64-NEXT: ('st_type', 0x0) +; 64-NEXT: ('st_bind', 1) +; 64-NEXT: ('st_type', 0) ; 64: # '.rela.text' ; 64: ('_relocations', [ -; 64: # Relocation 0x0 -; 64: (('r_offset', 0x5) -; 64: ('r_type', 0xa) -; 64: ('r_addend', 0x0) +; 64: # Relocation 0 +; 64: (('r_offset', 5) +; 64: ('r_type', 10) +; 64: ('r_addend', 0) ; 64: ), -; 64: # Relocation 0x1 -; 64: (('r_offset', 0xa) -; 64: ('r_type', 0x2) -; 64: ('r_addend', -0x4) +; 64: # Relocation 1 +; 64: (('r_offset', 10) +; 64: ('r_type', 2) +; 64: ('r_addend', -4) ; 64: ), -; 64: # Relocation 0x2 -; 64: (('r_offset', 0xf) -; 64: ('r_type', 0xa) -; 64: ('r_addend', 0x6) +; 64: # Relocation 2 +; 64: (('r_offset', 15) +; 64: ('r_type', 10) +; 64: ('r_addend', 6) ; 64: ), -; 64: # Relocation 0x3 -; 64: (('r_offset', 0x14) -; 64: ('r_type', 0x2) -; 64: ('r_addend', -0x4) +; 64: # Relocation 3 +; 64: (('r_offset', 20) +; 64: ('r_type', 2) +; 64: ('r_addend', -4) ; 64: ), ; 64: ]) diff --git a/test/MC/ELF/common.s b/test/MC/ELF/common.s index 8d92d98..18b3af5 100644 --- a/test/MC/ELF/common.s +++ b/test/MC/ELF/common.s @@ -8,13 +8,13 @@ .local common1 .comm common1,1,1 -// CHECK: ('st_name', 0x1) # 'common1' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x1) -// CHECK-NEXT: ('st_other', 0x0) +// CHECK: ('st_name', 1) # 'common1' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 1) +// CHECK-NEXT: ('st_other', 0) // CHECK-NEXT: ('st_shndx', -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 1) // Same as common1, but with directives in a different order. @@ -22,25 +22,25 @@ .type common2,@object .comm common2,1,1 -// CHECK: ('st_name', 0x9) # 'common2' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x1) -// CHECK-NEXT: ('st_other', 0x0) +// CHECK: ('st_name', 9) # 'common2' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 1) +// CHECK-NEXT: ('st_other', 0) // CHECK-NEXT: ('st_shndx', -// CHECK-NEXT: ('st_value', 0x1) -// CHECK-NEXT: ('st_size', 0x1) +// CHECK-NEXT: ('st_value', 1) +// CHECK-NEXT: ('st_size', 1) // Test that without an explicit .local we produce a global. .type common3,@object .comm common3,4,4 -// CHECK: ('st_name', 0x11) # 'common3' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x1) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0xfff2) -// CHECK-NEXT: ('st_value', 0x4) -// CHECK-NEXT: ('st_size', 0x4) +// CHECK: ('st_name', 17) # 'common3' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 1) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 65522) +// CHECK-NEXT: ('st_value', 4) +// CHECK-NEXT: ('st_size', 4) // Test that without an explicit .local we produce a global, even if the first @@ -54,10 +54,10 @@ foo: .type common4,@object .comm common4,40,16 -// CHECK: ('st_name', 0x1d) # 'common4' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x1) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0xfff2) -// CHECK-NEXT: ('st_value', 0x10) -// CHECK-NEXT: ('st_size', 0x28) +// CHECK: ('st_name', 29) # 'common4' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 1) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 65522) +// CHECK-NEXT: ('st_value', 16) +// CHECK-NEXT: ('st_size', 40) diff --git a/test/MC/ELF/common2.s b/test/MC/ELF/common2.s index 70f51d8..a95daa5 100644 --- a/test/MC/ELF/common2.s +++ b/test/MC/ELF/common2.s @@ -9,12 +9,12 @@ .zero 1 .align 8 -// CHECK: (('sh_name', 0xd) # '.bss' +// CHECK: (('sh_name', 13) # '.bss' // CHECK-NEXT: ('sh_type', // CHECK-NEXT: ('sh_flags' // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x9) +// CHECK-NEXT: ('sh_size', 9) // CHECK-NEXT: ('sh_link', // CHECK-NEXT: ('sh_info', // CHECK-NEXT: ('sh_addralign', diff --git a/test/MC/ELF/diff.s b/test/MC/ELF/diff.s index 9b662ec..671652c 100644 --- a/test/MC/ELF/diff.s +++ b/test/MC/ELF/diff.s @@ -8,8 +8,8 @@ bar: zed: mov zed+(bar-foo), %eax -// CHECK: # Relocation 0x0 -// CHECK-NEXT: (('r_offset', 0x5) -// CHECK-NEXT: ('r_sym', 0x6) -// CHECK-NEXT: ('r_type', 0xb) -// CHECK-NEXT: ('r_addend', 0x1) +// CHECK: # Relocation 0 +// CHECK-NEXT: (('r_offset', 5) +// CHECK-NEXT: ('r_sym', 6) +// CHECK-NEXT: ('r_type', 11) +// CHECK-NEXT: ('r_addend', 1) diff --git a/test/MC/ELF/empty.s b/test/MC/ELF/empty.s index bfc7d3b..62cbb27 100644 --- a/test/MC/ELF/empty.s +++ b/test/MC/ELF/empty.s @@ -3,68 +3,68 @@ // Test that like gnu as we create text, data and bss by default. Also test // that shstrtab, symtab and strtab are listed in that order. -// CHECK: ('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x0) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 0) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) -// CHECK: ('sh_name', 0x7) # '.data' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x3) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x0) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 7) # '.data' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 3) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 0) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) -// CHECK: ('sh_name', 0xd) # '.bss' -// CHECK-NEXT: ('sh_type', 0x8) -// CHECK-NEXT: ('sh_flags', 0x3) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x0) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 13) # '.bss' +// CHECK-NEXT: ('sh_type', 8) +// CHECK-NEXT: ('sh_flags', 3) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 0) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) -// CHECK: ('sh_name', 0x12) # '.shstrtab' -// CHECK-NEXT: ('sh_type', 0x3) -// CHECK-NEXT: ('sh_flags', 0x0) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x2c) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x1) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 18) # '.shstrtab' +// CHECK-NEXT: ('sh_type', 3) +// CHECK-NEXT: ('sh_flags', 0) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 44) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 1) +// CHECK-NEXT: ('sh_entsize', 0) -// CHECK: ('sh_name', 0x1c) # '.symtab' -// CHECK-NEXT: ('sh_type', 0x2) -// CHECK-NEXT: ('sh_flags', 0x0) -// CHECK-NEXT: ('sh_addr', 0x0) +// CHECK: ('sh_name', 28) # '.symtab' +// CHECK-NEXT: ('sh_type', 2) +// CHECK-NEXT: ('sh_flags', 0) +// CHECK-NEXT: ('sh_addr', 0) // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x60) -// CHECK-NEXT: ('sh_link', 0x6) -// CHECK-NEXT: ('sh_info', 0x4) -// CHECK-NEXT: ('sh_addralign', 0x8) -// CHECK-NEXT: ('sh_entsize', 0x18) +// CHECK-NEXT: ('sh_size', 96) +// CHECK-NEXT: ('sh_link', 6) +// CHECK-NEXT: ('sh_info', 4) +// CHECK-NEXT: ('sh_addralign', 8) +// CHECK-NEXT: ('sh_entsize', 24) -// CHECK: ('sh_name', 0x24) # '.strtab' -// CHECK-NEXT: ('sh_type', 0x3) -// CHECK-NEXT: ('sh_flags', 0x0) -// CHECK-NEXT: ('sh_addr', 0x0) +// CHECK: ('sh_name', 36) # '.strtab' +// CHECK-NEXT: ('sh_type', 3) +// CHECK-NEXT: ('sh_flags', 0) +// CHECK-NEXT: ('sh_addr', 0) // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x1) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x1) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK-NEXT: ('sh_size', 1) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 1) +// CHECK-NEXT: ('sh_entsize', 0) diff --git a/test/MC/ELF/entsize.ll b/test/MC/ELF/entsize.ll index c53fcce..bb289d3 100644 --- a/test/MC/ELF/entsize.ll +++ b/test/MC/ELF/entsize.ll @@ -20,25 +20,25 @@ declare void @foo(i64* nocapture) nounwind ;;;;; -; 64: (('sh_name', 0x12) # '.rodata.str1.1' -; 64-NEXT: ('sh_type', 0x1) -; 64-NEXT: ('sh_flags', 0x32) +; 64: (('sh_name', 18) # '.rodata.str1.1' +; 64-NEXT: ('sh_type', 1) +; 64-NEXT: ('sh_flags', 50) ; 64-NEXT: ('sh_addr', ; 64-NEXT: ('sh_offset', -; 64-NEXT: ('sh_size', 0xd) +; 64-NEXT: ('sh_size', 13) ; 64-NEXT: ('sh_link', ; 64-NEXT: ('sh_info', -; 64-NEXT: ('sh_addralign', 0x1) -; 64-NEXT: ('sh_entsize', 0x1) +; 64-NEXT: ('sh_addralign', 1) +; 64-NEXT: ('sh_entsize', 1) -; 64: (('sh_name', 0x21) # '.rodata.cst8' -; 64-NEXT: ('sh_type', 0x1) -; 64-NEXT: ('sh_flags', 0x12) +; 64: (('sh_name', 33) # '.rodata.cst8' +; 64-NEXT: ('sh_type', 1) +; 64-NEXT: ('sh_flags', 18) ; 64-NEXT: ('sh_addr', ; 64-NEXT: ('sh_offset', -; 64-NEXT: ('sh_size', 0x10) +; 64-NEXT: ('sh_size', 16) ; 64-NEXT: ('sh_link', ; 64-NEXT: ('sh_info', -; 64-NEXT: ('sh_addralign', 0x8) -; 64-NEXT: ('sh_entsize', 0x8) +; 64-NEXT: ('sh_addralign', 8) +; 64-NEXT: ('sh_entsize', 8) diff --git a/test/MC/ELF/entsize.s b/test/MC/ELF/entsize.s index 896082d..0a30fde 100644 --- a/test/MC/ELF/entsize.s +++ b/test/MC/ELF/entsize.s @@ -32,38 +32,38 @@ .quad 42 .quad 42 -// CHECK: # Section 0x4 -// CHECK-NEXT: ('sh_name', 0x12) # '.rodata.str1.1' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x32) +// CHECK: # Section 4 +// CHECK-NEXT: ('sh_name', 18) # '.rodata.str1.1' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 50) // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0xd) +// CHECK-NEXT: ('sh_size', 13) // CHECK-NEXT: ('sh_link', // CHECK-NEXT: ('sh_info', -// CHECK-NEXT: ('sh_addralign', 0x1) -// CHECK-NEXT: ('sh_entsize', 0x1) +// CHECK-NEXT: ('sh_addralign', 1) +// CHECK-NEXT: ('sh_entsize', 1) -// CHECK: # Section 0x5 -// CHECK-NEXT: ('sh_name', 0x21) # '.rodata.str2.1' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x32) +// CHECK: # Section 5 +// CHECK-NEXT: ('sh_name', 33) # '.rodata.str2.1' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 50) // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x10) +// CHECK-NEXT: ('sh_size', 16) // CHECK-NEXT: ('sh_link', // CHECK-NEXT: ('sh_info', -// CHECK-NEXT: ('sh_addralign', 0x1) -// CHECK-NEXT: ('sh_entsize', 0x2) +// CHECK-NEXT: ('sh_addralign', 1) +// CHECK-NEXT: ('sh_entsize', 2) -// CHECK: # Section 0x6 -// CHECK-NEXT: ('sh_name', 0x30) # '.rodata.cst8 -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x12) +// CHECK: # Section 6 +// CHECK-NEXT: ('sh_name', 48) # '.rodata.cst8 +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 18) // CHECK-NEXT: ('sh_addr', // CHECK-NEXT: ('sh_offset', -// CHECK-NEXT: ('sh_size', 0x10) +// CHECK-NEXT: ('sh_size', 16) // CHECK-NEXT: ('sh_link', // CHECK-NEXT: ('sh_info', -// CHECK-NEXT: ('sh_addralign', 0x1) -// CHECK-NEXT: ('sh_entsize', 0x8) +// CHECK-NEXT: ('sh_addralign', 1) +// CHECK-NEXT: ('sh_entsize', 8) diff --git a/test/MC/ELF/file.s b/test/MC/ELF/file.s index 26b9974..1e10531 100644 --- a/test/MC/ELF/file.s +++ b/test/MC/ELF/file.s @@ -4,20 +4,20 @@ .file "foo" foa: -// CHECK: # Symbol 0x1 -// CHECK-NEXT: (('st_name', 0x1) # 'foo' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x4) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0xfff1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 1) # 'foo' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 4) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 65521) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), -// CHECK-NEXT: # Symbol 0x2 -// CHECK-NEXT: (('st_name', 0x5) # 'foa' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 2 +// CHECK-NEXT: (('st_name', 5) # 'foa' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) diff --git a/test/MC/ELF/got.s b/test/MC/ELF/got.s index e807ab1..866d25b 100644 --- a/test/MC/ELF/got.s +++ b/test/MC/ELF/got.s @@ -6,20 +6,20 @@ movl foo@GOT, %eax movl foo@GOTPCREL(%rip), %eax -// CHECK: (('st_name', 0x5) # '_GLOBAL_OFFSET_TABLE_' -// CHECK-NEXT: ('st_bind', 0x1) +// CHECK: (('st_name', 5) # '_GLOBAL_OFFSET_TABLE_' +// CHECK-NEXT: ('st_bind', 1) // CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0x0 +// CHECK-NEXT: # Relocation 0 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0x3) +// CHECK-NEXT: ('r_type', 3) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), -// CHECK-NEXT: # Relocation 0x1 +// CHECK-NEXT: # Relocation 1 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0x9) +// CHECK-NEXT: ('r_type', 9) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/local-reloc.s b/test/MC/ELF/local-reloc.s index 5d4cc25..30c0f68 100644 --- a/test/MC/ELF/local-reloc.s +++ b/test/MC/ELF/local-reloc.s @@ -7,24 +7,24 @@ foo: // Section number 1 is .text -// CHECK: # Section 0x1 -// CHECK-next: (('sh_name', 0x1) # '.text' +// CHECK: # Section 1 +// CHECK-next: (('sh_name', 1) # '.text' // Symbol number 2 is section number 1 -// CHECK: # Symbol 0x2 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x3) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x1) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK: # Symbol 2 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 3) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 1) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // Relocation refers to symbol number 2 // CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0x0 +// CHECK-NEXT: # Relocation 0 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x2) +// CHECK-NEXT: ('r_sym', 2) // CHECK-NEXT: ('r_type', // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), diff --git a/test/MC/ELF/merge.s b/test/MC/ELF/merge.s index 12a9438..f9cbc1e 100644 --- a/test/MC/ELF/merge.s +++ b/test/MC/ELF/merge.s @@ -23,75 +23,75 @@ zed: foo: // Section 4 is "sec1" -// CHECK: # Section 0x4 -// CHECK-NEXT: (('sh_name', 0x12) # '.sec1' +// CHECK: # Section 4 +// CHECK-NEXT: (('sh_name', 18) # '.sec1' // Symbol number 1 is .Lfoo -// CHECK: # Symbol 0x1 -// CHECK-NEXT: (('st_name', 0x1) # '.Lfoo' +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 1) # '.Lfoo' // Symbol number 2 is foo -// CHECK: # Symbol 0x2 -// CHECK-NEXT: (('st_name', 0x7) # 'foo' +// CHECK: # Symbol 2 +// CHECK-NEXT: (('st_name', 7) # 'foo' // Symbol number 6 is section 4 -// CHECK: # Symbol 0x6 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x3) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x4) +// CHECK: # Symbol 6 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 3) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 4) // Symbol number 8 is zed -// CHECK: # Symbol 0x8 -// CHECK-NEXT: (('st_name', 0xb) # 'zed' +// CHECK: # Symbol 8 +// CHECK-NEXT: (('st_name', 11) # 'zed' // Relocation 0 refers to symbol 1 // CHECK: ('_relocations', [ // CHECK-NEXT: # Relocation 0 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x1) -// CHECK-NEXT: ('r_type', 0x2 +// CHECK-NEXT: ('r_sym', 1) +// CHECK-NEXT: ('r_type', 2 // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // Relocation 1 refers to symbol 6 -// CHECK-NEXT: # Relocation 0x1 +// CHECK-NEXT: # Relocation 1 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x6) -// CHECK-NEXT: ('r_type', 0xa) +// CHECK-NEXT: ('r_sym', 6) +// CHECK-NEXT: ('r_type', 10) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // Relocation 2 refers to symbol 1 -// CHECK-NEXT: # Relocation 0x2 +// CHECK-NEXT: # Relocation 2 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x1) -// CHECK-NEXT: ('r_type', 0xa +// CHECK-NEXT: ('r_sym', 1) +// CHECK-NEXT: ('r_type', 10 // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // Relocation 3 refers to symbol 2 -// CHECK-NEXT: # Relocation 0x3 +// CHECK-NEXT: # Relocation 3 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0x4 +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 4 // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // Relocation 4 refers to symbol 2 -// CHECK-NEXT: # Relocation 0x4 +// CHECK-NEXT: # Relocation 4 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0x9 +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 9 // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // Relocation 5 refers to symbol 8 -// CHECK-NEXT: # Relocation 0x5 -// CHECK-NEXT: (('r_offset', 0x23) -// CHECK-NEXT: ('r_sym', 0x8) -// CHECK-NEXT: ('r_type', 0xb) -// CHECK-NEXT: ('r_addend', 0x0) +// CHECK-NEXT: # Relocation 5 +// CHECK-NEXT: (('r_offset', 35) +// CHECK-NEXT: ('r_sym', 8) +// CHECK-NEXT: ('r_type', 11) +// CHECK-NEXT: ('r_addend', 0) // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/norelocation.s b/test/MC/ELF/norelocation.s index 6d6a9a1..3e9f6e0 100644 --- a/test/MC/ELF/norelocation.s +++ b/test/MC/ELF/norelocation.s @@ -3,16 +3,16 @@ call bar bar: -// CHECK: ('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x5) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 5) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ('_section_data', 'e8000000 00') // CHECK-NOT: .rela.text // CHECK: shstrtab diff --git a/test/MC/ELF/pic-diff.s b/test/MC/ELF/pic-diff.s index 176948c..50117d4 100644 --- a/test/MC/ELF/pic-diff.s +++ b/test/MC/ELF/pic-diff.s @@ -1,21 +1,21 @@ // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s -// CHECK: # Symbol 0x5 -// CHECK-NEXT: (('st_name', 0x5) # 'baz' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x0) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x0) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK: # Symbol 5 +// CHECK-NEXT: (('st_name', 5) # 'baz' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 0) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 0) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), // CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0x0 -// CHECK-NEXT: (('r_offset', 0xc) -// CHECK-NEXT: ('r_sym', 0x5) -// CHECK-NEXT: ('r_type', 0x2) -// CHECK-NEXT: ('r_addend', 0x8) +// CHECK-NEXT: # Relocation 0 +// CHECK-NEXT: (('r_offset', 12) +// CHECK-NEXT: ('r_sym', 5) +// CHECK-NEXT: ('r_type', 2) +// CHECK-NEXT: ('r_addend', 8) // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/plt.s b/test/MC/ELF/plt.s index 92d03b1..2cbcf5a 100644 --- a/test/MC/ELF/plt.s +++ b/test/MC/ELF/plt.s @@ -5,10 +5,10 @@ jmp foo@PLT // CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0x0 +// CHECK-NEXT: # Relocation 0 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0x4) +// CHECK-NEXT: ('r_type', 4) // CHECK-NEXT: ('r_addend', // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/relax.s b/test/MC/ELF/relax.s index ed9b7dc..5c5e7e3 100644 --- a/test/MC/ELF/relax.s +++ b/test/MC/ELF/relax.s @@ -12,27 +12,27 @@ foo: jmp bar jmp foo -// CHECK: ('sh_name', 0x1) # '.text' -// CHECK-NEXT: ('sh_type', 0x1) -// CHECK-NEXT: ('sh_flags', 0x6) -// CHECK-NEXT: ('sh_addr', 0x0) -// CHECK-NEXT: ('sh_offset', 0x40) -// CHECK-NEXT: ('sh_size', 0x7) -// CHECK-NEXT: ('sh_link', 0x0) -// CHECK-NEXT: ('sh_info', 0x0) -// CHECK-NEXT: ('sh_addralign', 0x4) -// CHECK-NEXT: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 1) # '.text' +// CHECK-NEXT: ('sh_type', 1) +// CHECK-NEXT: ('sh_flags', 6) +// CHECK-NEXT: ('sh_addr', 0) +// CHECK-NEXT: ('sh_offset', 64) +// CHECK-NEXT: ('sh_size', 7) +// CHECK-NEXT: ('sh_link', 0) +// CHECK-NEXT: ('sh_info', 0) +// CHECK-NEXT: ('sh_addralign', 4) +// CHECK-NEXT: ('sh_entsize', 0) // CHECK-NEXT: ('_section_data', 'ebfee900 000000') -// CHECK: # Symbol 0x5 -// CHECK-NEXT: (('st_name', 0x5) # 'foo' +// CHECK: # Symbol 5 +// CHECK-NEXT: (('st_name', 5) # 'foo' // CHECK: .rela.text // CHECK: ('_relocations', [ -// CHECK-NEXT: Relocation 0x0 -// CHECK-NEXT: (('r_offset', 0x3) -// CHECK-NEXT: ('r_sym', 0x5) -// CHECK-NEXT: ('r_type', 0x2) -// CHECK-NEXT: ('r_addend', -0x4) +// CHECK-NEXT: Relocation 0 +// CHECK-NEXT: (('r_offset', 3) +// CHECK-NEXT: ('r_sym', 5) +// CHECK-NEXT: ('r_type', 2) +// CHECK-NEXT: ('r_addend', -4) // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index e87c25a..43a9bef 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -4,50 +4,50 @@ // to .Lfoo uses the symbol and not the section. // Section 3 is bss -// CHECK: # Section 0x3 -// CHECK-NEXT: (('sh_name', 0xd) # '.bss' +// CHECK: # Section 3 +// CHECK-NEXT: (('sh_name', 13) # '.bss' -// CHECK: # Symbol 0x1 -// CHECK-NEXT: (('st_name', 0x5) # '.Lfoo' +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 5) # '.Lfoo' // Symbol 6 is section 3 -// CHECK: # Symbol 0x6 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) -// CHECK-NEXT: ('st_bind', 0x0) -// CHECK-NEXT: ('st_type', 0x3) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x3) +// CHECK: # Symbol 6 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) +// CHECK-NEXT: ('st_bind', 0) +// CHECK-NEXT: ('st_type', 3) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 3) -// CHECK: # Relocation 0x0 -// CHECK-NEXT: (('r_offset', 0x2) -// CHECK-NEXT: ('r_sym', 0x1) -// CHECK-NEXT: ('r_type', 0x9) +// CHECK: # Relocation 0 +// CHECK-NEXT: (('r_offset', 2) +// CHECK-NEXT: ('r_sym', 1) +// CHECK-NEXT: ('r_type', 9) // CHECK-NEXT: ), -// CHECK-NEXT: # Relocation 0x1 +// CHECK-NEXT: # Relocation 1 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0x4) +// CHECK-NEXT: ('r_type', 4) // CHECK-NEXT: ), -// CHECK-NEXT: # Relocation 0x2 +// CHECK-NEXT: # Relocation 2 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0xa) +// CHECK-NEXT: ('r_type', 10) // CHECK-NEXT: ), // Relocation 3 (bar3@GOTOFF) is done with symbol 6 (bss) -// CHECK-NEXT: # Relocation 0x3 +// CHECK-NEXT: # Relocation 3 // CHECK-NEXT: (('r_offset', -// CHECK-NEXT: ('r_sym', 0x6 +// CHECK-NEXT: ('r_sym', 6 // CHECK-NEXT: ('r_type', // CHECK-NEXT: ), // Relocation 4 (bar2@GOT) is of type R_386_GOT32 -// CHECK-NEXT: # Relocation 0x4 +// CHECK-NEXT: # Relocation 4 // CHECK-NEXT: (('r_offset', // CHECK-NEXT: ('r_sym', -// CHECK-NEXT: ('r_type', 0x3 +// CHECK-NEXT: ('r_type', 3 // CHECK-NEXT: ), .text diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s index 265c7f7..45c863e 100644 --- a/test/MC/ELF/relocation.s +++ b/test/MC/ELF/relocation.s @@ -10,48 +10,48 @@ bar: movq bar, %rdx // R_X86_64_32S .long bar // R_X86_64_32 -// CHECK: # Section 0x1 -// CHECK: (('sh_name', 0x1) # '.text' - -// CHECK: # Symbol 0x2 -// CHECK: (('st_name', 0x0) # '' -// CHECK: ('st_bind', 0x0) -// CHECK ('st_type', 0x3) -// CHECK: ('st_other', 0x0) -// CHECK: ('st_shndx', 0x1) - -// CHECK: # Relocation 0x0 -// CHECK-NEXT: (('r_offset', 0x1) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xa) +// CHECK: # Section 1 +// CHECK: (('sh_name', 1) # '.text' + +// CHECK: # Symbol 2 +// CHECK: (('st_name', 0) # '' +// CHECK: ('st_bind', 0) +// CHECK ('st_type', 3) +// CHECK: ('st_other', 0) +// CHECK: ('st_shndx', 1) + +// CHECK: # Relocation 0 +// CHECK-NEXT: (('r_offset', 1) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 10) // CHECK-NEXT: ('r_addend', -// CHECK: # Relocation 0x1 -// CHECK-NEXT: (('r_offset', 0x8) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xb) +// CHECK: # Relocation 1 +// CHECK-NEXT: (('r_offset', 8) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 11) // CHECK-NEXT: ('r_addend', -// CHECK: # Relocation 0x2 -// CHECK-NEXT: (('r_offset', 0x13) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xb) +// CHECK: # Relocation 2 +// CHECK-NEXT: (('r_offset', 19) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 11) // CHECK-NEXT: ('r_addend', -// CHECK: # Relocation 0x3 -// CHECK-NEXT: (('r_offset', 0x1a) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xb) +// CHECK: # Relocation 3 +// CHECK-NEXT: (('r_offset', 26) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 11) // CHECK-NEXT: ('r_addend', -// CHECK: # Relocation 0x4 -// CHECK-NEXT: (('r_offset', 0x22) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xb) +// CHECK: # Relocation 4 +// CHECK-NEXT: (('r_offset', 34) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 11) // CHECK-NEXT: ('r_addend', -// CHECK: # Relocation 0x5 -// CHECK-NEXT: (('r_offset', 0x26) -// CHECK-NEXT: ('r_sym', 0x2) -// CHECK-NEXT: ('r_type', 0xa) +// CHECK: # Relocation 5 +// CHECK-NEXT: (('r_offset', 38) +// CHECK-NEXT: ('r_sym', 2) +// CHECK-NEXT: ('r_type', 10) // CHECK-NEXT: ('r_addend', diff --git a/test/MC/ELF/section.s b/test/MC/ELF/section.s index e5a8e27..4622cb4 100644 --- a/test/MC/ELF/section.s +++ b/test/MC/ELF/section.s @@ -6,6 +6,6 @@ .section .note.GNU-,"",@progbits .section -.note.GNU,"",@progbits -// CHECK: ('sh_name', 0x12) # '.note.GNU-stack' -// CHECK: ('sh_name', 0x22) # '.note.GNU-' -// CHECK: ('sh_name', 0x2d) # '-.note.GNU' +// CHECK: ('sh_name', 18) # '.note.GNU-stack' +// CHECK: ('sh_name', 34) # '.note.GNU-' +// CHECK: ('sh_name', 45) # '-.note.GNU' diff --git a/test/MC/ELF/size.s b/test/MC/ELF/size.s index c5f5222..a19bce0 100644 --- a/test/MC/ELF/size.s +++ b/test/MC/ELF/size.s @@ -2,8 +2,8 @@ // Mostly a test that this doesn't crash anymore. -// CHECK: # Symbol 0x4 -// CHECK-NEXT: (('st_name', 0x1) # 'foo' -// CHECK-NEXT: ('st_bind', 0x1) +// CHECK: # Symbol 4 +// CHECK-NEXT: (('st_name', 1) # 'foo' +// CHECK-NEXT: ('st_bind', 1) .size foo, .Lbar-foo diff --git a/test/MC/ELF/sleb.s b/test/MC/ELF/sleb.s index 99631bf..c3e471f 100644 --- a/test/MC/ELF/sleb.s +++ b/test/MC/ELF/sleb.s @@ -19,9 +19,9 @@ foo: .sleb128 8193 -// ELF_32: ('sh_name', 0x1) # '.text' +// ELF_32: ('sh_name', 1) # '.text' // ELF_32: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000') -// ELF_64: ('sh_name', 0x1) # '.text' +// ELF_64: ('sh_name', 1) # '.text' // ELF_64: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000') // MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') // MACHO_32: ('_section_data', '00017f3f 40c000bf 7fff3f80 4081c000') diff --git a/test/MC/ELF/uleb.s b/test/MC/ELF/uleb.s index 80e48b3..d8d1727 100644 --- a/test/MC/ELF/uleb.s +++ b/test/MC/ELF/uleb.s @@ -12,9 +12,9 @@ foo: .uleb128 16383 .uleb128 16384 -// ELF_32: ('sh_name', 0x1) # '.text' +// ELF_32: ('sh_name', 1) # '.text' // ELF_32: ('_section_data', '00017f80 01ff7f80 8001') -// ELF_64: ('sh_name', 0x1) # '.text' +// ELF_64: ('sh_name', 1) # '.text' // ELF_64: ('_section_data', '00017f80 01ff7f80 8001') // MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') // MACHO_32: ('_section_data', '00017f80 01ff7f80 8001') diff --git a/test/MC/ELF/undef.s b/test/MC/ELF/undef.s index 9c2564f..1f6a52b 100644 --- a/test/MC/ELF/undef.s +++ b/test/MC/ELF/undef.s @@ -19,27 +19,27 @@ movsd .Lsym8(%rip), %xmm1 // CHECK: ('_symbols', [ -// CHECK-NEXT: # Symbol 0x0 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x1 -// CHECK-NEXT: (('st_name', 0xd) # '.Lsym8' -// CHECK: # Symbol 0x2 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x3 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x4 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x5 -// CHECK-NEXT: (('st_name', 0x0) # '' -// CHECK: # Symbol 0x6 -// CHECK-NEXT: (('st_name', 0x1) # '.Lsym1' -// CHECK: # Symbol 0x7 -// CHECK-NEXT: (('st_name', 0x8) # 'sym6' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK-NEXT: ('st_type', 0x1) -// CHECK-NEXT: ('st_other', 0x0) -// CHECK-NEXT: ('st_shndx', 0x0) -// CHECK-NEXT: ('st_value', 0x0) -// CHECK-NEXT: ('st_size', 0x0) +// CHECK-NEXT: # Symbol 0 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 1 +// CHECK-NEXT: (('st_name', 13) # '.Lsym8' +// CHECK: # Symbol 2 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 3 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 4 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 5 +// CHECK-NEXT: (('st_name', 0) # '' +// CHECK: # Symbol 6 +// CHECK-NEXT: (('st_name', 1) # '.Lsym1' +// CHECK: # Symbol 7 +// CHECK-NEXT: (('st_name', 8) # 'sym6' +// CHECK-NEXT: ('st_bind', 1) +// CHECK-NEXT: ('st_type', 1) +// CHECK-NEXT: ('st_other', 0) +// CHECK-NEXT: ('st_shndx', 0) +// CHECK-NEXT: ('st_value', 0) +// CHECK-NEXT: ('st_size', 0) // CHECK-NEXT: ), // CHECK-NEXT: ]) diff --git a/test/MC/ELF/undef2.s b/test/MC/ELF/undef2.s index a02b8b1..764f1d7 100644 --- a/test/MC/ELF/undef2.s +++ b/test/MC/ELF/undef2.s @@ -5,6 +5,6 @@ je .Lfoo // CHECK: ('_symbols', [ -// CHECK: (('st_name', 0x1) # '.Lfoo' -// CHECK-NEXT: ('st_bind', 0x1) -// CHECK: (('sh_name', 0x24) # '.strtab' +// CHECK: (('st_name', 1) # '.Lfoo' +// CHECK-NEXT: ('st_bind', 1) +// CHECK: (('sh_name', 36) # '.strtab' diff --git a/test/MC/ELF/weak.s b/test/MC/ELF/weak.s index 7f1abd9..0b93a87 100644 --- a/test/MC/ELF/weak.s +++ b/test/MC/ELF/weak.s @@ -9,22 +9,22 @@ .weak bar bar: -//CHECK: # Symbol 0x4 -//CHECK-NEXT: (('st_name', 0x5) # 'bar' -//CHECK-NEXT: ('st_bind', 0x2) -//CHECK-NEXT: ('st_type', 0x0) -//CHECK-NEXT: ('st_other', 0x0) -//CHECK-NEXT: ('st_shndx', 0x1) -//CHECK-NEXT: ('st_value', 0x0) -//CHECK-NEXT: ('st_size', 0x0) +//CHECK: # Symbol 4 +//CHECK-NEXT: (('st_name', 5) # 'bar' +//CHECK-NEXT: ('st_bind', 2) +//CHECK-NEXT: ('st_type', 0) +//CHECK-NEXT: ('st_other', 0) +//CHECK-NEXT: ('st_shndx', 1) +//CHECK-NEXT: ('st_value', 0) +//CHECK-NEXT: ('st_size', 0) //CHECK-NEXT: ), -//CHECK-NEXT: # Symbol 0x5 -//CHECK: (('st_name', 0x1) # 'foo' -//CHECK-NEXT: ('st_bind', 0x2) -//CHECK-NEXT: ('st_type', 0x0) -//CHECK-NEXT: ('st_other', 0x0) -//CHECK-NEXT: ('st_shndx', 0x0) -//CHECK-NEXT: ('st_value', 0x0) -//CHECK-NEXT: ('st_size', 0x0) +//CHECK-NEXT: # Symbol 5 +//CHECK: (('st_name', 1) # 'foo' +//CHECK-NEXT: ('st_bind', 2) +//CHECK-NEXT: ('st_type', 0) +//CHECK-NEXT: ('st_other', 0) +//CHECK-NEXT: ('st_shndx', 0) +//CHECK-NEXT: ('st_value', 0) +//CHECK-NEXT: ('st_size', 0) //CHECK-NEXT: ), //CHECK-NEXT: ]) diff --git a/test/MC/ELF/zero.s b/test/MC/ELF/zero.s index 77223c3..a7518e1 100644 --- a/test/MC/ELF/zero.s +++ b/test/MC/ELF/zero.s @@ -3,14 +3,14 @@ .zero 4 .zero 1,42 -// CHECK: ('sh_name', 0x1) # '.text' -// CHECK: ('sh_type', 0x1) -// CHECK: ('sh_flags', 0x6) -// CHECK: ('sh_addr', 0x0) -// CHECK: ('sh_offset', 0x40) -// CHECK: ('sh_size', 0x5) -// CHECK: ('sh_link', 0x0) -// CHECK: ('sh_info', 0x0) -// CHECK: ('sh_addralign', 0x4) -// CHECK: ('sh_entsize', 0x0) +// CHECK: ('sh_name', 1) # '.text' +// CHECK: ('sh_type', 1) +// CHECK: ('sh_flags', 6) +// CHECK: ('sh_addr', 0) +// CHECK: ('sh_offset', 64) +// CHECK: ('sh_size', 5) +// CHECK: ('sh_link', 0) +// CHECK: ('sh_info', 0) +// CHECK: ('sh_addralign', 4) +// CHECK: ('sh_entsize', 0) // CHECK: ('_section_data', '00000000 2a') |