diff options
-rw-r--r-- | src/arch/ppc/init/ldscript.lb | 12 | ||||
-rw-r--r-- | src/config/coreboot_ram.ld | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/arch/ppc/init/ldscript.lb b/src/arch/ppc/init/ldscript.lb index 4c48087237..a81d9b9bb8 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 2ee9ba9c55..4b41adb30d 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) |