[patch] MIPS gas problems with gcc's explicit relocs

Paul Koning pkoning@equallogic.com
Fri Jun 4 18:07:00 GMT 2004


>>>>> "Thiemo" == Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:

 Thiemo> Paul Koning wrote: [snip] That's not the way gcc up to 3.3
 Thiemo> works for mips. So far, it was possible to write
 >>
 Thiemo> asm("ld\t%0,%1(%2)" : "=r" (foo) : "m" (bar), "r" (baz));
 >>
 Thiemo> and get something like
 >>
 Thiemo> #APP ld $2,bar($2) #NO_APP
 >> That certainly is not what I expect from the documentation.  If
 >> you need "bar" as a displacement, then it clearly is not a memory
 >> location -- which is what "m" means.

 Thiemo> I need "bar" as a symbol reference.

Doesn't "i" do what you need for this?

	paul




More information about the Binutils mailing list