Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1C92ws-0003FC-1o for mharc-grub-devel@gnu.org; Sun, 19 Sep 2004 10:45:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C92wq-0003EO-CN for grub-devel@gnu.org; Sun, 19 Sep 2004 10:45:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C92wp-0003De-1O for grub-devel@gnu.org; Sun, 19 Sep 2004 10:45:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C92wo-0003DR-Ua for grub-devel@gnu.org; Sun, 19 Sep 2004 10:45:50 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C92qu-0005Cs-22 for grub-devel@gnu.org; Sun, 19 Sep 2004 10:39:44 -0400 Received: from localhost (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 94D9EF54FF44 for ; Sun, 19 Sep 2004 16:39:43 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sun, 19 Sep 2004 16:39:44 +0200 User-Agent: KMail/1.6.1 References: <87vfeal9r2.fsf@marco.marco-g.com> In-Reply-To: <87vfeal9r2.fsf@marco.marco-g.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200409191639.44044.okuji@enbug.org> Subject: Re: Dynamic loader X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2004 14:45:52 -0000 On Sunday 19 September 2004 14:32, Marco Gerards wrote: > In the case STT_FUNC the `sym->st_value' has a valid pointer. After > that the following thing happens: > > sym->st_value += (Elf_Addr) grub_dl_get_section_addr (mod, > > sym->st_shndx); I don't remember the ELF specification very precisely, so please consult the specification for better information. I think the value in STT_FUNC is an offset from the section address. So, in order to get the real address, you need to add the section address. Okuji