Don't align start of segment unless alignment is larger than page size.
authorCary Coutant <ccoutant@google.com>
Fri, 9 Jan 2015 23:55:50 +0000 (15:55 -0800)
committerCary Coutant <ccoutant@google.com>
Fri, 9 Jan 2015 23:58:39 +0000 (15:58 -0800)
commita5cd8f05ca759fdb9b27fc98a08edb5f85369ad9
tree4d9359f22a85f5549398a32786d3eacbae11453b
parent6bf045cd32d07ae55d7eec8ff94bd937c6bb2bce
Don't align start of segment unless alignment is larger than page size.

This fixes an issue where a page-aligned data section, combined with -z relro,
could lead to a gap between text and data segments larger than a page, and
we would fail to overlap the segments in the file.

gold/
* layout.cc (Layout::set_segment_offsets): Don't align start of segment
unless alignment is larger than page size.
gold/ChangeLog
gold/layout.cc