9
0
Fork 0
barebox/arch/ppc/boards
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
..
freescale-p1010rdb include: Move ns16550 serial platform_data to include/platform_data 2016-04-15 08:44:42 +02:00
freescale-p1022ds include: Move ns16550 serial platform_data to include/platform_data 2016-04-15 08:44:42 +02:00
freescale-p2020rdb include: Move ns16550 serial platform_data to include/platform_data 2016-04-15 08:44:42 +02:00
geip-da923rc Merge branch 'for-next/include-pdata' 2016-05-09 08:49:42 +02:00
pcm030 PPC: fix size optimisation 2016-05-30 07:07:48 +02:00
.gitignore ppc: boards: add barebox.lds to .gitignore 2013-05-13 09:36:29 +02:00