From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 3 Feb 2011 00:57:41 +0100 Subject: [U-Boot] at91sam9263_nandflash build issues In-Reply-To: <20110202134300.515c3270@udp111988uds> References: <201102020849.36451.marek.vasut@gmail.com> <20110202134300.515c3270@udp111988uds> Message-ID: <201102030057.42024.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 02 February 2011 20:43:00 Scott Wood wrote: > On Wed, 2 Feb 2011 08:49:36 +0100 > > Marek Vasut wrote: > > diff --git a/config.mk b/config.mk > > index 5147c35..fe1d40c 100644 > > --- a/config.mk > > +++ b/config.mk > > @@ -261,7 +261,7 @@ $(obj)%.s: %.c > > > > # If the list of objects to link is empty, just create an empty > > built-in.o cmd_link_o_target = $(if $(strip $1),\ > > > > - $(LD) $(LDFLAGS) -r -o $@ $1,\ > > + $(LD) -r -o $@ $1,\ > > > > rm -f $@; $(AR) rcs $@ ) > > LDFLAGS was used here deliberately by commit: > 8aba9dceebb14144e07d19593111ee3a999c37fc Oh my, it's not my platform. Also, you missed the comment where I said the patch is a mess, not a patch to be merged :) This time I really only forwarded a bugreport from irc channel with a bad sketch of a patch. > > I suspect your problem is because you have --gc-sections in > PLATFORM_LDFLAGS. The above commit changed architectures that set > --gc-sections to use LDFLAGS_u-boot instead, but it missed boards that > set it. > > Also note this patch, which if applied would mean that you'd need to > put --gc-sections in LDFLAGS_FINAL instead of LDFLAGS_u-boot: > > http://patchwork.ozlabs.org/patch/81206/ > > -Scott