Re: [U-Boot] [PATCH v16 04/10] arm64: Add tool to statically apply RELA relocations

2013-12-16 Thread Scott Wood
On Sat, 2013-12-14 at 10:39 +0530, Jagan Teki wrote: > On Sat, Dec 14, 2013 at 9:17 AM, wrote: > > From: Scott Wood > > [snip] > > + if (argc != 5) { > > + fprintf(stderr, "Statically apply ELF rela relocations\n"); > > + fprintf(stderr, "Usage: %s " \ > > +

Re: [U-Boot] [PATCH v16 04/10] arm64: Add tool to statically apply RELA relocations

2013-12-13 Thread Jagan Teki
On Sat, Dec 14, 2013 at 9:17 AM, wrote: > From: Scott Wood > > 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

[U-Boot] [PATCH v16 04/10] arm64: Add tool to statically apply RELA relocations

2013-12-13 Thread fenghua
From: Scott Wood 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 problema