From owner-cvs-src@FreeBSD.ORG Sun Oct 21 21:09:55 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7272F16A420; Sun, 21 Oct 2007 21:09:55 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7873013C48E; Sun, 21 Oct 2007 21:09:55 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9LL9tma060460; Sun, 21 Oct 2007 21:09:55 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9LL9tj5060455; Sun, 21 Oct 2007 21:09:55 GMT (envelope-from marius) Message-Id: <200710212109.l9LL9tj5060455@repoman.freebsd.org> From: Marius Strobl Date: Sun, 21 Oct 2007 21:09:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/libexec/rtld-elf/sparc64 reloc.c src/sys/sparc64/sparc64 elf_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 21:09:55 -0000 marius 2007-10-21 21:09:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) libexec/rtld-elf/sparc64 reloc.c sys/sparc64/sparc64 elf_machdep.c Log: MFC: libexec/rtld-elf/sparc64/reloc.c 1.16, sys/sparc64/sparc64/elf_machdep.c 1.24 - Fix the handling of R_SPARC_OLO10, which is a bit of a special case in the way we implement handling of relocations. As for the kernel part this fixes the loading of lots of modules, which failed to load due to unresolvable symbols when built after the GCC 4.2.0 import. This wasn't due to a change in GCC itself though but one of several changes in configuration done along the import. Specfically, HAVE_AS_REGISTER_PSEUDO_OP, which causes GCC to denote global registers used for scratch purposes and in turn GAS uses R_SPARC_OLO10 relocations for, is now defined. While at it replace some more ELF_R_TYPE which should have been ELF64_R_TYPE_ID but didn't cause problems so far. - Sync a sanity check between kernel and rtld(1) and change it to be maintenance free regarding the type used for the lookup table. - Sprinkle const on lookup tables. - Use __FBSDID. Approved by: re (kensmith) Revision Changes Path 1.15.2.1 +14 -9 src/libexec/rtld-elf/sparc64/reloc.c 1.23.2.1 +14 -8 src/sys/sparc64/sparc64/elf_machdep.c