DATA_SEGMENT_RELRO_END expression is used to protect first 3 entries of
.got.plt with relro technologie.
Since we decided not to support this in lld, I also see no reasons to try implement this in LS,
therefore expression is just ignored.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I just realized that is not so simple. Even if DATA_SEGMENT_RELRO_END functionality itself mostly can be ignored, it still should do alignment of location counter to page boundaries if -z relro is used I think.
Comment Actions
I think we can support this in a next way:
- DATA_SEGMENT_ALIGN is always just ignored.
- When -z relro is not present then DATA_SEGMENT_RELRO_END is ignored.
- When -z relro is present, DATA_SEGMENT_RELRO_END just aligns the location counter position to the page boundary.
That way we will have the same behavior we have now without the script. Any opinions ?