]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't use the symbol name to lookup the symbol value when we can use
authormarcel <marcel@FreeBSD.org>
Thu, 25 Apr 2002 01:22:16 +0000 (01:22 +0000)
committermarcel <marcel@FreeBSD.org>
Thu, 25 Apr 2002 01:22:16 +0000 (01:22 +0000)
commit56d625090ed627a480bc1b8c3253e4cb4c48ec41
tree06955b3f6ae78c92827f72737fab4a079d4113d3
parent12a8faa64a26e5dcfde6ae295040e0fe4aa5afe1
Don't use the symbol name to lookup the symbol value when we can use
the symbol index defined by the relocation. The elf_lookup() support
function is to be used by elf_reloc() when symbol lookups need to be
done. The elf_lookup() function operates on the symbol index and
will do a symbol name based lookup when such is required, otherwise
it uses the symbol index directly. This solves the problem seen on
ia64 where the symbol hash table does not contain local symbols and
a symbol name based lookup would fail for those symbols.

Don't pass the symbol name to elf_reloc(), as it isn't used any more.
sys/alpha/alpha/elf_machdep.c
sys/amd64/amd64/elf_machdep.c
sys/i386/i386/elf_machdep.c
sys/ia64/ia64/elf_machdep.c
sys/kern/link_elf.c
sys/kern/link_elf_obj.c
sys/powerpc/powerpc/elf_machdep.c
sys/sparc64/sparc64/elf_machdep.c
sys/sys/linker.h