[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff for setting osabi on elf headers



> AFAIK that field was never intended to be used for that purpose,

so what is it for ?

look at:
http://www.caldera.com/developers/gabi/latest/ch4.eheader.html#elfid

and you will see something like this:

<quoting>
Name      Value Purpose
EI_OSABI  7     Operating system/ABI identification

EI_OSABI:
Byte e_ident[EI_OSABI] identifies the OS - or ABI-especific ELF
extensions used by this file. Some fields in other ELF structures have
flags and values that have operating system and/or ABI specific
meanings; the interpretation of those fields is determined by the value
of this byte.

Name             Value Meaning
ELFOSABI_NONE    0     No extensions or unspecified
[...]
ELFOSABI_OPENBSD 12    OpenBSD 
</quoting>

millert's point was perfectly correct, that was not the right place to
do such a change, but i still think it should be made (somewhere else,
of course).

-p.