This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PowerPC binary tagging
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Cc: Daniel Jacobowitz <drow at false dot org>, Alan Modra <amodra at bigpond dot net dot au>
- Date: Mon, 16 Apr 2007 15:18:27 +0100
- Subject: Re: PowerPC binary tagging
- References: <20070416124544.GA31139@caradoc.them.org>
> Has anyone thought about implementing this for PowerPC? Do we have
> spare ELF header bits, or should we use a separate section? The
> closest think I know if is the .PPC.EMB.apuinfo section, used to tag
> SPE binaries, but that's coprocessor usage rather than ABI.
>
> ARM has an extremely thorough solution to this problem - I don't know
> if we want anything as thorough for PPC to be honest. See Section 2,
> Build Attributes.
>
> http://www.arm.com/pdfs/ABI-addenda.pdf
FWIW I recommend using a table in a section (or PT_* in an image) rather
a "spare ELF header bits". ISTR there being several targets where have have
run out of bits or ended up with ambiguous bit meanings.
Paul