aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/relocation-386.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-18 20:47:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-18 20:47:21 +0000
commiteada30479399014c22c7b7edb008177c312eefee (patch)
tree6ba12403e5e26eb0b754ee62a6b188c1d8dd440e /test/MC/ELF/relocation-386.s
parenta8702eaf78e70e1eef8a63882ce97ae6d60edf5b (diff)
downloadexternal_llvm-eada30479399014c22c7b7edb008177c312eefee.zip
external_llvm-eada30479399014c22c7b7edb008177c312eefee.tar.gz
external_llvm-eada30479399014c22c7b7edb008177c312eefee.tar.bz2
Implement R_386_GOT32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/relocation-386.s')
-rw-r--r--test/MC/ELF/relocation-386.s11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s
index a29db54..43a9bef 100644
--- a/test/MC/ELF/relocation-386.s
+++ b/test/MC/ELF/relocation-386.s
@@ -36,13 +36,20 @@
// CHECK-NEXT: ('r_type', 10)
// CHECK-NEXT: ),
-// Relocation 3 (bar3@GOTOFF) is done symbol 6 (bss)
+// Relocation 3 (bar3@GOTOFF) is done with symbol 6 (bss)
// CHECK-NEXT: # Relocation 3
// CHECK-NEXT: (('r_offset',
// CHECK-NEXT: ('r_sym', 6
// CHECK-NEXT: ('r_type',
// CHECK-NEXT: ),
+// Relocation 4 (bar2@GOT) is of type R_386_GOT32
+// CHECK-NEXT: # Relocation 4
+// CHECK-NEXT: (('r_offset',
+// CHECK-NEXT: ('r_sym',
+// CHECK-NEXT: ('r_type', 3
+// CHECK-NEXT: ),
+
.text
bar:
leal .Lfoo@GOTOFF(%ebx), %eax
@@ -57,6 +64,8 @@ bar2:
.local bar3
.comm bar3,1,1
+ movl bar2j@GOT(%eax), %eax
+
.section .rodata.str1.16,"aMS",@progbits,1
.Lfoo:
.asciz "bool llvm::llvm_start_multithreaded()"