From owner-freebsd-arch Tue May 7 14: 0: 6 2002 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 2AD9437B405 for ; Tue, 7 May 2002 13:59:58 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g47Kxvev030099; Tue, 7 May 2002 13:59:57 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g47KxvtY030098; Tue, 7 May 2002 13:59:57 -0700 (PDT) Date: Tue, 7 May 2002 13:59:57 -0700 From: "David O'Brien" To: Nathan Hawkins Cc: arch@FreeBSD.ORG Subject: Re: syscall changes to deal with 32->64 changes. Message-ID: <20020507135957.A30027@dragon.nuxi.com> Reply-To: arch@FreeBSD.ORG Mail-Followup-To: David O'Brien , Nathan Hawkins , arch@FreeBSD.ORG References: <3CD7FE57.1000508@quic.net> <20020507110901.F23330@dragon.nuxi.com> <3CD823E8.2010809@quic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3CD823E8.2010809@quic.net>; from utsl@quic.net on Tue, May 07, 2002 at 02:58:48PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, May 07, 2002 at 02:58:48PM -0400, Nathan Hawkins wrote: > >>I'd like to see FreeBSD start using ELF .note.ABI-tag sections to handle > >>the binary OS type/versioning. I know that at least NetBSD, Linux and > >>Hurd do it this way, and I think most others do too. > > > >Why? Just to follow the NIH herd? The EI_OSABI and EI_ABIVERSION fields > >were in the gABI spec before anyone started using .note sections for > >this. > > > Because AFAICS, it's a defacto, unwritten standard. Even if it violates > spec. Your response is mostly content free. But I honestly interested in your response. Could you reread what I said and address it? What is the defacto, unwritten standard? I assume you mean .note sections. > Even if it violates spec. What is "it" and how does it violate the gABI spec? > NIH is a matter of perspective. FreeBSD could be considered to be in NIH > mode, because the other ELF based systems use a different method. FreeBSD was the first to have a need to "brand" binaries. So there was nothing to follow, so no NIH. [The need was to be able to run static Linux binaries. Note that if Linux was strictly gABI compliant there would (1) be no static binaries; and (2) we could not use the dynamic linker's name as a key to know the binary is a Linux one.] > this from a field in the ELF header. But you also use the .interp > section in the emulation selector code. Not really. We do, but that is because few are strictly compliant with the psABI's. For i386 FreeBSD and Linux should be using "/usr/lib/libc.so.1". For Alpha "/usr/lib/ld.so", and for Sparc64 "/usr/libexec/ld-elf.so.1". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message