From owner-cvs-all Wed Apr 24 18:24:17 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5388637B405; Wed, 24 Apr 2002 18:24:12 -0700 (PDT) Received: (from marcel@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3P1MGC83912; Wed, 24 Apr 2002 18:22:16 -0700 (PDT) (envelope-from marcel) Message-Id: <200204250122.g3P1MGC83912@freefall.freebsd.org> From: Marcel Moolenaar Date: Wed, 24 Apr 2002 18:22:16 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha elf_machdep.c src/sys/i386/i386 elf_machdep.c src/sys/ia64/ia64 elf_machdep.c src/sys/kern link_elf.c src/sys/powerpc/powerpc elf_machdep.c src/sys/sparc64/sparc64 elf_machdep.c src/sys/sys linker.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG marcel 2002/04/24 18:22:16 PDT Modified files: sys/alpha/alpha elf_machdep.c sys/i386/i386 elf_machdep.c sys/ia64/ia64 elf_machdep.c sys/kern link_elf.c sys/powerpc/powerpc elf_machdep.c sys/sparc64/sparc64 elf_machdep.c sys/sys linker.h Log: 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. Revision Changes Path 1.9 +10 -11 src/sys/alpha/alpha/elf_machdep.c 1.9 +8 -12 src/sys/i386/i386/elf_machdep.c 1.4 +19 -24 src/sys/ia64/ia64/elf_machdep.c 1.54 +55 -8 src/sys/kern/link_elf.c 1.10 +9 -9 src/sys/powerpc/powerpc/elf_machdep.c 1.5 +4 -3 src/sys/sparc64/sparc64/elf_machdep.c 1.30 +3 -2 src/sys/sys/linker.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message