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 | 1557fd6d39e9b271d98f9c15044fb6bee8fb8041 (patch) | |
tree | bc587e15e8da6d9101a7aa1cc05234fa78311381 /llvm/test/MC/ELF/pic-diff.s | |
parent | e762020bb98d6d48166b737c47f6252b7521857c (diff) | |
download | bcm5719-llvm-1557fd6d39e9b271d98f9c15044fb6bee8fb8041.tar.gz bcm5719-llvm-1557fd6d39e9b271d98f9c15044fb6bee8fb8041.zip |
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.
llvm-svn: 127972
Diffstat (limited to 'llvm/test/MC/ELF/pic-diff.s')
-rw-r--r-- | llvm/test/MC/ELF/pic-diff.s | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/MC/ELF/pic-diff.s b/llvm/test/MC/ELF/pic-diff.s index d1fc909dba8..c2f96c25063 100644 --- a/llvm/test/MC/ELF/pic-diff.s +++ b/llvm/test/MC/ELF/pic-diff.s @@ -1,5 +1,14 @@ // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s +// CHECK: ('_relocations', [ +// CHECK-NEXT: # Relocation 0x00000000 +// CHECK-NEXT: (('r_offset', 0x0000000c) +// CHECK-NEXT: ('r_sym', 0x00000005) +// CHECK-NEXT: ('r_type', 0x00000002) +// CHECK-NEXT: ('r_addend', 0x00000008) +// CHECK-NEXT: ), +// CHECK-NEXT: ]) + // CHECK: # Symbol 0x00000005 // CHECK-NEXT: (('st_name', 0x00000005) # 'baz' // CHECK-NEXT: ('st_bind', 0x00000001) @@ -10,15 +19,6 @@ // CHECK-NEXT: ('st_size', 0x0000000000000000) // CHECK-NEXT: ), -// CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0x00000000 -// CHECK-NEXT: (('r_offset', 0x0000000c) -// CHECK-NEXT: ('r_sym', 0x00000005) -// CHECK-NEXT: ('r_type', 0x00000002) -// CHECK-NEXT: ('r_addend', 0x00000008) -// CHECK-NEXT: ), -// CHECK-NEXT: ]) - .zero 4 .data |