From owner-freebsd-current@FreeBSD.ORG Tue Jan 6 20:48:20 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0099106566B for ; Tue, 6 Jan 2009 20:48:20 +0000 (UTC) (envelope-from giffunip@tutopia.com) Received: from tutopia.com (mail06mass.ifxnetworks.com [190.60.24.76]) by mx1.freebsd.org (Postfix) with ESMTP id 31FFB8FC1B for ; Tue, 6 Jan 2009 20:48:19 +0000 (UTC) (envelope-from giffunip@tutopia.com) Received: (qmail 7066 invoked from network); 6 Jan 2009 20:21:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail06mass.ifxnetworks.com X-Spam-Level: X-Spam-Status: No, score=0.1 required=7.0 tests=MISSING_MID,RDNS_NONE autolearn=disabled version=3.2.5 Received: from unknown (HELO mail13.ifxnetworks.com) ([190.61.128.23]) (envelope-sender ) by mail06mass.ifxnetworks.com (qmail-ldap-1.03) with SMTP for ; 6 Jan 2009 20:21:32 -0000 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 From: To: 'Pedro F . Giffuni' , Chagin Dmitry X-Origin: 190.60.24.4 Date: Tue, 06 Jan 2009 20:21:32 +0000 X-Uidl: 20090106195903.GA51780@dchagin.dialup.corbina.ru X-Mailer: AtMail 4.11 Message-Id: <20090106204820.31FFB8FC1B@mx1.freebsd.org> X-Mailman-Approved-At: Tue, 06 Jan 2009 21:11:07 +0000 Cc: freebsd-current@freebsd.org Subject: Re: RFC: ELF branding. looking to a '.note.ABI-tag' section X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: giffunip@tutopia.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 20:48:20 -0000 =0D =0D On Mar Ene 6 14:59 , Chagin Dmitry sent:=0D =0D >On Tue, Jan 06, 2009 at 09:38:35AM -0800, Pedro F. Giffuni wrote:=0D >> Hi;=0D >> =0D >> As the author of kern/118473 I think that ELF notes for brand-ELFing is = a =0D useless non standard hack. I do understand that we want to teach our linuxu= lator =0D about GNU ELF notes, but why would we want to use them for FreeBSD binaries= ?=0D >> =0D >> If you follow the posting on the lists by John Polstra and ELF spec you = will =0D find we don't need ELF notes. There is also a thread in some binutils list = that =0D made me conclude the reason they chose for not using the standard way was "= NIH".=0D >> =0D >> Pedro.=0D >> =0D >=0D >Hi, I don't think so. We already use this for native binaries.=0D >=0D >http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/imgact_elf.c.diff\?=0D r1=3D1.181;r2=3D1.182=0D >=0D =0D Aha .. The ELF standard doesn't include the OS_version so using notes for t= hat =0D makes sense, however for the ABI the standard has always been EI_ABI field.= =0D =0D http://www.sco.com/developers/gabi/latest/ch4.eheader.html#osabi=0D =0D Please check this interesting link:=0D =0D http://people.freebsd.org/~obrien/ei_osabi-binutils.mbox=0D =0D Pedro.=0D =0D =0D