From owner-svn-src-all@FreeBSD.ORG Wed Dec 3 16:47:41 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03CD686B; Wed, 3 Dec 2014 16:47:41 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2186A5A; Wed, 3 Dec 2014 16:47:40 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-70-85-31.nwrknj.fios.verizon.net [173.70.85.31]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 69692B98A; Wed, 3 Dec 2014 11:47:39 -0500 (EST) From: John Baldwin To: src-committers@freebsd.org Subject: Re: svn commit: r275412 - head/libexec/rtld-elf Date: Wed, 03 Dec 2014 10:06:41 -0500 Message-ID: <4619679.qqfhhZFLG8@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <201412021622.sB2GM9j4008534@svn.freebsd.org> References: <201412021622.sB2GM9j4008534@svn.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 03 Dec 2014 11:47:39 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 16:47:41 -0000 On Tuesday, December 02, 2014 04:22:09 PM John Baldwin wrote: > Author: jhb > Date: Tue Dec 2 16:22:08 2014 > New Revision: 275412 > URL: https://svnweb.freebsd.org/changeset/base/275412 > > Log: > The runtime linker needs to include a path to itself in the link map > it exports to the debugger. It currently has two choices: it can use > a compiled-in path (/libexec/ld-elf.so.1) or it can use the path stored > in the interpreter path in the binary being executed. The runtime linker > currently prefers the second. However, this is usually wrong for compat32 > binaries since the binary specifies the path of rtld on a 32-bit system > (/libexec/ld-elf.so.1) instead of the actual path (/libexec/ld-elf32.so.1). > For now, always assume the compiled in path (/libexec/ld-elf32.so.1) as the > rtld path and ignore the path in the binary for the 32-bit runtime linker. > > Differential Revision: https://reviews.freebsd.org/D1236 > Reviewed by: kib This allows gdb (both in-tree and in-ports) to better debug an i386 binary on amd64. In particular, you can now start an i386 binary under gdb, and for devel/gdb from ports you can now debug an i386 core dump. (The in-tree gdb is confused by an i386 core dump.) -- John Baldwin