From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 5 07:52:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B227116A4CE for ; Thu, 5 Feb 2004 07:52:45 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D81CB43D4C for ; Thu, 5 Feb 2004 07:52:43 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i15FqhnJ027191; Thu, 5 Feb 2004 08:52:43 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 05 Feb 2004 08:52:27 -0700 (MST) Message-Id: <20040205.085227.88488269.imp@bsdimp.com> To: philip.reynolds@rfc-networks.ie From: "M. Warner Losh" In-Reply-To: <20040205103154.GA99852@rfc-networks.ie> References: <20040205083945.GB96509@rfc-networks.ie> <20040205095636.GF13932@FreeBSD.org.ua> <20040205103154.GA99852@rfc-networks.ie> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: ELF branding / magic numbers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 15:52:45 -0000 In message: <20040205103154.GA99852@rfc-networks.ie> Philip Reynolds writes: : Ruslan Ermilov 35 lines of wisdom included: : > On Thu, Feb 05, 2004 at 08:39:45AM +0000, Philip Reynolds wrote: : > [...] : > > Does the magic number not then support multiple ABI's per system : > > architecture, or is there some part of the puzzle I'm missing? : > > : > There's an EI_ABIVERSION byte following the EI_OSABI byte, which : > is both documented in the elf(5) manpage, and is shown in the : > ``readelf -h'' output. : : You misunderstood me. : : My question was why is there a need for a PT_NOTE section (which is : a more convaluted way of branding and reading a brand of an elf : binary) if the above sections exist? Because PT_NOTE is more portable and flexible. Warner