This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/4] Generate text-only LOAD segment similar to GNU_RELRO
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sun, 12 Nov 2017 09:31:47 -0800
- Subject: [PATCH 0/4] Generate text-only LOAD segment similar to GNU_RELRO
- Authentication-results: sourceware.org; auth=none
The text-only LOAD segment has the same requirement for segment alignment
and page sizes as GNU_RELRO segment. The only difference is for GNU_RELRO
DATA_SEGMENT_END may not be the same as DATA_SEGMENT_RELRO_END, but for
text-only LOAD segment, TEXT_SEGMENT_END == TEXT_SEGMENT_RELRO_END.
This series of patches updates infrastructure for GNU_RELRO segment so
that it can also be used for text-only LOAD segment.
H.J. Lu (4):
ld: Update phase_enum/relro_enum and add seg_align_type
ld: Add fold_segment_align/fold_segment_relro_end/fold_segment_end
ld: Add lang_size_relro_segment
ld: Add ldlang_check_relro_region/update lang_find_relro_sections_1
ld/ldexp.c | 194 ++++++++++++++++++++++++++----------------------
ld/ldexp.h | 44 +++++------
ld/ldlang.c | 241 +++++++++++++++++++++++++++++++++++++-----------------------
3 files changed, 278 insertions(+), 201 deletions(-)
--
2.13.6