aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/relocation-386.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-18 18:36:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-18 18:36:12 +0000
commitaa85c216334a6adac7e0a154d357b370629dc1bc (patch)
treef8baf27c702a7adc97542719b1e00ef5c95d4528 /test/MC/ELF/relocation-386.s
parent01b58f637c23e203dd95a4709bdd40cdfc31ffa9 (diff)
downloadexternal_llvm-aa85c216334a6adac7e0a154d357b370629dc1bc.zip
external_llvm-aa85c216334a6adac7e0a154d357b370629dc1bc.tar.gz
external_llvm-aa85c216334a6adac7e0a154d357b370629dc1bc.tar.bz2
Produce ELF::R_386_GOTPC relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/relocation-386.s')
-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 18aa9fa..68dc132 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/test/MC/ELF/relocation-386.s
@@ -16,6 +16,12 @@
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym',
// CHECK-NEXT: ('r_type', 4)
+// CHECK-NEXT: ),
+// CHECK-NEXT: # Relocation 2
+// CHECK-NEXT: (('r_offset',
+// CHECK-NEXT: ('r_sym',
+// CHECK-NEXT: ('r_type', 10)
+// CHECK-NEXT: ),
.text
bar:
@@ -24,6 +30,7 @@ bar:
.global bar2
bar2:
calll bar2@PLT
+ addl $_GLOBAL_OFFSET_TABLE_, %ebx
.section .rodata.str1.16,"aMS",@progbits,1
.Lfoo: