public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Torbjorn Granlund <tege@swox.com>
To: Geoff Keating <geoffk@redhat.com>
Cc: amodra@bigpond.net.au, binutils@sourceware.cygnus.com
Subject: Re: powerpc64-linux infrastructure 5 of 6
Date: Wed, 08 Aug 2001 13:55:00 -0000	[thread overview]
Message-ID: <86r8um1dbq.fsf@king.swox.se> (raw)
In-Reply-To: <200108082105.OAA00687@geoffk.org>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Geoff Keating <geoffk@geoffk.org> writes:

  > 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.
  
Yes, that field is only used for AIX / XCOFF.
It replaces an ugly chunk of ad-hoc code in tc-ppc.c.

Why do you think it is bad design?

-- 
Torbjörn

  reply	other threads:[~2001-08-08 13:55 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
2001-08-08 13:55   ` Torbjorn Granlund [this message]
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=86r8um1dbq.fsf@king.swox.se \
    --to=tege@swox.com \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sourceware.cygnus.com \
    --cc=geoffk@redhat.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).