[U-Boot] Weak symbols: request for comments

Andreas Bießmann andreas.devel at googlemail.com
Fri Nov 5 12:21:19 CET 2010


Dear Sebastien Carlier,

Am 05.11.2010 11:39, schrieb Sebastien Carlier:
> Hello all,

> So, U-boot needs to be fixed.  I can see the following ways forward:
> 
> 1.1) Stop using weak symbols; use pre-initialized function pointers
>       instead (possibly grouped in a struct, for cleanliness).
>       This has the benefit of offering a clear interface and being
>       independent of toolchain details.

sounds good to me despite of grouping. Isn't grouping tough due to
different weak functions for each architecture?

> 1.2) Use regular (non-weak) extern declarations for overridable stuff;
>       collect all default weak symbols into a separate library archive,
>       to be supplied last to the linker.

sounds messy to me. How about different weak symbols for different
architectures?

regards

Andreas Bießmann


More information about the U-Boot mailing list