[binutils-gdb] Ignore degenerate PT_LOAD segments

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Sat Feb 17 00:02:00 GMT 2018


*** TEST RESULTS FOR COMMIT 325ba6fb34be799c885fad9287d883e86b835c84 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 325ba6fb34be799c885fad9287d883e86b835c84

Ignore degenerate PT_LOAD segments

Fixes a failure triggered by -z separate-code.  p_memsz is tested
rather than p_filesz for objcopy --only-keep-debug where p_filesz is
set to zero.

	PR 22845
	* elf.c (assign_file_positions_for_non_load_sections): Ignore
	degenerate zero size PT_LOAD segments when finding one overlapping
	the PT_GNU_RELRO segment.



More information about the Gdb-testers mailing list