From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 5 02:31:56 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 ECFD216A4CE for ; Thu, 5 Feb 2004 02:31:56 -0800 (PST) Received: from genua.rfc-networks.ie (genua.rfc-networks.ie [62.77.182.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id C669943D41 for ; Thu, 5 Feb 2004 02:31:55 -0800 (PST) (envelope-from philip.reynolds@rfc-networks.ie) Received: from tear.domain (tear [10.0.1.254]) by genua.rfc-networks.ie (Postfix) with ESMTP id 3B8475CEC for ; Thu, 5 Feb 2004 10:32:47 +0000 (GMT) Received: by tear.domain (Postfix, from userid 1000) id 2A64C20F13; Thu, 5 Feb 2004 10:31:54 +0000 (GMT) Date: Thu, 5 Feb 2004 10:31:54 +0000 From: Philip Reynolds To: freebsd-hackers@freebsd.org Message-ID: <20040205103154.GA99852@rfc-networks.ie> References: <20040205083945.GB96509@rfc-networks.ie> <20040205095636.GF13932@FreeBSD.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040205095636.GF13932@FreeBSD.org.ua> X-Operating-System: FreeBSD 4.8-STABLE X-URL: http://www.rfc-networks.ie Subject: Re: ELF branding / magic numbers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: philip.reynolds@rfc-networks.ie 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 10:31:57 -0000 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? -- Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil/ | www.rfc-networks.ie