This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PowerPC: Use correct PLT relocations for elf_machine_type_class.
- From: "Ryan S. Arnold" <rsa at us dot ibm dot com>
- To: Ulrich Drepper <drepper at redhat dot com>, Alan Modra <amodra at bigpond dot net dot au>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 20 Feb 2008 15:41:47 -0600
- Subject: Re: [PATCH] PowerPC: Use correct PLT relocations for elf_machine_type_class.
- References: <1203537649.11373.28.camel@localhost> <47BC88C4.7030600@redhat.com>
- Reply-to: rsa at us dot ibm dot com
On Wed, 2008-02-20 at 12:08 -0800, Ulrich Drepper wrote:
> And what is it supposed to fix?
Per the PowerPC 64-bit ABI:
"The relocation type for each [relocation table] entry shall be
R_PPC64_JMP_SLOT"
I'm not an expert on the loader but I suspect this was causing a slow
down when resolving symbols for a PLT relocation because the test
against the cached value 'l_lookup_cache.type_class' would always fail
for the PLT relocation which would require a call to
_dl_lookup_symbol_x() every time.
Alan, any comment?
Ryan S. Arnold
IBM Linux Technology Center
Linux Toolchain Development