asm ("...") on PPC

Ian Lance Taylor ian@zembu.com
Sat Apr 1 00:00:00 GMT 2000


   Date: Thu, 24 Feb 2000 20:16:14 +0100 (CET)
   From: Geir Frode Raanes <geirfrs@invalid.ed.ntnu.no>

	     lwzu r9,4(3)   <- "Error: unsupported relocation type" ???
	     stwu r9,0,4(4) <- "Error: unsupported relocation type" ???
	     bdnz+ linjeloop

   "Error: unsupported relocation type" But this is supposed to be
   correct code according to the PowerPC manual. What is GAS really
   complaining about here?

gas thinks that you are tryng to refer to a symbol named `r9'.

PowerPC gas does not permit register names unless you use the
-mregnames option.

Just use 9 instead of r9.  Look at the gcc generated code.

Ian

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list