[U-Boot] [PATCH v2] Makefile: Fix linking with modern binutils

Alan Modra amodra at gmail.com
Wed Mar 22 12:53:45 UTC 2017


On Tue, Mar 21, 2017 at 07:13:44PM -0400, Tom Rini wrote:
> On Wed, Mar 22, 2017 at 09:00:58AM +1000, Nicholas Piggin wrote:
> > On Tue, 21 Mar 2017 11:16:50 -0400
> > Tom Rini <trini at konsulko.com> wrote:
> > 
> > > On Tue, Mar 21, 2017 at 08:59:04AM -0500, Jon wrote:
> > > 
> > > > Likewise tested on Fedora rawhide with: binutils-2.28-5.fc27
> > > > 
> > > > This patch allows our distro u-boot builds to succeed. +1
> > > > 
> > > > Tested-by: Jon Disnard <jdisnard at gmail.com>  
> > > 
> > > Has anyone figure out what exactly is going on yet?  It's pretty odd to
> > > me that linking at 0x0 (or not) is what's causing new binutils to throw
> > > this particular error out there.  Thanks!
> > 
> > Some discussion from binutils developers is here:
> > 
> > https://patchwork.ozlabs.org/patch/699815/
> 
> That in turn seems to point to
> https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=ff45000fcb56b5b0f1a14a865d3541
> as an example of how to correct the problem (what U-Boot is doing), and
> we should make a patch similar to that it seems.  Thanks!

That is the correct solution.  Nick's patch for
https://sourceware.org/bugzilla/show_bug.cgi?id=20815 isn't going to
be reverted as the ELF standard is quite clear regarding PT_PHDR.
Yes, there was a bug in the patch adding more space than needed, fixed
2016-11-30 with binutils git commit e9a38e0f528, but even after that
patch more space is needed than before.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the U-Boot mailing list