[PATCH] PowerPC: Use correct PLT relocations for elf_machine_type_class.
Ryan S. Arnold
rsa@us.ibm.com
Thu Feb 21 23:23:00 GMT 2008
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
More information about the Libc-alpha
mailing list