
Here goes my attempt to revive true PIC on ppc, starting with 83xx. This uses a a new gcc option(which I have just impl.) to add msingle-pic-base also save a lot of code: before: text data bss dec hex filename 222728 14336 24228 261292 3fcac u-boot after: text data bss dec hex filename 218556 6580 24228 249364 3ce14 u-boot
As can seen, I only have to add two LINK_OFF calls in early C code to pull this off.
Oh, this is based on the last u-boot release so it migth not apply without minor mods. It depends on 2 other patches which I have already sent.
Anyhow, if this is an acceptable approach I will clean it up once the ongoing release is out.
Joakim Tjernlund (6): mpc83xx: Add relocation support for -fpic mpc83xx: Make start.S true PIC mpc83xx: Add link vs. load address calculation mpc83xx: Add support form -msingle-pic-base mpc83xx: Add true PIC support. powerpc: Add LINK_OFF calls in early C-code.
arch/powerpc/cpu/mpc83xx/cpu_init.c | 2 +- arch/powerpc/cpu/mpc83xx/start.S | 107 +++++++++++++++++++++-- arch/powerpc/cpu/mpc83xx/u-boot.lds | 5 +- arch/powerpc/lib/board.c | 2 +- include/common.h | 5 + nand_spl/board/freescale/mpc8313erdb/u-boot.lds | 4 +- nand_spl/board/freescale/mpc8315erdb/u-boot.lds | 4 +- 7 files changed, 114 insertions(+), 15 deletions(-)