[PATCH 0/4] Generate text-only LOAD segment similar to GNU_RELRO
H.J. Lu
hjl.tools@gmail.com
Sun Nov 12 17:32:00 GMT 2017
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
More information about the Binutils
mailing list