Finding 32-bit binaries

Arthur Chance freebsd at qeng-ho.org
Thu Dec 18 14:03:38 UTC 2014


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


More information about the freebsd-questions mailing list