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/relocation-386.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/relocation-386.s')
-rw-r--r-- | test/MC/ELF/relocation-386.s | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index f106f89..8be2d9c 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -3,33 +3,6 @@ // Test that we produce the correct relocation types and that the relocations // correctly point to the section or the symbol. -// Section 3 is bss -// CHECK: # Section 0x00000003 -// CHECK-NEXT: (('sh_name', 0x0000000d) # '.bss' - -// CHECK: # Symbol 0x00000001 -// CHECK-NEXT: (('st_name', 0x00000005) # '.Lfoo' - -// Symbol 4 is zed -// CHECK: # Symbol 0x00000004 -// CHECK-NEXT: (('st_name', 0x00000035) # 'zed' -// CHECK-NEXT: ('st_value', 0x00000000) -// CHECK-NEXT: ('st_size', 0x00000000) -// CHECK-NEXT: ('st_bind', 0x00000000) -// CHECK-NEXT: ('st_type', 0x00000006) -// CHECK-NEXT: ('st_other', 0x00000000) -// CHECK-NEXT: ('st_shndx', 0x00000004) - -// Symbol 7 is section 3 -// CHECK: # Symbol 0x00000007 -// CHECK-NEXT: (('st_name', 0x00000000) # '' -// CHECK-NEXT: ('st_value', 0x00000000) -// CHECK-NEXT: ('st_size', 0x00000000) -// CHECK-NEXT: ('st_bind', 0x00000000) -// CHECK-NEXT: ('st_type', 0x00000003) -// CHECK-NEXT: ('st_other', 0x00000000) -// CHECK-NEXT: ('st_shndx', 0x00000003) - // CHECK: # Relocation 0x00000000 // CHECK-NEXT: (('r_offset', 0x00000002) // CHECK-NEXT: ('r_sym', 0x00000001) @@ -181,6 +154,34 @@ // CHECK-NEXT: ('r_type', 0x00000001) // CHECK-NEXT: ), +// Section 4 is bss +// CHECK: # Section 0x00000004 +// CHECK-NEXT: (('sh_name', 0x0000000d) # '.bss' + +// CHECK: # Symbol 0x00000001 +// CHECK-NEXT: (('st_name', 0x00000005) # '.Lfoo' + +// Symbol 4 is zed +// CHECK: # Symbol 0x00000004 +// CHECK-NEXT: (('st_name', 0x00000035) # 'zed' +// CHECK-NEXT: ('st_value', 0x00000000) +// CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ('st_bind', 0x00000000) +// CHECK-NEXT: ('st_type', 0x00000006) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000005) + +// Symbol 7 is section 4 +// CHECK: # Symbol 0x00000007 +// CHECK-NEXT: (('st_name', 0x00000000) # '' +// CHECK-NEXT: ('st_value', 0x00000000) +// CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ('st_bind', 0x00000000) +// CHECK-NEXT: ('st_type', 0x00000003) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000004) + + .text bar: leal .Lfoo@GOTOFF(%ebx), %eax |