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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils