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:
Till Straumann
2008-07-22 05:47:31 +00:00
parent 54b617a0ab
commit e1095fc521
2 changed files with 10 additions and 0 deletions

View File

@@ -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>
* startup/linkcmds: fixed sdata/sbss areas -- these

View File

@@ -130,6 +130,9 @@ text_length:
la r5,environ@l(r5) /* environp */
li r4, 0 /* argv */
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)
b SYM (boot_card) /* call the first C routine */