From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 15 23:20:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A8C816A41B for ; Tue, 15 Jan 2008 23:20:03 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id E3EFE13C459 for ; Tue, 15 Jan 2008 23:20:02 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:54982 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JEv4b-0005pa-8b for freebsd-hackers@freebsd.org; Wed, 16 Jan 2008 00:20:02 +0100 Received: (qmail 88286 invoked from network); 16 Jan 2008 00:19:58 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 16 Jan 2008 00:19:58 +0100 Received: (qmail 64071 invoked by uid 1001); 16 Jan 2008 00:19:58 +0100 Date: Wed, 16 Jan 2008 00:19:58 +0100 From: Erik Trulsson To: Yuri Message-ID: <20080115231958.GA64002@owl.midgard.homeip.net> Mail-Followup-To: Yuri , freebsd-hackers@freebsd.org References: <1200437163.478d37abc422c@webmail.rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1200437163.478d37abc422c@webmail.rawbw.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JEv4b-0005pa-8b. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JEv4b-0005pa-8b abcdb31b869f203c700bfd221b4ec35d Cc: freebsd-hackers@freebsd.org Subject: Re: Is Elf formatdocumented anywhere? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 23:20:03 -0000 On Tue, Jan 15, 2008 at 02:46:03PM -0800, Yuri wrote: > When I am trying to understand how Elf executable works I am only getting to few > pages with very fragmentary information. > > Googling many constants like R_386_PC32, R_386_TLS_LD only yields some > discussion references and code. > > Anybody knows where to read more about the Elf format? Does such document even > exist? > ELF is fairly well documented and standardized. Just googling for 'ELF' quickly yields the Wikipedia page http://en.wikipedia.org/wiki/Executable_and_Linkable_Format which contains several links to documents describing plenty of details. You can also read the elf(5) manpage in FreeBSD If that information is not what you are looking for you will have to ask much more specific questions (which hopefully somebody will be able to answer.) -- Erik Trulsson ertr1013@student.uu.se