[U-Boot] [PATCH v3 21/21] sandbox: Makefile changes to build sandbox architecture

Mike Frysinger vapier at gentoo.org
Tue Oct 4 03:05:37 CEST 2011


On Monday, October 03, 2011 20:51:50 Simon Glass wrote:
> On Mon, Oct 3, 2011 at 12:31 PM, Mike Frysinger wrote:
> > On Monday, September 26, 2011 20:10:55 Simon Glass wrote:
> >> +ifeq ($(CONFIG_SANDBOX),y)
> >> +GEN_UBOOT = \
> >> +             cd $(LNDIR) && $(CC) $(SYMS) -T $(obj)u-boot.lds \
> >> +                     -Wl,--start-group $(__LIBS) -Wl,--end-group \
> >> +                     $(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot.map -o u-boot
> > 
> > unfortunate that you can't utilize UNDEF_SYM ...
> 
> Well I can add a hack to make it empty, but I'm not sure what it buys
> us. The main issue is that I don't want to pass any link flags from
> LDFLAGS, etc. I could put that magic into config.mk perhaps (and this
> might be a better place for it), but it is something of a special case
> wherever it goes.

hmm, i guess you're not using -Wl,--gc-sections mostly because you ignore 
$(LDFLAGS).  i wonder if you did something like:
COMMA = ,
	... $(patsubst %,-Wl$(COMMA)%,$(LDFLAGS)) ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111003/64939c95/attachment.pgp 


More information about the U-Boot mailing list