From: Wolfgang Denk <wd@denx.de>
To: Erik Christiansen <erik@dd.nec.com.au>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Assembler "Error: unsupported relocation against r0"
Date: Thu, 31 Oct 2002 09:19:24 +0100 [thread overview]
Message-ID: <20021031081929.86C1410158@denx.denx.de> (raw)
In-Reply-To: Your message of "Thu, 31 Oct 2002 14:39:59 +1100." <20021031033959.GA1806@dd.nec.com.au>
In message <20021031033959.GA1806@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@denx.de
I paid too much for it, but its worth it.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2002-10-31 8:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-31 3:39 Assembler "Error: unsupported relocation against r0" Erik Christiansen
2002-10-31 8:19 ` Wolfgang Denk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021031081929.86C1410158@denx.denx.de \
--to=wd@denx.de \
--cc=erik@dd.nec.com.au \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).