[PATCH v8 3/6] elf: Introduce _dl_map_segment_align hook for segment alignment tuning
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Apr 9 13:17:14 GMT 2026
Hi HJ,
> I was told that THP needed to start from the file offset 0. So
>
> LOAD 0x16e000 0x0056e000 0x0056e000 0x1055d9 0x1055d9 R E 0x1000
>
> doesn't work for THP.
For it to work you'd need to align the file start. Rui's current patch doesn't
do the alignment for this case, but we could generalize it and do it if either
R or R+W load segments are large enough.
But that is different from changing the segments in the loader.
Cheers,
Wilco
More information about the Libc-alpha
mailing list