[U-Boot] [PATCH 1/2] Allow board specific overwriting of library code
Jerry Van Baren
gerald.vanbaren at ge.com
Wed Feb 4 15:48:09 CET 2009
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 <mroth at nessie.de>
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>
More information about the U-Boot
mailing list