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 08:07:58AM -0400, Jakub Jelinek wrote:
> I think we can squeeze .opd by 33% by overlapping the aux field
> of .opd entries with the func field of the next .opd entry.

This will require some linker changes first, as the linker "knows" that
.opd is a regular array of 24 byte entries.  See ppc64_elf_edit_opd and
ppc64_elf_section_data (sec)->opd.adjust.

> Another thing to consider would be not emitting .opd entry at all
> for !TREE_PUBLIC functions whose addresses aren't taken.

I intend to do this in the linker, which is where this sort of
optimization belongs.  We can throw away many more entries than we
currently do.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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