diff options
author | Cary Coutant <ccoutant@google.com> | 2015-01-09 15:55:50 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2015-01-09 15:58:39 -0800 |
commit | a5cd8f05ca759fdb9b27fc98a08edb5f85369ad9 (patch) | |
tree | 4d9359f22a85f5549398a32786d3eacbae11453b /gold/ChangeLog | |
parent | 6bf045cd32d07ae55d7eec8ff94bd937c6bb2bce (diff) | |
download | gdb-a5cd8f05ca759fdb9b27fc98a08edb5f85369ad9.zip gdb-a5cd8f05ca759fdb9b27fc98a08edb5f85369ad9.tar.gz gdb-a5cd8f05ca759fdb9b27fc98a08edb5f85369ad9.tar.bz2 |
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.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r-- | gold/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 93529fe..1e73aa8 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2015-01-09 Cary Coutant <ccoutant@google.com> + + * layout.cc (Layout::set_segment_offsets): Don't align start of segment + unless alignment is larger than page size. + 2015-01-06 H.J. Lu <hongjiu.lu@intel.com> Cary Coutant <ccoutant@google.com> |