From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Modra Date: Wed, 22 Mar 2017 23:23:45 +1030 Subject: [U-Boot] [PATCH v2] Makefile: Fix linking with modern binutils In-Reply-To: <20170321231344.GF19897@bill-the-cat> References: <20161216045330.31257-1-joel@jms.id.au> <1484212744.14166.4.camel@collabora.co.uk> <20170321151650.GC19897@bill-the-cat> <20170322090058.184b6dbb@roar.ozlabs.ibm.com> <20170321231344.GF19897@bill-the-cat> Message-ID: <20170322125345.GA4983@bubble.grove.modra.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 > > > > > > 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