bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12913] Should rename ELFOSABI_LINUX into ELFOSABI_GNU, an


From: rmh at gnu dot org
Subject: [Bug binutils/12913] Should rename ELFOSABI_LINUX into ELFOSABI_GNU, and drop ELFOSABI_HURD
Date: Sat, 07 Apr 2012 21:05:05 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12913

Robert Millan <rmh at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |rmh at gnu dot org
         Resolution|FIXED                       |

--- Comment #6 from Robert Millan <rmh at gnu dot org> 2012-04-07 21:05:05 UTC 
---
Hi,

This looks very wrong. elf_osabi identifies the kernel, not userland. This
commit broke elf32-i386-freebsd and elf64-x86-64-freebsd targets.

As you can see in the definition of those targets (in bfd/elf64-x86-64.c),
elf_osabi field is reset to ELFOSABI_FREEBSD. This is because the kernel of
FreeBSD uses osabi to identify the syscall ABI in loaded executables.

Because of this both FreeBSD and GNU/kFreeBSD have to use this tag. The way you
just redefined it to imply userland rather than kernel leaves GNU/kFreeBSD out
in the cold. Now we're going to hit trouble every time someone uses
ELFOSABI_GNU to check for a GNU feature, and it begins right now with
STT_GNU_IFUNC.

Please, can you reconsider this? There were already ways to check for userland
(ELF Notes). There's no need to redefine existing interfaces to archieve that.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]