Thread (1 message) 1 message, 1 author, 2002-10-31

Re: Assembler "Error: unsupported relocation against r0"

From: Wolfgang Denk <hidden>
Date: 2002-10-31 08:19:24

In message [ref] you wrote:
   powerpc-linux-as, built according to Penguinppc.org's "Cross
Development mini-howto for PPC Linux", is giving me stick about the
simplest assembler statements:

fred.s >>>
   .text
   .align 2
   li          r0,0
   addi        r0,0,0
<<<

$ powerpc-linux-as fred.s
fred.s: Assembler messages:
fred.s:3: Error: unsupported relocation against r0
fred.s:4: Error: unsupported relocation against r0
Try this instead:

fred.s >>>
	.text
	.align 2
	li	0,0
	addi	0,0,0
<<<

or #include something like "ppc_asm.tmpl" (in the Linux  kernel  tree
as arch/ppc/kernel/ppc_asm.tmpl)

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
I paid too much for it, but its worth it.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help