Assembler "Error: unsupported relocation against r0"
Wolfgang Denk
wd at denx.de
Thu Oct 31 19:19:24 EST 2002
In message <20021031033959.GA1806 at dd.nec.com.au> 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 at denx.de
I paid too much for it, but its worth it.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list