[U-Boot] [PATCH] mpc83xx: Add -fpic relocation support

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Oct 12 21:17:38 CEST 2010


> 
> Yes, it is a simple symbol to add. I will do it twm if you don't
> beat me to it. it would be nice if you could try what works
> and not though.

Could not wait, does this work for you?

diff --git a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds 
b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
index ad82589..1a3e44f 100644
--- a/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
+++ b/nand_spl/board/freescale/mpc8313erdb/u-boot.lds
@@ -38,6 +38,8 @@ SECTIONS
        .data : {
                *(.data*)
                *(.sdata*)
+               _GOT_TABLE_ = .;
+               *(.got)
                _GOT2_TABLE_ = .;
                *(.got2)
                __got2_entries = (. - _GOT2_TABLE_) >> 2;



More information about the U-Boot mailing list