diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-20 18:44:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-20 18:44:20 +0000 |
commit | 7c18fa87a4d4ed8b0cfe1ec65597c748c6d91ca9 (patch) | |
tree | 805831560fd2335ffc166f53d3852bacd28e9c67 /test/MC/ELF/merge.s | |
parent | a201c4c2e604a519665ca55dc49e913628444ddb (diff) | |
download | external_llvm-7c18fa87a4d4ed8b0cfe1ec65597c748c6d91ca9.zip external_llvm-7c18fa87a4d4ed8b0cfe1ec65597c748c6d91ca9.tar.gz external_llvm-7c18fa87a4d4ed8b0cfe1ec65597c748c6d91ca9.tar.bz2 |
Write the section table and the section data in the same order that
gun as does. This makes it a lot easier to compare the output of both
as the addresses are now a lot closer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/merge.s')
-rw-r--r-- | test/MC/ELF/merge.s | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/test/MC/ELF/merge.s b/test/MC/ELF/merge.s index ec02228..2bf8143 100644 --- a/test/MC/ELF/merge.s +++ b/test/MC/ELF/merge.s @@ -22,30 +22,6 @@ zed: .section bar,"ax",@progbits foo: -// Section 4 is "sec1" -// CHECK: # Section 0x00000004 -// CHECK-NEXT: (('sh_name', 0x00000012) # '.sec1' - -// Symbol number 1 is .Lfoo -// CHECK: # Symbol 0x00000001 -// CHECK-NEXT: (('st_name', 0x00000001) # '.Lfoo' - -// Symbol number 2 is foo -// CHECK: # Symbol 0x00000002 -// CHECK-NEXT: (('st_name', 0x00000007) # 'foo' - -// Symbol number 6 is section 4 -// CHECK: # Symbol 0x00000006 -// CHECK-NEXT: (('st_name', 0x00000000) # '' -// CHECK-NEXT: ('st_bind', 0x00000000) -// CHECK-NEXT: ('st_type', 0x00000003) -// CHECK-NEXT: ('st_other', 0x00000000) -// CHECK-NEXT: ('st_shndx', 0x00000004) - -// Symbol number 8 is zed -// CHECK: # Symbol 0x00000008 -// CHECK-NEXT: (('st_name', 0x0000000b) # 'zed' - // Relocation 0 refers to symbol 1 // CHECK: ('_relocations', [ // CHECK-NEXT: # Relocation 0 @@ -95,3 +71,27 @@ foo: // CHECK-NEXT: ('r_addend', 0x00000000) // CHECK-NEXT: ), // CHECK-NEXT: ]) + +// Section 5 is "sec1" +// CHECK: # Section 0x00000005 +// CHECK-NEXT: (('sh_name', 0x00000012) # '.sec1' + +// Symbol number 1 is .Lfoo +// CHECK: # Symbol 0x00000001 +// CHECK-NEXT: (('st_name', 0x00000001) # '.Lfoo' + +// Symbol number 2 is foo +// CHECK: # Symbol 0x00000002 +// CHECK-NEXT: (('st_name', 0x00000007) # 'foo' + +// Symbol number 6 is section 5 +// CHECK: # Symbol 0x00000006 +// CHECK-NEXT: (('st_name', 0x00000000) # '' +// CHECK-NEXT: ('st_bind', 0x00000000) +// CHECK-NEXT: ('st_type', 0x00000003) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000005) + +// Symbol number 8 is zed +// CHECK: # Symbol 0x00000008 +// CHECK-NEXT: (('st_name', 0x0000000b) # 'zed' |