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

2013-10-09 Thread Albert ARIBAUD
Hi Scott, On Tue, 8 Oct 2013 11:22:15 -0500, Scott Wood wrote: > On Tue, 2013-10-08 at 10:10 +0200, Albert ARIBAUD wrote: > > Thanks Scott fot the heads-up. I have found the arm64 ABI and traced it > > back to this URL: > > > >

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

2013-10-08 Thread Scott Wood
On Tue, 2013-10-08 at 10:10 +0200, Albert ARIBAUD wrote: > Thanks Scott fot the heads-up. I have found the arm64 ABI and traced it > back to this URL: > > > > (Somehow the document can be read in Firefox but evince

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

2013-10-08 Thread Scott Wood
On Tue, 2013-10-08 at 22:22 +0800, FengHua wrote: > > diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c > > new file mode 100644 > > index 000..47afe0b > > --- /dev/null > > +++ b/tools/relocate-rela.c > > @@ -0,0 +1,185 @@ > > +/* > > + * Copyright 2013 Freescale Semiconductor, Inc. >

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

2013-10-08 Thread FengHua
> diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c > new file mode 100644 > index 000..47afe0b > --- /dev/null > +++ b/tools/relocate-rela.c > @@ -0,0 +1,185 @@ > +/* > + * Copyright 2013 Freescale Semiconductor, Inc. > + * > + * SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause > + *

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

2013-10-08 Thread Albert ARIBAUD
Hi Scott, On Mon, 7 Oct 2013 19:55:46 -0500, Scott Wood wrote: > On Sat, 2013-10-05 at 09:52 +0200, Albert ARIBAUD wrote: > > Hi Scott, > > > > On Thu, 3 Oct 2013 17:48:28 -0500, Scott Wood > > wrote: > > > > > ARM64 uses the newer RELA-style relocations rather than the older REL. > > > RELA

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

2013-10-07 Thread Scott Wood
On Sat, 2013-10-05 at 09:52 +0200, Albert ARIBAUD wrote: > Hi Scott, > > On Thu, 3 Oct 2013 17:48:28 -0500, Scott Wood > 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

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

2013-10-05 Thread Albert ARIBAUD
Hi Scott, On Thu, 3 Oct 2013 17:48:28 -0500, Scott Wood 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 i

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

2013-10-04 Thread Scott Wood
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 bene

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

2013-10-04 Thread FengHua
> 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