diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-08-16 14:25:15 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-08-16 14:25:58 -0700 |
commit | 81e8046dc0daaf56fb10b11931fc77600a4b5920 (patch) | |
tree | 1068ed32d4fc01ea11136b4f2ba7990715703f3d /gdb/source-cache.c | |
parent | 398fdd6086a290748afcce0efabaebb4e363278c (diff) | |
download | gdb-81e8046dc0daaf56fb10b11931fc77600a4b5920.zip gdb-81e8046dc0daaf56fb10b11931fc77600a4b5920.tar.gz gdb-81e8046dc0daaf56fb10b11931fc77600a4b5920.tar.bz2 |
x86-64: Move PIC check for PC-relative relocations back
commit 83924b3846361f2f76f9a6e7b5afa01c0eebbd4f
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 5 18:45:23 2019 -0800
x86-64: Restore PIC check for PCREL reloc against protected symbol
moved PIC check for PC-relative relocations to elf_x86_64_check_relocs.
Since linker defined symbols may not be processed at the time, we need
to move the check back to elf_x86_64_relocate_section.
bfd/
PR ld/24905
* elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
PC-relative relocations back to ...
(elf_x86_64_relocate_section): Here.
ld/
PR ld/24905
* testsuite/ld-x86-64/pr24905-x32.d: New file.
* testsuite/ld-x86-64/pr24905.d: Likewise.
* testsuite/ld-x86-64/pr24905.s: Likewise.
* testsuite/ld-x86-64/pr24905.t: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions