]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/testsuite/ld-x86-64/x86-64.exp
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)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 11 Jan 2015 16:04:27 +0000 (08:04 -0800)
commit9d1d54d5a7e3b634895e6e434646c706eb55c082
tree1786be2d2d4607f8a33cede8c25bb57519218ebe
parentb2fb95e006c29e2cbe4b30523879fe3640f906ad
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