
On Tue, 12 Oct 2010 19:41:56 +0200 Joakim Tjernlund joakim.tjernlund@transmode.se wrote:
Kim Phillips kim.phillips@freescale.com wrote on 2010/10/12 19:31:25:
that moderate size increase in start.S breaks nand builds:
Configuring for MPC8313ERDB_NAND_66 board... start.o:(.got2+0x4): undefined reference to `_GOT_TABLE_' make[1]: *** [/home/r1aaha/git/u-boot/nand_spl/u-boot-spl] Error 1
ehh, these got there own linker scripts it seems I could #ifdef NAND_SPL I guess? Or possbly select one of GUT/GOT2 based on #if __pic__ == 1
I think NAND_SPL would be clearer, assuming no other differences are involved.
Configuring for MPC8315ERDB_NAND board... powerpc-linux-gnu-ld: NAND bootstrap too big powerpc-linux-gnu-ld: NAND bootstrap too big start.o:(.got2+0x4): undefined reference to `_GOT_TABLE_' make[1]: *** [/home/r1aaha/git/u-boot/nand_spl/u-boot-spl] Error 1
How much is missing?
I can't tell due to the undefined reference error.
One thing I wonder about: How come NAND_SPL need GOT2 relocs but no FIXUPs? I figured either none or both.
I don't know; apparently FIXUPs aren't needed?
Kim