diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-04-21 21:15:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-04-21 21:15:45 +0000 |
commit | bc26ff9180a1543ecddf7f24e0e116db3ceeb4cf (patch) | |
tree | 0500da6b472119c44c2dd93a366fc7329fd5b6e1 /test/MC/ELF | |
parent | 67f71d14f26ded38e351d2b7208de70eecc1470a (diff) |
Handle _GLOBAL_OFFSET_TABLE_ in 64 bit mode.
With this MC is able to handle _GLOBAL_OFFSET_TABLE_ in 64 bit mode, which is
needed for medium and large code models.
This fixes pr19470.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF')
-rw-r--r-- | test/MC/ELF/relocation.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/ELF/relocation.s b/test/MC/ELF/relocation.s index 7755f06f3f4..318d60fdc82 100644 --- a/test/MC/ELF/relocation.s +++ b/test/MC/ELF/relocation.s @@ -30,6 +30,9 @@ bar: leaq -1+foo(%rip), %r11 + movl $_GLOBAL_OFFSET_TABLE_, %eax + movabs $_GLOBAL_OFFSET_TABLE_, %rax + // CHECK: Section { // CHECK: Name: .rela.text // CHECK: Relocations [ @@ -56,6 +59,8 @@ bar: // CHECK-NEXT: 0x8F R_X86_64_PC8 foo 0x8F // CHECK-NEXT: 0x91 R_X86_64_PLT32 foo 0xFFFFFFFFFFFFFFFE // CHECK-NEXT: 0x98 R_X86_64_PC32 foo 0xFFFFFFFFFFFFFFFB +// CHECK-NEXT: 0x9D R_X86_64_GOTPC32 _GLOBAL_OFFSET_TABLE_ 0x1 +// CHECK-NEXT: 0xA3 R_X86_64_GOTPC64 _GLOBAL_OFFSET_TABLE_ 0x2 // CHECK-NEXT: ] // CHECK-NEXT: } |