Ignore degenerate PT_LOAD segments
authorAlan Modra <amodra@gmail.com>
Fri, 16 Feb 2018 22:51:17 +0000 (09:21 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Feb 2018 23:45:55 +0000 (10:15 +1030)
commit325ba6fb34be799c885fad9287d883e86b835c84
tree239c69de6d08aaec5c4c5081c29fee441e8db83f
parentc2596c4a72213391e5badda35b73f00d0e6aba76
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.
bfd/ChangeLog
bfd/elf.c
This page took 0.024083 seconds and 4 git commands to generate.