public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Geoff Keating <geoffk@geoffk.org>
To: amodra@bigpond.net.au
Cc: binutils@sourceware.cygnus.com
Subject: Re: powerpc64-linux infrastructure 5 of 6
Date: Wed, 08 Aug 2001 13:47:00 -0000	[thread overview]
Message-ID: <200108082105.OAA00687@geoffk.org> (raw)
In-Reply-To: <20010808224915.G939@bubble.sa.bigpond.net.au>

> Put relocs in the opcode table.

This seems like a bad design.  The opcode table is shared between
multiple ABIs and object file formats, and there's no reason to think
that the reloc for an instruction in aix-xcoff would be the same as
the one in powerpc SVR4. For instance,

   /* The D field in a D form instruction.  This is a displacement off
      a register, and implies that the next operand is a register in
      parentheses.  */
 #define D CR + 1
-  { 16, 0, 0, 0, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED },
+  { 16, 0, 0, 0, PPC_OPERAND_PARENS | PPC_OPERAND_SIGNED,
+    BFD_RELOC_PPC_TOC16 },

seems specific to the AIX and powerpc64 ABIs.

-- 
- Geoffrey Keating <geoffk@geoffk.org>

  reply	other threads:[~2001-08-08 13:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-08  6:19 Alan Modra
2001-08-08 13:47 ` Geoff Keating [this message]
2001-08-08 13:55   ` Torbjorn Granlund
2001-08-08 16:44     ` Alan Modra
2001-08-09 12:55       ` Geoff Keating
2001-08-09 14:56         ` Alan Modra
2001-08-23  7:43           ` Torbjorn Granlund
2001-08-23 18:30             ` Alan Modra

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=200108082105.OAA00687@geoffk.org \
    --to=geoffk@geoffk.org \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sourceware.cygnus.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).