This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] Mark arm-*-netbsdelf* binaries as ELFOSABI_NETBSD


On Sun, Apr 07, 2002 at 10:31:57AM -0700, Jason R Thorpe wrote:
> On Sun, Apr 07, 2002 at 11:17:31AM +0100, Philip Blundell wrote:
> 
>  > That is not really what the EI_OSABI field is for.  It is intended to
>  > identify the ABI in a wider sense, so that you can ascribe meanings to
>  > things like reloc numbers.  If your object files are compatible with
>  > what elfarm-nabi.c produces, you should stick with ELFOSABI_ARM.
> 
> Err, this certainly doesn't appear to be the case with e.g. elf-hppa-linux.

That is because Linux/HPPA doesn't follow the HPPA psABI. We use
DT_INIT instead of DT_INIT_ARRAY.

> As far as I can tell, the usage of EI_OSABI in that code is basically the
> same as the usage I have in mind for elfarm-nabi.
> 

You should change EI_OSABI only if your ABI has something which is
not covered in the psABI. That means a tool which follows the psABI
won't process your binary correctly.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]