From owner-freebsd-current@FreeBSD.ORG Wed Jul 31 06:37:40 2013 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6439A8FE; Wed, 31 Jul 2013 06:37:40 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3486F2C8F; Wed, 31 Jul 2013 06:37:40 +0000 (UTC) Received: from Julian-MBP3.local (etroy.elischer.org [121.45.226.51]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.6) with ESMTP id r6V6bYD6031898 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 30 Jul 2013 23:37:37 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <51F8B0A8.7010705@freebsd.org> Date: Wed, 31 Jul 2013 14:37:28 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: David Chisnall Subject: Re: ldd runs linux programs References: <20130728193110.GB17514@gpr.nnz-home.ru> <20130728204958.GA32322@dft-labs.eu> <51F5D491.1080803@freebsd.org> <20130729081254.GB32322@dft-labs.eu> <20130729155625.GA2544@charmander> <20130729205449.GA6007@dft-labs.eu> <4DD4BD93-0218-4FCC-A63F-E408D6291687@FreeBSD.org> In-Reply-To: <4DD4BD93-0218-4FCC-A63F-E408D6291687@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Gennady Proskurin , Mateusz Guzik , freebsd-current@FreeBSD.org, Mark Johnston X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 06:37:40 -0000 On 7/30/13 5:37 AM, David Chisnall wrote: > On 29 Jul 2013, at 21:54, Mateusz Guzik wrote: > >> Well, there was linux_kdump in ports but it apparently got obsolete as >> necessary support for included in our regular kdump. >> >> So it may make sense to teach our ldd how to deal with Linux binaries >> for consistency, but its unclear for me if this is better than providing >> linux_ldd. Also there is the problem of (not) appending /compat/linux to >> printed paths (for Linux binaries the kernel performs file lookups against >> /compat/linux first). I'm not that interested in this problem though. :P >> >> That being said, if you want to do something with this, I suggest >> cleaning up PRs and reviving discussion in >> http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/127276 > What would be the correct behaviour for non-native binaries? Stacy Son and Brooks Davis have been working on providing a kernel activator for QEMU user mode, which lets us run, for example, MIPS or ARM binaries on x86. If you have a MIPS64 ELF file and you run ldd on it, what would the correct behaviour be? Once you have identified the binary type, you chain to the appropriate binary in libexec. if you can't find it, then you just exit. > > David > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >