diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 17:38:07 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-04 17:38:07 +0000 |
commit | e0b87032f5ac8134b7585bdc4a0f2c77158b962d (patch) | |
tree | a465c6ac9e71a8b679905f256720baec19327011 /test/MC | |
parent | 1777299737b0775093db44dab4781c6aedd5659c (diff) | |
download | external_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.zip external_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.tar.gz external_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.tar.bz2 |
Add support for @GOTPTOFF in i386 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ELF/relocation-386.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation-386.s b/test/MC/ELF/relocation-386.s index f7b20b5..25f3450 100644 --- a/test/MC/ELF/relocation-386.s +++ b/test/MC/ELF/relocation-386.s @@ -153,6 +153,13 @@ // CHECK-NEXT: ('r_sym', // CHECK-NEXT: ('r_type', 0x00000001) // CHECK-NEXT: ), +// Relocation 24 (foo@GOTTPOFF(%edx)) is of type R_386_TLS_IE_32 and uses the +// symbol +// CHECK-NEXT: Relocation 0x00000018 +// CHECK-NEXT: (('r_offset', 0x0000008e) +// CHECK-NEXT: ('r_sym', 0x0000000d) +// CHECK-NEXT: ('r_type', 0x00000021) +// CHECK-NEXT: ), // Section 4 is bss // CHECK: # Section 0x00000004 @@ -217,6 +224,7 @@ bar2: movl zed@TPOFF(%eax), %eax movl zed@DTPOFF(%eax), %eax pushl $bar + addl foo@GOTTPOFF(%edx), %eax .section zedsec,"awT",@progbits zed: |