Michael Roth wrote:
> Enables to overwrite any library code by defining EXTRABOARDOBJS
> in the board specific config.mk.
> Those listed object files get linked directly into the u-boot binary
> right after the start objects and before any archives.
> 
> Signed-off-by: Michael Roth <[email protected]>

Hi Michael,

Sorry for not speaking up sooner, but the term "overwrite" had really 
bad connotations (implies you are smashing the library).  "Override" is 
a much better term for what you are doing.

FWIIW, I don't have experience with "weak" functions, but I've seen the 
struggles of others on this email list.  My understanding is that you 
are getting gcc (the linker, actually) to behave much more as a 
developer expects when he needs to override a weak function.  (Current 
gcc behavior makes sense to the gcc folks, but tends to surprise mere 
mortals.  The principle of least astonishment[1] says this is a problem.)

Thanks,
gvb

[1] <http://en.wikipedia.org/wiki/Principle_of_least_astonishment>
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to