See patch

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [email protected]http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

Don't know if this is the correct fix, but it fixes compilation of the PPC
targets.

Signed-off-by: Stefan Reinauer <[email protected]>

Index: config/coreboot_ram.ld
===================================================================
--- config/coreboot_ram.ld      (revision 4005)
+++ config/coreboot_ram.ld      (working copy)
@@ -75,6 +75,17 @@
                *(.data)
                _edata = .;
        }
+
+       .sdata : {
+               _SDA_BASE_ = .;
+               *(.sdata)
+       }
+
+       .sdata2 : {
+               _SDA2_BASE_ = .;
+               *(.sdata2)
+       }
+
        /*
         * bss does not contain data, it is just a space that should be zero
         * initialized on startup. (typically uninitialized global variables)
Index: arch/ppc/init/ldscript.lb
===================================================================
--- arch/ppc/init/ldscript.lb   (revision 4005)
+++ arch/ppc/init/ldscript.lb   (working copy)
@@ -79,6 +79,18 @@
                _eram = . ;
        }
 
+       .sdata : {
+               _SDA_BASE_ = .;
+               *(.sdata)
+       }
+
+       .sdata2 : {
+               _SDA2_BASE_ = .;
+               *(.sdata2)
+       }
+
+
+
        /*
         * Absolute location of where coreboot will be relocated in RAM.
         */
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to