aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/relocation-386.s
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
commit12203cc7c3f7392d62556946a10b2f10205ea63d (patch)
treeab5e680a229e0693ab88fdcae707062941ec25fb /test/MC/ELF/relocation-386.s
parent2f5f90ad3e9b00cf21ae8e3f55b93f0be1d504c3 (diff)
downloadexternal_llvm-12203cc7c3f7392d62556946a10b2f10205ea63d.zip
external_llvm-12203cc7c3f7392d62556946a10b2f10205ea63d.tar.gz
external_llvm-12203cc7c3f7392d62556946a10b2f10205ea63d.tar.bz2
Handle PCRel relocations with absolute values. Fixes PR8656.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119917 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 c390323..48cdc35 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/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: