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


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        +


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