This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] PowerPC: Use correct PLT relocations for elf_machine_type_class.


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




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