gdb and binutils branch master updated. 9a926d55ab4b6667f6c35b518d59b902fe490d9d
hjl@sourceware.org
hjl@sourceware.org
Tue Dec 2 23:20:00 GMT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 9a926d55ab4b6667f6c35b518d59b902fe490d9d (commit)
from 5da3ffc99d0ec7d0770b4fcf8830ffe05d39b1b8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a926d55ab4b6667f6c35b518d59b902fe490d9d
commit 9a926d55ab4b6667f6c35b518d59b902fe490d9d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Dec 2 15:14:28 2014 -0800
X86-64: Allow copy relocs for building PIE
This patch allows copy relocs for non-GOT pc-relative relocation in PIE.
bfd/
* elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Always
allow copy relocs for building executables.
(elf_x86_64_check_relocs): Allow copy relocs for non-GOT
pc-relative relocation in shared object.
(elf_x86_64_adjust_dynamic_symbol): Allocate copy relocs for
PIE.
(elf_x86_64_relocate_section): Don't copy a pc-relative
relocation into the output file if the symbol needs copy reloc.
ld/testsuite/
* ld-x86-64/copyreloc-lib.c: New file.
* ld-x86-64/copyreloc-main.c: Likewise.
* ld-x86-64/copyreloc-main.out: Likewise.
* ld-x86-64/copyreloc-main1.rd: Likewise.
* ld-x86-64/copyreloc-main2.rd: Likewise.
* ld-x86-64/x86-64.exp: Run copyreloc tests.
-----------------------------------------------------------------------
Summary of changes:
bfd/ChangeLog | 11 +++++
bfd/elf64-x86-64.c | 46 +++++++++++++++-----
ld/testsuite/ChangeLog | 10 ++++
ld/testsuite/ld-x86-64/copyreloc-lib.c | 1 +
ld/testsuite/ld-x86-64/copyreloc-main.c | 7 +++
.../testsuite/ld-x86-64/copyreloc-main.out | 0
ld/testsuite/ld-x86-64/copyreloc-main1.rd | 3 +
ld/testsuite/ld-x86-64/copyreloc-main2.rd | 4 ++
ld/testsuite/ld-x86-64/x86-64.exp | 32 ++++++++++++++
9 files changed, 103 insertions(+), 11 deletions(-)
create mode 100644 ld/testsuite/ld-x86-64/copyreloc-lib.c
create mode 100644 ld/testsuite/ld-x86-64/copyreloc-main.c
copy binutils/testsuite/binutils-all/empty-file => ld/testsuite/ld-x86-64/copyreloc-main.out (100%)
create mode 100644 ld/testsuite/ld-x86-64/copyreloc-main1.rd
create mode 100644 ld/testsuite/ld-x86-64/copyreloc-main2.rd
hooks/post-receive
--
gdb and binutils
More information about the Binutils-cvs
mailing list