[U-Boot] [PATCH 1/2] Allow board specific overwriting of library code

Wolfgang Denk wd at denx.de
Wed Feb 4 22:12:39 CET 2009


Dear Michael Roth,

In message <4989BFC8.6030204 at nessie.de> you wrote:
> 
> > Because the whole weak-linking looks like it is somewhat broken or at
> > least very difficult to get it correctly.
...
> But as you can see from u-boot.map, the result is not as expected:
> 
> 	0x23f00340      0x35c lib_arm/libarm.a(board.o)
> 	0x23f00390                __red_LED_off
> 	...
> 	0x23f00390                red_LED_off
> 	...
> 	0x23f0038c                red_LED_on
> 	0x23f0038c                __red_LED_on

Link led.o explicitely, and early, in your linker script.

I don't see what's very difficult to do that.

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
You don't have to stay up nights to succeed; you have to  stay  awake
days.


More information about the U-Boot mailing list