diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-11-13 11:07:31 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-11-13 11:09:40 -0800 |
commit | 553d1284b7820ebc88a2e9500d813441c642bdc9 (patch) | |
tree | 18b80b0c803e11ae159d05b588c2bef38cde6b34 /gas/config/tc-i386.c | |
parent | 5784b3caf8e2d55339994067e7f05dd047109b87 (diff) | |
download | gdb-553d1284b7820ebc88a2e9500d813441c642bdc9.zip gdb-553d1284b7820ebc88a2e9500d813441c642bdc9.tar.gz gdb-553d1284b7820ebc88a2e9500d813441c642bdc9.tar.bz2 |
Add assembler support for @gotplt
Obsolete R_X86_64_GOTPLT64 and treat it the same as R_X86_64_GOT64.
bfd/
PR gas/17598
* elf64-x86-64.c (elf_x86_64_check_relocs): Treat
R_X86_64_GOTPLT64 the same as R_X86_64_GOT64.
(elf_x86_64_relocate_section): Likewise.
gas/
PR gas/17598
* config/tc-i386.c (reloc): Support BFD_RELOC_X86_64_GOTPLT64.
gas/testsuite/
PR gas/17598
* gas/i386/reloc64.s: Add @gotplt check.
* gas/i386/reloc64.d: Updated.
* gas/i386/reloc64.l: Likewise.
ld/testsuite/
PR gas/17598
* ld-x86-64/x86-64.exp: Run gotplt1.
* ld-x86-64/gotplt1.d: New file.
* ld-x86-64/gotplt1.s: Likewise.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 51d58c1..f54f077 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2835,6 +2835,9 @@ reloc (unsigned int size, case BFD_RELOC_X86_64_GOT32: return BFD_RELOC_X86_64_GOT64; break; + case BFD_RELOC_X86_64_GOTPLT64: + return BFD_RELOC_X86_64_GOTPLT64; + break; case BFD_RELOC_X86_64_PLTOFF64: return BFD_RELOC_X86_64_PLTOFF64; break; |