From: Scott Wood Date: Fri, 4 Oct 2013 11:57:41 -0500 Subject: [U-Boot] [PATCH 1/4] arm64: Add tool to statically apply RELA relocations In-Reply-To: <158de34.68af.141843c611f.Coremail.fenghua@phytium.com.cn> References: <1380840511-7414-1-git-send-email-scottwood@freescale.com> <1380840511-7414-2-git-send-email-scottwood@freescale.com> <158de34.68af.141843c611f.Coremail.fenghua@phytium.com.cn> Message-ID: <1380905861.7979.5.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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