commit | bd24d23f081feb4eb1438c56ace4ae91778ae6be | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Thu Aug 08 08:44:52 2019 -0700 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Thu Aug 08 18:03:53 2019 +0000 |
tree | c87788ca9c2732637baaf5cc9db30e8e630be9dd | |
parent | 9bd56e9c06218734024e8f3583ffd271e0d07b59 [diff] |
PT_LOAD and PT_GNU_RELRO segment overlap Commit 325ba6fb34 excluded degenerate zero length PT_LOAD segments, but that only fixed part of the problem, which was that the load segment limits were not calculated properly. PR 22845 * elf.c (IS_TBSS): Define. (_bfd_elf_map_sections_to_segments): Use IS_TBSS. (assign_file_positions_for_non_load_sections): Revert last change. Properly calculate load segment limits to compare against relro limits. This change is backport of dbc88fc14992c556b94e77de563a8f7abcb0b653 - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dbc88fc14992c556b94e77de563a8f7abcb0b653 to binutils-2.27. Bug: http://b/135627985 Change-Id: I793d6b1c8082bef1b1c46662d194790d5e7d7577