summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-21 00:48:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-21 00:48:25 +0000
commit26cb15a5496acc2163d0169c74061cc55e9d143f (patch)
tree3cbb1e8f4686dec8ef1828e94ab5a7727f5a03dc /llvm/test
parent58f9f5871657b1b050ea8360fc93148ee2fe53b8 (diff)
downloadbcm5719-llvm-26cb15a5496acc2163d0169c74061cc55e9d143f.tar.gz
bcm5719-llvm-26cb15a5496acc2163d0169c74061cc55e9d143f.zip
Handle PCRel relocations with absolute values. Fixes PR8656.
llvm-svn: 119917
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ELF/relocation-386.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/relocation-386.s b/llvm/test/MC/ELF/relocation-386.s
index c3903236187..48cdc353e30 100644
--- a/llvm/test/MC/ELF/relocation-386.s
+++ b/llvm/test/MC/ELF/relocation-386.s
@@ -98,6 +98,12 @@
// CHECK-NEXT: ('r_sym', 0x0000000b)
// CHECK-NEXT: ('r_type', 0x00000020)
// CHECK-NEXT: ),
+// Relocation 12 (calll 4096) is of type R_386_PC32
+// CHECK-NEXT: # Relocation 0x0000000c
+// CHECK-NEXT: (('r_offset', 0x00000048)
+// CHECK-NEXT: ('r_sym', 0x00000000)
+// CHECK-NEXT: ('r_type', 0x00000002)
+// CHECK-NEXT: ),
.text
bar:
@@ -122,6 +128,7 @@ bar2:
addl foo@GOTNTPOFF(%ebx), %ecx
leal foo@TLSLDM(%ebx), %eax
leal foo@DTPOFF(%eax), %edx
+ calll 4096
.section .rodata.str1.16,"aMS",@progbits,1
.Lfoo:
OpenPOWER on IntegriCloud