9
0
Fork 0
barebox/arch/ppc/mach-mpc85xx
Juergen Borleis a23eb47bf2 PPC: fix size optimisation
Since patch e92abad363 the linker discards sections which seems not
used to make the image smaller.
But this change will discard the whole init and exception code from start.S
which renders the final image useless.

From 'barebox.map' without this patch:

Discarded input sections
 .text          0x0000000000000000     0x358c arch/ppc/mach-mpc5xxx/start.o
 .data          0x0000000000000000        0x0 arch/ppc/mach-mpc5xxx/start.o
 .bss           0x0000000000000000        0x0 arch/ppc/mach-mpc5xxx/start.o
 .got2          0x0000000000000000       0x24 arch/ppc/mach-mpc5xxx/start.o
[...]

So, define the entry point to mark the init and exception used.

From 'barebox.map' with this patch applied:

Discarded input sections
 .data          0x0000000000000000        0x0 arch/ppc/mach-mpc5xxx/start.o
 .bss           0x0000000000000000        0x0 arch/ppc/mach-mpc5xxx/start.o
[...]

Note: tested on MPC5200 at run time, for MPC85XX compile time only

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-05-30 07:07:48 +02:00
..
include/mach gpio: Drop asm-generic/gpio.h 2015-08-20 07:47:11 +02:00
.gitignore Add some .gitignore files 2014-09-12 11:59:24 +02:00
Kconfig common: move DDR_SPD to common/Kconfig 2015-07-06 13:33:09 +02:00
Makefile common: move DDR_SPD to common/Kconfig 2015-07-06 13:33:09 +02:00
barebox.lds.S PPC: fix size optimisation 2016-05-30 07:07:48 +02:00
cpu.c restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
cpu_init.c ppc: Freescale P1010 SoC support 2014-07-28 07:26:27 +02:00
cpuid.c ppc: Freescale P1010 SoC support 2014-07-28 07:26:27 +02:00
eth-devices.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
fdt.c ppc: mpc85xx: add stashing support 2014-03-19 07:43:02 +01:00
fsl_gpio.c ppc: Freescale P1010 SoC support 2014-07-28 07:26:27 +02:00
fsl_i2c.c ppc 85xx: early I2C support 2013-06-27 08:38:37 +02:00
fsl_law.c ppc: remove bit operation headers file conflict 2014-01-30 08:42:53 +01:00
speed.c ppc: Freescale P1010 SoC support 2014-07-28 07:26:27 +02:00
time.c treewide: Reuse init_clock() return value for clocksource drivers 2014-11-10 08:42:19 +01:00