[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic loader
From: |
Yoshinori K. Okuji |
Subject: |
Re: Dynamic loader |
Date: |
Sun, 19 Sep 2004 16:39:44 +0200 |
User-agent: |
KMail/1.6.1 |
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