linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Assembler "Error: unsupported relocation against r0"
@ 2002-10-31  3:39 Erik Christiansen
  2002-10-31  8:19 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Christiansen @ 2002-10-31  3:39 UTC (permalink / raw)
  To: linuxppc-embedded


   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

The Motorola on-line doco seems to agree that this code is kosher.

   Does anyone know of any description of what powerpc-linux-as will
swallow?  (I have the generic (g)as document from gnu.org, and it is
good for getting the directives right. Manpages, info, the archive, and
the web have not added much substance.

   Before going back to tackling the 1500 lines of board initialisation
code which assembled with Diab tools, I must discover what daft
omissions of mine are causing this to fall over.

                          --------------------
powerpc-linux-as --version
GNU assembler 2.13.90.0.4 20020814
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of the GNU General Public License.  This program has absolutely no
warranty.
This assembler was configured for a target of `powerpc-linux'.

Regards,
Erik


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-31  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31  3:39 Assembler "Error: unsupported relocation against r0" Erik Christiansen
2002-10-31  8:19 ` Wolfgang Denk

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).