u-boot/lib
Sebastien Carlier 6d8962e814 Switch from archive libraries to partial linking
Before this commit, weak symbols were not overridden by non-weak symbols
found in archive libraries when linking with recent versions of
binutils.  As stated in the System V ABI, "the link editor does not
extract archive members to resolve undefined weak symbols".

This commit changes all Makefiles to use partial linking (ld -r) instead
of creating library archives, which forces all symbols to participate in
linking, allowing non-weak symbols to override weak symbols as intended.
This approach is also used by Linux, from which the gmake function
cmd_link_o_target (defined in config.mk and used in all Makefiles) is
inspired.

The name of each former library archive is preserved except for
extensions which change from ".a" to ".o".  This commit updates
references accordingly where needed, in particular in some linker
scripts.

This commit reveals board configurations that exclude some features but
include source files that depend these disabled features in the build,
resulting in undefined symbols.  Known such cases include:
- disabling CMD_NET but not CMD_NFS;
- enabling CONFIG_OF_LIBFDT but not CONFIG_QE.

Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com>
2010-11-17 21:02:18 +01:00
..
libfdt Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
lzma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
lzo Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
addr_map.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
asm-offsets.c Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value 2010-10-26 21:05:30 +02:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
ctype.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
display_options.c display_buffer: fix misaligned buffer 2010-09-13 13:15:07 +02:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.c Add basic errno support. 2010-09-19 19:29:47 +02:00
gunzip.c zlib/gunzip: Use WATCHDOG_RESET macro 2010-10-12 21:15:10 +02:00
hashtable.c Coding Style cleanup 2010-10-27 22:48:30 +02:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
md5.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
net_utils.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
qsort.c Coding Style cleanup 2010-10-27 22:48:30 +02:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha256.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
string.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
strmhz.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
time.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
vsprintf.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
zlib.c zlib: Add further watchdog reset calls 2010-10-12 21:16:01 +02:00