This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: asm ("...") on PPC


   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


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