This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: powerpc64-linux infrastructure 5 of 6
- To: amodra at bigpond dot net dot au
- Subject: Re: powerpc64-linux infrastructure 5 of 6
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Wed, 8 Aug 2001 14:05:18 -0700
- CC: binutils at sourceware dot cygnus dot com
- References: <20010808224915.G939@bubble.sa.bigpond.net.au>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> 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>