]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Only discard space for pc-relative relocs symbols
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 11 Jan 2015 16:04:27 +0000 (08:04 -0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Aug 2017 12:46:33 +0000 (09:46 -0300)
commitfb61b562dfe88aeca8c9a2789cad429cd461ff0b
treec9e917575bc5b71ebcd7c1e6bc625bbb3a71d587
parentf9f1345f203c2ce51db90448333466c8e067514c
Only discard space for pc-relative relocs symbols

When building PIE, we should only discard space for pc-relative relocs
symbols which turn out to need copy relocs.

bfd/

PR ld/17827
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
only discard space for pc-relative relocs symbols which turn
out to need copy relocs.

ld/testsuite/

PR ld/17827
* ld-x86-64/pr17689.out: Updated.
* ld-x86-64/pr17689b.S: Likewise.

* ld-x86-64/pr17827.rd: New file.

* ld-x86-64/x86-64.exp: Run PR ld/17827 test.
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/pr17689.out
ld/testsuite/ld-x86-64/pr17689b.S
ld/testsuite/ld-x86-64/pr17827.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp