bsps/powerpc: Fix linker command files

This commit is contained in:
Sebastian Huber
2014-04-01 09:48:40 +02:00
parent 10b0c3f9d3
commit 8e980e6168
4 changed files with 8 additions and 16 deletions

View File

@@ -109,8 +109,7 @@ SECTIONS
_TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin; _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;
_TLS_Size = _TLS_BSS_end - _TLS_Data_begin; _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
_TLS_Alignment = ALIGNOF (.tdata); _TLS_Alignment = ALIGNOF (.tdata);
_SDA2_BASE_ = __SDATA2_START__ + 0x8000; .sdata2 : { PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2) *(.gnu.linkonce.s2.*) } > CODE
.sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } > CODE
.sbss2 : { .sbss2 : {
PROVIDE (__sbss2_start = .); PROVIDE (__sbss2_start = .);
*(.sbss2*) *(.gnu.linkonce.sb2.*) *(.sbss2*) *(.gnu.linkonce.sb2.*)
@@ -193,8 +192,7 @@ _SDA2_BASE_ = __SDATA2_START__ + 0x8000;
/* We want the small data sections together, so single-instruction offsets /* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */ we can shorten the on-disk segment size. */
_SDA_BASE_ = __SDATA_START__ + 0x8000; .sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata*) *(.gnu.linkonce.s.*) } > CODE
.sdata : { *(.sdata*) *(.gnu.linkonce.s.*) } > CODE
_edata = .; _edata = .;
PROVIDE (edata = .); PROVIDE (edata = .);
/* END OF THE LOADED IMAGE (parts moved by the preloader) */ /* END OF THE LOADED IMAGE (parts moved by the preloader) */

View File

@@ -115,8 +115,7 @@ SECTIONS
.fini_array : { *(.fini_array) } >CODE .fini_array : { *(.fini_array) } >CODE
PROVIDE (__fini_array_end = .); PROVIDE (__fini_array_end = .);
_SDA2_BASE_ = __SDATA2_START__ + 0x8000; .sdata2 : {PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >CODE
.sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } >CODE
.sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*)
/* avoid empty sdata2/sbss2 area -- __eabi would not set up r2 /* avoid empty sdata2/sbss2 area -- __eabi would not set up r2
* which may be important if run-time loading is used * which may be important if run-time loading is used
@@ -215,8 +214,7 @@ _SDA2_BASE_ = __SDATA2_START__ + 0x8000;
/* We want the small data sections together, so single-instruction offsets /* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */ we can shorten the on-disk segment size. */
_SDA_BASE_ = __SDATA_START__ + 0x8000; .sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata*) *(.gnu.linkonce.s.*) } >CODE
.sdata : { *(.sdata*) *(.gnu.linkonce.s.*) } >CODE
_edata = .; _edata = .;
PROVIDE (edata = .); PROVIDE (edata = .);
.sbss : .sbss :

View File

@@ -112,8 +112,7 @@ SECTIONS
_TLS_Alignment = ALIGNOF (.tdata); _TLS_Alignment = ALIGNOF (.tdata);
/* Initialised small data addressed as offsets from r2 */ /* Initialised small data addressed as offsets from r2 */
_SDA2_BASE_ = __SDATA2_START__ + 0x8000; .sdata2 : { PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } > RAM
.sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } > RAM
/* Zeroed small data addressed as offsets from r2 */ /* Zeroed small data addressed as offsets from r2 */
.sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*)
@@ -206,8 +205,7 @@ _SDA2_BASE_ = __SDATA2_START__ + 0x8000;
* we can shorten the on-disk segment size. * we can shorten the on-disk segment size.
*/ */
/* Initialised small data addressed as offsets from r13 */ /* Initialised small data addressed as offsets from r13 */
_SDA_BASE_ = __SDATA_START__ + 0x8000; .sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata* .gnu.linkonce.s.*) } > RAM
.sdata : { *(.sdata* .gnu.linkonce.s.*) } > RAM
_edata = .; _edata = .;
PROVIDE (edata = .); PROVIDE (edata = .);

View File

@@ -112,8 +112,7 @@ SECTIONS
_TLS_Alignment = ALIGNOF (.tdata); _TLS_Alignment = ALIGNOF (.tdata);
/* Initialised small data addressed as offsets from r2 */ /* Initialised small data addressed as offsets from r2 */
_SDA2_BASE_ = __SDATA2_START__ + 0x8000; .sdata2 : { PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } > RAM
.sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } > RAM
/* Zeroed small data addressed as offsets from r2 */ /* Zeroed small data addressed as offsets from r2 */
.sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*)
@@ -206,8 +205,7 @@ _SDA2_BASE_ = __SDATA2_START__ + 0x8000;
* we can shorten the on-disk segment size. * we can shorten the on-disk segment size.
*/ */
/* Initialised small data addressed as offsets from r13 */ /* Initialised small data addressed as offsets from r13 */
_SDA_BASE_ = __SDATA_START__ + 0x8000; .sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata* .gnu.linkonce.s.*) } > RAM
.sdata : { *(.sdata* .gnu.linkonce.s.*) } > RAM
_edata = .; _edata = .;
PROVIDE (edata = .); PROVIDE (edata = .);