This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]