This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH] Decreasing the size of .opd on ppc64
On Thu, Jun 10, 2004 at 04:51:54PM -0400, David Edelsohn wrote:
> I do not have any fundamental objections to the first patch that
> avoids the extra word for non-nested functions on PPC64 Linux.
>
> Why don't .opd's need relocation? The function descriptor
> encapsulates the code and TOC addresses for PIC code.
.opd's need relocation in shared libraries and PIEs (position independent
executables).
They don't need relocations in normal executables, which are position
dependent and thus both the code and TOC addresses are known at link time.
Jakub