diff options
author | Alan Modra <amodra@gmail.com> | 2015-07-28 11:03:57 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-07-28 18:42:43 +0930 |
commit | e5654c0f8492e65b3e3ac5e1a2276856049eb1b1 (patch) | |
tree | 365260c36ca9ad4abda3550eec856dcce63beba8 /bfd/ChangeLog | |
parent | d6f1bafa2c05241b89c0303a9f6a2af89f51c39c (diff) | |
download | gdb-e5654c0f8492e65b3e3ac5e1a2276856049eb1b1.zip gdb-e5654c0f8492e65b3e3ac5e1a2276856049eb1b1.tar.gz gdb-e5654c0f8492e65b3e3ac5e1a2276856049eb1b1.tar.bz2 |
Fallout from "Reorder more powerpc64 sections for -z relro"
Commit 23283c1b changed the layout of some bss style sections on
powerpc64, but neglected to add a page gap before the third PT_LOAD
segment created by this reording. Without a page gap we get two
PT_LOAD headers that overlap by one page in memory. That shouldn't be
allowed because the dynamic loader will load garbage from the first
page of the last segment over the last page of the previous segment.
bfd/
* elf.c (_bfd_elf_map_sections_to_segments): Do not make a new
segment for loaded sections after nonloaded sections if the
sections are on the same page.
ld/testsuite/
* ld-powerpc/elfv2so.d: Update
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c06c213..5aa84e0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2015-07-28 Alan Modra <amodra@gmail.com> + + * elf.c (_bfd_elf_map_sections_to_segments): Do not make a new + segment for loaded sections after nonloaded sections if the + sections are on the same page. + 2015-07-28 Iain Buclaw <ibuclaw@gdcproject.org> * configure.in: Add asprintf and vasprintf to AC_CHECK_DECLS. |