u-boot/arch/powerpc/cpu/mpc85xx
Wolfgang Denk c08e5cf7c7 POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections
The switch from archive libraries to partial linking has introduced a
number of problems, that are non-trivial to solve.  For example, it is
no longer possible to include individual object files in the linker
script as we did before for example in the case of boards with
embedded environment to fill up the gap caused by the need to align
the environment on flash erase block boundaries.

The best (but unfortunately not easiest) approach to address this
problem is to enable -ffunction-sections (and -fdata-sections) so
we can again (and even in much finer granularity) place certain code
where we want it.  When doing this step, it seems only consequent to
also add --gc-sections which has the added benefit of reducing the
memory footprint of the U-Boot image (both in flash and in RAM).

Unfortunately, this requires changes to a lot of linker scripts.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Stefan Roese <sr@denx.de>
2010-11-27 23:35:08 +01:00
..
cmd_errata.c powerpc/p4080: Add workaround for erratum CPU22 2010-07-26 13:07:57 -05:00
commproc.c POST cleanup. 2010-09-21 21:39:31 +02:00
config.mk POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections 2010-11-27 23:35:08 +01:00
cpu.c Add memory test feature for mpc85xx POST. 2010-10-20 02:28:00 -05:00
cpu_init.c powerpc/8xxx: share PIC defines among 85xx and 86xx 2010-08-19 02:06:13 -05:00
cpu_init_early.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cpu_init_nand.c 83xx/85xx/86xx: LBC register cleanup 2010-07-16 10:55:09 -05:00
ddr-gen1.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ddr-gen2.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ddr-gen3.c powerpc/8xxx: Enabled address hashing for 85xx 2010-07-26 13:16:09 -05:00
ether_fcc.c net ppc: fix ethernet device names with spaces 2010-08-09 11:52:28 -07:00
fdt.c 85xx: Add support for not releasing secondary cores via 'mp_holdoff' 2010-10-20 02:38:40 -05:00
fixed_ivor.S Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_corenet_serdes.c powerpc/p4080: Add workaround for errata SERDES8 2010-07-26 13:07:57 -05:00
fsl_corenet_serdes.h powerpc/p4080: Add workaround for errata SERDES8 2010-07-26 13:07:57 -05:00
interrupts.c powerpc/8xxx: share PIC defines among 85xx and 86xx 2010-08-19 02:06:13 -05:00
liodn.c powerpc/85xx: Add support to initialize LIODN registers and portals 2010-07-26 13:07:56 -05:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mp.c 85xx: Add support for not releasing secondary cores via 'mp_holdoff' 2010-10-20 02:38:40 -05:00
mp.h 85xx: Add support for not releasing secondary cores via 'mp_holdoff' 2010-10-20 02:38:40 -05:00
mpc8536_serdes.c powerpc/85xx: Rework MPC8536 SERDES is_serdes_configured support 2010-07-21 00:40:16 -05:00
p1022_serdes.c powerpc/85xx: Rework P1022 SERDES is_serdes_configured support 2010-07-21 00:40:20 -05:00
p4080_ids.c powerpc/85xx: fix rev.2 job queue LIODN error storm 2010-10-07 09:49:47 -05:00
p4080_serdes.c powerpc/p4080: Add workaround for errata SERDES8 2010-07-26 13:07:57 -05:00
pci.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
portals.c powerpc/85xx: Add support to initialize LIODN registers and portals 2010-07-26 13:07:56 -05:00
qe_io.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
release.S Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value 2010-10-26 21:05:30 +02:00
resetvec.S Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
serial_scc.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
speed.c 83xx/85xx/86xx: LBC register cleanup 2010-07-16 10:55:09 -05:00
start.S PowerPC: Don't destroy fixup table while doing fixups 2010-11-14 23:25:33 +01:00
tlb.c Adding more control to physical address mapping 2010-10-20 02:28:00 -05:00
traps.c powerpc/8xxx: share PIC defines among 85xx and 86xx 2010-08-19 02:06:13 -05:00
u-boot-nand.lds powerpc/85xx: Fix lds for nand build 2010-11-11 00:34:59 -06:00
u-boot-nand_spl.lds powerpc/85xx: Fix lds for nand build 2010-11-11 00:34:59 -06:00
u-boot.lds 85xx: Use gc-sections to reduce image size 2010-10-20 02:38:41 -05:00