
4 Oct
2013
4 Oct
'13
6:57 p.m.
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