This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Elf OS ABI Number
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: "Kris Warkentin" <kewarken at qnx dot com>
- Cc: "Gdb at Sources dot Redhat dot Com" <gdb at sources dot redhat dot com>, Richard dot Earnshaw at arm dot com
- Date: Wed, 11 Jun 2003 17:44:21 +0100
- Subject: Re: Elf OS ABI Number
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Does anyone know how to get one of these? I was rooting around on Caldera's
> website but didn't see anything. I've realized that we need to have a
> practical way to identify QNX binaries and this looks like the way to go.
>
A fairly common question, to which most times the answer is that you don't
need one.
You should only be using the OS ABI field if you are changing the meaning
of the ELF specifics for a processor (new relocs, for example) which a
linker not trained to recognise these would be unable to handle. It
shouldn't be used to represent things that are encoded in the instructions
inside sections (eg library calls specific to your OS, etc).
The ELF specs seem to find it very hard to express this, but if you read
it carefully, that is what they do say.
R.