This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.10.91: A problem with R_MIPS_CALL relocations within gas


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]