PR ld/14207
authorAlan Modra <amodra@gmail.com>
Tue, 3 Jul 2012 05:47:35 +0000 (05:47 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 3 Jul 2012 05:47:35 +0000 (05:47 +0000)
commit3146fac42836137f284d541266ece045d56b5895
tree50a09c8b2f6b613afeef7cee8e49b266351c500e
parent3da732519bf1fe8ccacbd68d2f5ebae23ad8546d
PR ld/14207
* elf.c (assign_file_positions_for_load_sections): Remove assertions
that only PT_LOAD headers include file header and section headers.
(assign_file_positions_for_non_load_sections): Similarly don't
assert PT_GNU_RELRO header does not include file and section headers.
Compare first section vma rather than PT_LOAD p_vaddr against
relro_start when looking for PT_LOAD covering PT_GNU_RELRO.  Replace
abort with assertion.
bfd/ChangeLog
bfd/elf.c