From owner-cvs-src@FreeBSD.ORG Fri Aug 1 21:58:24 2008 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 C3B611065671; Fri, 1 Aug 2008 21:58:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B10938FC0C; Fri, 1 Aug 2008 21:58:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m71LwO6I084651; Fri, 1 Aug 2008 21:58:24 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m71LwOGQ084650; Fri, 1 Aug 2008 21:58:24 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200808012158.m71LwOGQ084650@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 1 Aug 2008 21:52:41 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src Makefile.inc1 src/usr.bin/ldd Makefile ldd.1 ldd.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: Fri, 01 Aug 2008 21:58:24 -0000 jhb 2008-08-01 21:52:41 UTC FreeBSD src repository Modified files: . Makefile.inc1 usr.bin/ldd Makefile ldd.1 ldd.c Log: SVN rev 181136 on 2008-08-01 21:52:41Z by jhb Tweak the support for using ldd on 32-bit objects a bit further. Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly) Revision Changes Path 1.608 +3 -0 src/Makefile.inc1 1.14 +1 -1 src/usr.bin/ldd/Makefile 1.28 +0 -6 src/usr.bin/ldd/ldd.1 1.39 +67 -32 src/usr.bin/ldd/ldd.c