u-boot-brain/board/freescale/common
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
..
cadmus.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
cadmus.h Move the MPC8541/MPC8555/MPC8548 CDS board under board/freescale. 2007-12-11 22:34:20 -06:00
cds_pci_ft.c FSL: Clean up board/freescale/common/Makefile 2008-03-26 11:43:04 -05:00
cds_via.c FSL: Clean up board/freescale/common/Makefile 2008-03-26 11:43:04 -05:00
eeprom.h Move the MPC8541/MPC8555/MPC8548 CDS board under board/freescale. 2007-12-11 22:34:20 -06:00
fsl_diu_fb.c fsl_diu_fb: further refactoring of FSL DIU code 2010-09-25 13:10:03 +02:00
ics307_clk.c Move ICS CLK chip frequency calculation code into a common board library 2010-07-16 10:55:08 -05:00
ics307_clk.h Move ICS CLK chip frequency calculation code into a common board library 2010-07-16 10:55:08 -05:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ngpixis.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
ngpixis.h ppc/85xx: Add a structure defn for PIXIS registers 2010-07-16 10:55:08 -05:00
pixis.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
pixis.h ppc/85xx: Add a structure defn for PIXIS registers 2010-07-16 10:55:08 -05:00
pq-mds-pib.c ppc/85xx: Add PIB/ATM support for MPC8569mds 2010-01-25 22:13:26 -06:00
pq-mds-pib.h mpc83xx: Split PIB init code from pci.c and add Qoc3 ATM card support 2007-08-16 23:12:11 -05:00
sgmii_riser.c fsl: Remove unnecessary debug printfs 2009-03-09 17:46:10 -05:00
sgmii_riser.h Fixup SGMII PHY ids in the device tree 2009-02-16 18:05:54 -06:00
sys_eeprom.c fsl: add support for NXID v1 EEPROM format 2010-10-07 09:57:07 -05:00
via.h Move the MPC8541/MPC8555/MPC8548 CDS board under board/freescale. 2007-12-11 22:34:20 -06:00