This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: 2.10.91: A problem with R_MIPS_CALL relocations within gas
- To: Hiroyuki Machida <machida at sm dot sony dot co dot jp>
- Subject: Re: 2.10.91: A problem with R_MIPS_CALL relocations within gas
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Mon, 20 Nov 2000 13:11:14 +0100 (MET)
- cc: ian at zembu dot com, binutils at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
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 +