This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Don't add PHDR for objcopy/strip or ld script specifying PHDRS
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 12 Dec 2016 19:06:50 -0500
- Subject: [binutils-gdb] Don't add PHDR for objcopy/strip or ld script specifying PHDRS
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 22b05d33b4c870d65972ff8aefdd297ddc66d139 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 22b05d33b4c870d65972ff8aefdd297ddc66d139
Don't add PHDR for objcopy/strip or ld script specifying PHDRS
HPPA64 needs to add a DT_PHDR header for shared libs. That's fine
when linking but shouldn't happen for strip/objcopy. Also PHDR must
come first so there's no need to look at all program headers.
bfd/
* elf64-hppa.c (elf64_hppa_modify_segment_map): Don't add PHDR
for objcopy/strip or when a ld script specifies PHDRS.
ld/
* testsuite/ld-elf/nobits-1.d: Remove xfail for hppa64.
* testsuite/ld-elf/note-1.d: Likewise.
* testsuite/ld-elf/note-2.d: Likewise.