From owner-cvs-src@FreeBSD.ORG Thu Jul 3 17:05:16 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EC5E37B401; Thu, 3 Jul 2003 17:05:16 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D9354401F; Thu, 3 Jul 2003 17:05:16 -0700 (PDT) (envelope-from jake@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6405G0U073795; Thu, 3 Jul 2003 17:05:16 -0700 (PDT) (envelope-from jake@repoman.freebsd.org) Received: (from jake@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6405Fhe073790; Thu, 3 Jul 2003 17:05:15 -0700 (PDT) Message-Id: <200307040005.h6405Fhe073790@repoman.freebsd.org> From: Jake Burkholder Date: Thu, 3 Jul 2003 17:05:15 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/libexec/rtld-elf/sparc64 rtld_machdep.h rtld_start.S X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 04 Jul 2003 00:05:17 -0000 jake 2003/07/03 17:05:15 PDT FreeBSD src repository Modified files: libexec/rtld-elf/sparc64 rtld_machdep.h rtld_start.S Log: Avoid using the global offset table to get the address of _DYNAMIC in rtld. When _DYNAMIC is referenced normally from C the global offset table is used implicitly, but newer versions of binutils don't initialize it statically in the binary, so this doesn't work until rtld is relocated, which _DYNAMIC is needed for... So, as on other systems with the same problem, we disassemble a call instruction to _DYNAMIC in order to get its address. Revision Changes Path 1.5 +1 -1 src/libexec/rtld-elf/sparc64/rtld_machdep.h 1.5 +17 -0 src/libexec/rtld-elf/sparc64/rtld_start.S