This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: SHT_GNU_ATTRIBUTES advice...
From: Alan Modra <amodra@gmail.com>
Date: Sat, 10 Sep 2011 14:01:38 +0930
> On Fri, Sep 09, 2011 at 03:03:49PM -0400, David Miller wrote:
>> I'm not so sure how to proceed. Perhaps conditionalize the handling
>> of section header type "0x6ffffff5" based upon the OSABI?
>
> Sounds correct to me. On this subject, we really ought to be setting
> OSABI to ELFOSABI_GNU (unless the processor ABI says otherwise)
> whenever we use any OS specific extensions like the SHT_GNU headers.
And I also noticed that the Solaris ELF backend explicitly avoids
using ELFOSABI_SOLARIS because doing so would preclude linking with
what all current Solaris/SPARC objects have, which is ELFOSABI_NONE.
This really puts a pickle into the idea to conditionalize section type
handling upon the OSABI.