tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Using hidden visibility in ld.elf_so
On Sat, Dec 04, 2010 at 12:26:13AM +0000, Andrew Doran wrote:
> On Sat, Dec 04, 2010 at 12:45:34AM +0100, Joerg Sonnenberger wrote:
>
> > Hi all,
> > attached patch marks ld.elf_so as using hidden visibility by default and
> > the exported functions explicitly as public. It also changes i386 and
> > x86_64 to exploit this by using relative calls to avoid the PLT. This
> > slightly reduces the number of relocations and decreases size as well.
> >
> > Comments?
>
> Thank you. :-). Should have an excellent impact on some workloads.
> Are there many relocs left? On x86 at least a really dumb prelinker
> could eliminate an awful lot of them. When I looked at this I wondered
> if it might be worth adding a script that causes the build to fail if
> certain kinds of relocs are introduced. Might be more trouble than
> it's worth, just a thought.
libc_pic brings a few things in. I plan to sort that out as well, but it
is more work.
Joerg
Home |
Main Index |
Thread Index |
Old Index