2.10.91: A problem with R_MIPS_CALL relocations within gas
Maciej W. Rozycki
macro@ds2.pg.gda.pl
Mon Nov 20 04:14:00 GMT 2000
Hi Hiroyuki,
> psABI book (Fig 3-18)says t9 is same as other temporary registers expcet on
> calling position independent functions, because callee asummes t9
> has own address to calculate gp value.
>
> According that description, we can use t9 for evaluating function
> address not for calling. I believe following codes are proper.
You are right. Do we have any means to detect the common sequence of "la
$25, <sym>", "jalr $25" then? We could use that to decide to emit CALL
relocations unconditionally when we have no information from gcc (or other
compiler).
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
More information about the Binutils
mailing list