forked from Imagelibrary/rtems
2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* dlentry/dlentry.S: load R13 with _SDA_BASE_ so that SVR4-ABI access of short data area works. No support for R2/sdata2/eabi, so far but that would be easy (atm R2 is loaded with got address IIRC).
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2008-07-21 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
|
* dlentry/dlentry.S: load R13 with _SDA_BASE_ so that
|
||||||
|
SVR4-ABI access of short data area works. No support
|
||||||
|
for R2/sdata2/eabi, so far but that would be easy
|
||||||
|
(atm R2 is loaded with got address IIRC).
|
||||||
|
|
||||||
2008-07-21 Till Straumann <strauman@slac.stanford.edu>
|
2008-07-21 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
* startup/linkcmds: fixed sdata/sbss areas -- these
|
* startup/linkcmds: fixed sdata/sbss areas -- these
|
||||||
|
|||||||
@@ -130,6 +130,9 @@ text_length:
|
|||||||
la r5,environ@l(r5) /* environp */
|
la r5,environ@l(r5) /* environp */
|
||||||
li r4, 0 /* argv */
|
li r4, 0 /* argv */
|
||||||
li r3, 0 /* argc */
|
li r3, 0 /* argc */
|
||||||
|
.extern SYM(_SDA_BASE_)
|
||||||
|
lis r13,SYM(_SDA_BASE_)@h
|
||||||
|
ori r13,r13,SYM(_SDA_BASE_)@l
|
||||||
.extern SYM (boot_card)
|
.extern SYM (boot_card)
|
||||||
b SYM (boot_card) /* call the first C routine */
|
b SYM (boot_card) /* call the first C routine */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user