Don't adjust LOAD segment to match GNU_RELRO segment
authorAlan Modra <amodra@gmail.com>
Fri, 10 Jan 2014 10:41:46 +0000 (21:11 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Jan 2014 11:19:56 +0000 (21:49 +1030)
commiteec2f3ed9f053653ed5d629eb50e08e3ee61e9bd
tree2a12dda58d04db24d58892f45db6eab16240bb00
parenta2cd8cfed14491303eb8338f90e206034c5a3fe2
Don't adjust LOAD segment to match GNU_RELRO segment

Instead, fix Jakub's original code setting up the PR_GNU_RELRO header
from the PT_LOAD header.

PR ld/14207
PR ld/16322
PR binutils/16323
bfd/
* elf.c (assign_file_positions_for_load_sections): Revert last change.
(assign_file_positions_for_non_load_sections): When setting up
PT_GNU_RELRO header, don't require a corresponding PT_LOAD
header that completely covers the relro region.
ld/
* ldlang.c (lang_size_sections): Remove unneeded RELRO base
adjust.  Tidy comments.
* ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
ld/testsuite/
* ld-x86-64/pr14207.d: Adjust
bfd/ChangeLog
bfd/elf.c
ld/ChangeLog
ld/ld.texinfo
ld/ldlang.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/pr14207.d