From owner-freebsd-arch Fri Feb 23 16:17:58 2001 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id EC31A37B4EC for ; Fri, 23 Feb 2001 16:17:55 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.2/8.11.1) id f1O0BXF73698; Fri, 23 Feb 2001 16:11:33 -0800 (PST) (envelope-from obrien) Date: Fri, 23 Feb 2001 16:11:33 -0800 From: "David O'Brien" To: Marcel Moolenaar Cc: arch@FreeBSD.org Subject: Re: sysctl kern.fallback_elf_brand Message-ID: <20010223161133.B72750@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <3A960EF8.75C3FC53@cup.hp.com> <20010223042641.B2539@dragon.nuxi.com> <3A96AC92.F14A90B9@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A96AC92.F14A90B9@cup.hp.com>; from marcel@cup.hp.com on Fri, Feb 23, 2001 at 10:31:46AM -0800 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 X-Loop: FreeBSD.ORG On Fri, Feb 23, 2001 at 10:31:46AM -0800, Marcel Moolenaar wrote: > > The real fix is to teach the ELF image loader to read the .note.ABI-tag > > section. Then statically linked Linux binaries would be correctly > > identified [since our branding scheme isn't accepted by anyone other than > > us]. > > The use of the section seems broken to me. It's the first time I've > heard of it (so I won't really know how it's used :-). AFAICT, ABI > information is written in e_ident[EI_OSABI] and annotated with flags in > e_flags. That should be enough for our ELF loader. Please, PLEASE, P-L-E-A-S-E don't go there. TRUST me on this one. The topic of ELF branding was the nastiest thread in a GNU toolchain mailing list I've ever been involved in. See http://people.freebsd.org/~obrien/ei_osabi-binutils.mbox You may have your position due to it actually being specified [at one time] in the IA-64 psABI(http://developer.intel.com/design/ia-64/downloads/245370.htm). The spec is wrong, the committee changed this many months ago, yet never bothered to fix the doc for the rest or the world for a long time. So unless you are one of the {\extream_sarcasm Blessed}, you wouldn't know this. Go pester Cary Coutant of HP (in Cupertino even) about it. Note that the ELF *ABI people will not address our needs of dealing with foreign static binaries: For statically-bound programs, I'm afraid we don't have a clear solution. We took the general approach that such programs are not ABI-conforming in the first place -- -- David (obrien@FreeBSD.org) GNU is Not Unix / Linux Is Not UniX P.S. We "brand" our binaries this way, so does BSD/OS, NetBSD, and Linux. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message