forked from Imagelibrary/rtems
2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* startup/linkcmds.c, start/start.S: call __eabi() from start.S and make sure linkcmds defines _SDA_BASE_ + _SDA2_BASE_ so that sysv + eabi are properly supported.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2007-11-30 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* startup/linkcmds.c, start/start.S: call __eabi() from start.S
|
||||||
|
and make sure linkcmds defines _SDA_BASE_ + _SDA2_BASE_ so that
|
||||||
|
sysv + eabi are properly supported.
|
||||||
|
|
||||||
2007-11-30 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2007-11-30 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* startup/bspstart.c: BSP_DIRTY_MEMORY should be tested for zero not
|
* startup/bspstart.c: BSP_DIRTY_MEMORY should be tested for zero not
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ _start:
|
|||||||
lis r0,0
|
lis r0,0
|
||||||
stw r0,0(sp) /* clear back chain */
|
stw r0,0(sp) /* clear back chain */
|
||||||
stwu sp,-56(sp) /* push another stack frame */
|
stwu sp,-56(sp) /* push another stack frame */
|
||||||
|
bl FUNC_NAME(__eabi)
|
||||||
|
|
||||||
lis r5,environ@ha
|
lis r5,environ@ha
|
||||||
la r5,environ@l(r5) /* environp */
|
la r5,environ@l(r5) /* environp */
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ SECTIONS
|
|||||||
PROVIDE (__FRAME_END__ = .);
|
PROVIDE (__FRAME_END__ = .);
|
||||||
PROVIDE (_etext = .);
|
PROVIDE (_etext = .);
|
||||||
PROVIDE (etext = .);
|
PROVIDE (etext = .);
|
||||||
PROVIDE (__SDATA2_START__ = .);
|
_SDA2_BASE_ = __SDATA2_START__ + 0x8000;
|
||||||
.sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } >RAM
|
.sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } >RAM
|
||||||
.sbss2 : { *(.sbss2) *(.gnu.linkonce.sb2.*) } >RAM
|
.sbss2 : { *(.sbss2) *(.gnu.linkonce.sb2.*) } >RAM
|
||||||
PROVIDE (__SBSS2_END__ = .);
|
PROVIDE (__SBSS2_END__ = .);
|
||||||
@@ -187,7 +187,7 @@ SECTIONS
|
|||||||
/* 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. */
|
||||||
PROVIDE (__SDATA_START__ = .);
|
_SDA_BASE_ = __SDATA_START__ + 0x8000;
|
||||||
.sdata : { *(.sdata*) *(.gnu.linkonce.s.*) } >RAM
|
.sdata : { *(.sdata*) *(.gnu.linkonce.s.*) } >RAM
|
||||||
_edata = .;
|
_edata = .;
|
||||||
PROVIDE (edata = .);
|
PROVIDE (edata = .);
|
||||||
|
|||||||
Reference in New Issue
Block a user