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 07:34:40 +0100 (MET)
- cc: ian at zembu dot com, binutils at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
On Sun, 19 Nov 2000, Hiroyuki Machida wrote:
> Ok. But in my understanding, the condition "la t9" is not enought to detect
> lazy-binding. The next case, you can't apply lazy-binding. I know
> the current gcc never generates such codes.
> I think gcc should pass information wheather the symbol is
> lazy-bindable or not and gas use it.
That surely is an option, but...
> .set macro
> .set reorder
>
> la t9, <sym>
> beq t9, a1, 1f
> jal t9
>
> 1:
I'm not sure whether this is a proper SVR4 PIC code. I guess the
following code should be used instead (even though it's less optimal):
.set macro
.set reorder
la t1, <sym>
beq t1, a1, 1f
la t9, <sym>
jal t9
1:
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +