|
From: Tom H. <to...@co...> - 2005-11-15 11:44:17
|
In message <172...@ca...>
Paul Mackerras <pa...@sa...> wrote:
> Tom Hughes writes:
>
>> Why does the data section have execute permission? It wouldn't
>> normally have that on x86/amd64 systems.
>
> Two reasons: (1) you have to be able to execute the blrl at the base
> of the GOT, and (2) procedure calls between objects jump into the PLT,
> which contains instructions for either calling the dynamic linker or
> jumping to the procedure.
The PLT shouldn't be an issue as that is normally adjacent to the
text section so it will be part of the first mapping. Or is that
different on ppc as well?
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|