This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Non-alloc sections don't belong in PT_LOAD segments
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Fri, 24 Apr 2015 20:39:27 -0400
- Subject: [binutils-gdb] Non-alloc sections don't belong in PT_LOAD segments
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 44bd1acd55dcc15322a5c2d33442cd219ca320c7 ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 44bd1acd55dcc15322a5c2d33442cd219ca320c7
Non-alloc sections don't belong in PT_LOAD segments
Taking them out showed a bug in the powerpc64 backend with .branch_lt
being removed from output_bfd but not from previously set up segment
section maps. Removing the bfd sections meant their sh_flags (and
practically everything else) remaining zero, ie. not SHF_ALLOC,
triggering complaints about "`.branch_lt' can't be allocated in
segment".
include/elf/
* internal.h (ELF_SECTION_IN_SEGMENT_1): Ensure PT_LOAD and
similar segments only contain alloc sections.
ld/
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
Call gld${EMULATION_NAME}_map_segments regardless of need_laying_out.
ld/testsuite/
* ld-powerpc/tocnovar.d: Revert last change.