[PATCH v8 3/6] elf: Introduce _dl_map_segment_align hook for segment alignment tuning
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Apr 9 21:04:53 GMT 2026
Hi HJ,
> Unless the first R segment is bigger than 2MB, we need to align from the
> file offset 0 anyway. That is what my proposal does.
But it doesn't, that's my issue. It would be perfectly fine to generalize Rui's patch
to remove the condition that the R+X segment must start at zero offset and check
any segment before it is contiguous and R.
Merging R with R+W should be done in the linker.
Cheers,
Wilco
More information about the Libc-alpha
mailing list