aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-18 01:16:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-18 01:16:59 +0000
commita5ff979c114a658c69fddd065d702a13c40f6ae1 (patch)
tree1e0500eeb3909e08b5f5580a472e2b7ce57dae57
parentdfe3b6d2a9a452f2fd748416cd8e4c2583e0e8c5 (diff)
Test for push being relaxed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122124 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/ELF/relocation-386.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s
index a442d4298d..f106f89b70 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/test/MC/ELF/relocation-386.s
@@ -174,6 +174,12 @@
// CHECK-NEXT: ('r_sym', 0x00000004)
// CHECK-NEXT: ('r_type', 0x00000020)
// CHECK-NEXT: ),
+// Relocation 23 ($bar) is of type R_386_32 and uses the section
+// CHECK-NEXT: Relocation 0x00000017
+// CHECK-NEXT: (('r_offset',
+// CHECK-NEXT: ('r_sym',
+// CHECK-NEXT: ('r_type', 0x00000001)
+// CHECK-NEXT: ),
.text
bar:
@@ -209,6 +215,7 @@ bar2:
movl zed@TLSLDM(%eax), %eax
movl zed@TPOFF(%eax), %eax
movl zed@DTPOFF(%eax), %eax
+ pushl $bar
.section zedsec,"awT",@progbits
zed: