Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2014 14:03:28 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Rolf Nielsen <rmg1970swe@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: Finding 32-bit binaries
Message-ID:  <5492DEB0.5060805@qeng-ho.org>
In-Reply-To: <5492D505.4090800@gmail.com>
References:  <54923141.4090209@gmail.com> <20141218125653.GA12129@freebsd.crowsnest.tk> <5492D505.4090800@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5492DEB0.5060805>