From: Stefan Reinauer Date: Tue, 17 Mar 2009 15:15:15 +0000 (+0000) Subject: Don't know if this is the correct fix, but it fixes compilation of the PPC X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=b743885b43cf735a54da6ac1eddcf81c84f28522;p=coreboot.git Don't know if this is the correct fix, but it fixes compilation of the PPC targets. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4014 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/src/arch/ppc/init/ldscript.lb b/src/arch/ppc/init/ldscript.lb index 4c4808723..a81d9b9bb 100644 --- a/src/arch/ppc/init/ldscript.lb +++ b/src/arch/ppc/init/ldscript.lb @@ -79,6 +79,18 @@ SECTIONS _eram = . ; } + .sdata : { + _SDA_BASE_ = .; + *(.sdata) + } + + .sdata2 : { + _SDA2_BASE_ = .; + *(.sdata2) + } + + + /* * Absolute location of where coreboot will be relocated in RAM. */ diff --git a/src/config/coreboot_ram.ld b/src/config/coreboot_ram.ld index 2ee9ba9c5..4b41adb30 100644 --- a/src/config/coreboot_ram.ld +++ b/src/config/coreboot_ram.ld @@ -75,6 +75,17 @@ SECTIONS *(.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)