
On Wednesday 02 February 2011 20:43:00 Scott Wood wrote:
On Wed, 2 Feb 2011 08:49:36 +0100
Marek Vasut marek.vasut@gmail.com 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