summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/linkcmds9
1 files changed, 5 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
index df01bac13b..4d3db8bcc6 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
@@ -66,14 +66,14 @@ SECTIONS
} >RAM
.init : { _init = .; __init = .; *(.init) } >RAM
.fini : { _fini = .; __fini = .; *(.fini) } >RAM
- .rodata : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
+ .rodata : { *(.rodata*) *(.gnu.linkonce.r*) } >RAM
.rodata1 : { *(.rodata1) } >RAM
.eh_frame : { *.(eh_frame) } >RAM
PROVIDE (_etext = .);
PROVIDE (etext = .);
PROVIDE (__SDATA2_START__ = .);
- .sdata2 : { *(.sdata2) } >RAM
- .sbss2 : { *(.sbss2) } >RAM
+ .sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } >RAM
+ .sbss2 : { *(.sbss2) *(.gnu.linkonce.sb2.*) } >RAM
PROVIDE (__SBSS2_END__ = .);
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. It would
@@ -138,7 +138,7 @@ SECTIONS
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
PROVIDE (__SDATA_START__ = .);
- .sdata : { *(.sdata) } >RAM
+ .sdata : { *(.sdata) *(.gnu.linkonce.s.*) } >RAM
_edata = .;
PROVIDE (edata = .);
@@ -148,6 +148,7 @@ SECTIONS
PROVIDE (__sbss_start = .);
*(.sbss)
*(.scommon)
+ *(.gnu.linkonce.sb.*)
PROVIDE (__sbss_end = .);
} >RAM
PROVIDE (__SBSS_END__ = .);