[U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations

Scott Wood scottwood at freescale.com
Fri Oct 4 18:57:41 CEST 2013


On Sat, 2013-10-05 at 00:10 +0800, FengHua wrote:
> > ARM64 uses the newer RELA-style relocations rather than the older REL.
> > RELA relocations have an addend in the relocation struct, rather than
> > expecting the loader to read a value from the location to be updated.
> >
> > While this is beneficial for ordinary program loading, it's problematic
> 
> How it is beneficial than rel format?

It avoids the need to read anything other than the rela descriptor, and
thus makes relocation faster.

> Why aarch64-gcc use rela format only instead of supporting two format?
> these confuse me a few months.

It's probably specified by the ABI which type to use, and it's not worth
adding toolchain support for something different just for weird cases
like this.

-Scott





More information about the U-Boot mailing list