aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-04-01 19:19:27 +1030
committerAlan Modra <amodra@gmail.com>2015-04-01 19:37:58 +1030
commit6c1aca3e2d408ef4874bd882a7f0e2cd944bbf09 (patch)
tree873fa01252fa3f880772a894a9ca15bf8b1e43c8 /ld/ChangeLog
parent269e9c185f67d477a99574f53ead904d50fddfda (diff)
downloadgdb-6c1aca3e2d408ef4874bd882a7f0e2cd944bbf09.zip
gdb-6c1aca3e2d408ef4874bd882a7f0e2cd944bbf09.tar.gz
gdb-6c1aca3e2d408ef4874bd882a7f0e2cd944bbf09.tar.bz2
Start of relro segment adjustment
Adjusting the start of the relro segment in order to make it end exactly on a page boundary runs into difficulties when sections in the relro segment are aligned; Adjusting the start by (next_page - end) sometimes results in more than that adjustment occurring at the end, overrunning the page boundary. So when that occurs we try a new lower start position by masking the adjusted start with the maximum section alignment. However, we didn't consider that this masked start address may in fact be before the initial relro base, which is silly since that can only increase padding at the relro end. I've also moved some calculations closer to where they are used, and comments closer to the relevant statements. * ldlang.c (lang_size_sections): When alignment of sections results in relro base adjustment being too large, don't go lower than the initial value. * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment. * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6b929aa..b8c506f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,14 @@
2015-04-01 Alan Modra <amodra@gmail.com>
+ * ldlang.c (lang_size_sections): When alignment of sections
+ results in relro base adjustment being too large, don't go lower
+ than the initial value.
+ * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
+ * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
+ alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
+
+2015-04-01 Alan Modra <amodra@gmail.com>
+
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
init ehdr_start_save.