NetBSD-Bugs archive

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

Re: toolchain/51238: ELF binaries don't carry ELFOSABI_NETBSD in their header



The following reply was made to PR toolchain/51238; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: toolchain-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/51238: ELF binaries don't carry ELFOSABI_NETBSD in
 their header
Date: Mon, 13 Jun 2016 22:56:53 +0200

 On Mon, Jun 13, 2016 at 03:40:00PM +0000, nolden%kde.org@localhost wrote:
 > >Description:
 > According to http://netbsd.gw.com/cgi-bin/man-cgi?elf+5 the
 > ELFOSABI_NETBSD is defined but not used:
 
 This is intentional.
 
 > However, a lot of binary programs that inspect elf binaries use the
 > header instead of inspecting PT_NOTE. Unfortunately, those programs
 > will detect NetBSD binaries as UNIX binaries and depending on their
 > logic will use some default value like Linux as the OS the binary is
 > built for, such as Qt Creator.
 
 That's a bug in the programs. There is no advantage to tagging with
 ELFOSABI_NETBSD. AS such: "No bug here, works as intended"
 
 Joerg
 


Home | Main Index | Thread Index | Old Index