Re: [PATCH 6/6] ARM: Add relocatable binary support

Alexander Shiyan shc_work at mail.ru
Mon Mar 4 15:10:02 EST 2013


> For making the same binary executable on different SoCs which have
> different DRAM addresses we have to be independent of the compile
> time link address.
> 
> This patch adds relocatable binary support for the ARM architecture.
> With this two new functions are available. relocate_to_current_adr
> will fixup the binary to continue executing from the current position.
> relocate_to_adr will copy the binary to a given address, fixup the
> binary and continue executing from there.
> 
> For the PBL and the real image relocatable support can be enabled
> independently. This is done to (hopefully) better cope with setups
> where the PBL runs from SRAM or ROM and the real binary does not.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
...

Hello.

I just suggest put this new stuff under EXPERIMENTAL condition.
Thanks.

---


More information about the barebox mailing list