[PATCH v2 07/21] elf: implement elf_load_inplace()

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Jan 6 05:53:42 PST 2026


Hi,

On 1/6/26 1:53 PM, Sascha Hauer wrote:
> For ET_DYN (position-independent) binaries, the relocation offset is
> calculated relative to the first executable PT_LOAD segment (.text section),
> taking into account the difference between the segment's virtual address
> and its file offset.

Same review feedback as for v1: I believe it's the lowest load address
with no special significance to the text section.

Apart from that:

Acked-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

Thanks,
Ahmad

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list