[U-Boot] [PATCH] Fix all linker scripts for older binutils versions (pre-2.16)

Wolfgang Denk wd at denx.de
Mon Aug 17 22:24:45 CEST 2009


Dear Mike Frysinger,

In message <200908171615.45626.vapier at gentoo.org> you wrote:
>
> > twice - first in your board directory, and then again by the top level
> > Makefile. You could save the local run now.
> 
> ok, i missed that aspect.  i think the changes needed are:
> 
> lib_blackfin/Makefile:
> 	-$(obj)u-boot.lds: u-boot.lds.S
> 	-   $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
> lib_blackfin/config.mk:
> 	-LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds
> 	+LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds.S

Right. I just have no easy way to test this...

> i can post a patch once yours gets merged

Thanks a lot in advance.

There is a slight difference, though  -  I'm  calling  CPP  with  the
"-ansi"  switch  to  make  sure  that  all system-specific predefined
macros outside the reserved namespace  are  suppressed,  i.  e.  only
those starting with double-underscores will be seen. I am pretty sure
that this is actually what you want, too.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our business is run on trust.  We trust you will pay in advance.


More information about the U-Boot mailing list