This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
gdb and binutils branch binutils-2_25-branch updated. 631d040f80d99b7b993abd77c9d064fa8bccd711
- From: hjl at sourceware dot org
- To: binutils-cvs at sourceware dot org
- Date: 3 Dec 2014 13:43:32 -0000
- Subject: gdb and binutils branch binutils-2_25-branch updated. 631d040f80d99b7b993abd77c9d064fa8bccd711
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, binutils-2_25-branch has been updated
via 631d040f80d99b7b993abd77c9d064fa8bccd711 (commit)
from 005cb1192ac986f689938e91c4702dbd49635982 (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=631d040f80d99b7b993abd77c9d064fa8bccd711
commit 631d040f80d99b7b993abd77c9d064fa8bccd711
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_adjust_dynamic_symbol): Allocate copy relocs for
PIE.
(elf_x86_64_allocate_dynrelocs): For PIE, discard space for
relocs against symbols which turn out to need copy relocs.
(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 | 25 +++++++
bfd/elf64-x86-64.c | 71 ++++++++++++++------
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 | 38 +++++++++++
9 files changed, 139 insertions(+), 20 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