On Wed, 2 Feb 2011 08:49:36 +0100 Marek Vasut <[email protected]> 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 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 _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

