From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 14:03:38 2014 Return-Path: Delivered-To: freebsd-questions@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 4446B24C for ; Thu, 18 Dec 2014 14:03:38 +0000 (UTC) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2AB41D34 for ; Thu, 18 Dec 2014 14:03:37 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.14.7/8.14.7) with ESMTP id sBIE3Ssa017071; Thu, 18 Dec 2014 14:03:29 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <5492DEB0.5060805@qeng-ho.org> Date: Thu, 18 Dec 2014 14:03:28 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Rolf Nielsen , freebsd-questions@freebsd.org Subject: Re: Finding 32-bit binaries References: <54923141.4090209@gmail.com> <20141218125653.GA12129@freebsd.crowsnest.tk> <5492D505.4090800@gmail.com> In-Reply-To: <5492D505.4090800@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2014 14:03:38 -0000 On 18/12/2014 13:22, Rolf Nielsen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 2014-12-18 13:56, Carrion Crow wrote: >> Hi, >> >> Maybe try something like this: >> >> for DIR in /bin /sbin /usr/local/bin /usr/local/sbin; do for BIN in >> $DIR/*; do file $BIN; done | grep '32-bit'; done >> > > Thanks. I did something similar, though not exactly the same. And I > included more directories. And I found this file > > /usr/lib/kgzldr.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 > (FreeBSD), not stripped > > What does it do? And why is it where I'd expect only 64-bit binaries? > Will it be able to do whatever it's doing if I remove 32-bit compat > and libs? > Guessing wildly, I think that's something to do booting gzipped kernels. Source is at /usr/src/sys/boot/i386/kgzldr -- Those who do not learn from computing history are doomed to GOTO 1