[PATCH v8 3/6] elf: Introduce _dl_map_segment_align hook for segment alignment tuning
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Wed Apr 8 14:14:50 GMT 2026
Hi HJ,
> > > > >
> > > > > LOAD 0x000000 0x00400000 0x00400000 0x16d110 0x16d110 R 0x1000
> > > > > LOAD 0x16e000 0x0056e000 0x0056e000 0x1055d9 0x1055d9 R E 0x1000
> > > > >
> > > > > into a single RE THP map.
So my question is why do we need to do this in both loaders?
Shouldn't the linker just do better here? Eg. it can merge program headers
and related read-only data into the text segment even with -zseparate-code.
Cheers,
Wilco
More information about the Libc-alpha
mailing list