diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-01-11 08:04:27 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-01-11 08:04:27 -0800 |
commit | 9d1d54d5a7e3b634895e6e434646c706eb55c082 (patch) | |
tree | 1786be2d2d4607f8a33cede8c25bb57519218ebe /ld/testsuite/ld-x86-64/pr17689.out | |
parent | b2fb95e006c29e2cbe4b30523879fe3640f906ad (diff) | |
download | gdb-9d1d54d5a7e3b634895e6e434646c706eb55c082.zip gdb-9d1d54d5a7e3b634895e6e434646c706eb55c082.tar.gz gdb-9d1d54d5a7e3b634895e6e434646c706eb55c082.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr17689.out')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr17689.out | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr17689.out b/ld/testsuite/ld-x86-64/pr17689.out index 7ef22e9..38e0352 100644 --- a/ld/testsuite/ld-x86-64/pr17689.out +++ b/ld/testsuite/ld-x86-64/pr17689.out @@ -1 +1,2 @@ PASS +PASS |