ld: Add fold_segment_align/fold_segment_relro_end/fold_segment_end
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 01:20:09 +0000 (17:20 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Nov 2017 01:20:18 +0000 (17:20 -0800)
commitd7475e036f69ff7ac78252db74a65fe4d617c4ee
tree4237220550a51952121c7c342638e49ebe60310b
parent0f99513f2a52b7d73b94a1f77b8c6de9159b50d7
ld: Add fold_segment_align/fold_segment_relro_end/fold_segment_end

Extract DATA_SEGMENT_END/DATA_SEGMENT_ALIGN/DATA_SEGMENT_RELRO_END cases
for GNU_RELRO segment into separate functions so that they can also be
used for text-only LOAD segment.

* ldexp.c (fold_unary): Extract the DATA_SEGMENT_END case to ...
(fold_segment_end): New function.
(fold_binary): Extract the DATA_SEGMENT_ALIGN case to ...
(fold_segment_align): New function.
(fold_binary): Extract the DATA_SEGMENT_RELRO_END case to ...
(fold_segment_relro_end): New function.
ld/ChangeLog
ld/ldexp.c
This page took 0.027262 seconds and 4 git commands to generate.