From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 13:22:17 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A766357 for ; Thu, 18 Dec 2014 13:22:17 +0000 (UTC) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BAFE15EE for ; Thu, 18 Dec 2014 13:22:16 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id hs14so961349lab.25 for ; Thu, 18 Dec 2014 05:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Xrqr+xRnu+PFZJQjzGb3qs4PwGmygRI4ALSCttU/d+A=; b=Fipa0dbpGq9ZQE8rRU35nkdV5xuwvBAPzl80oaClZZsbaLwa0fozWqTtuPg9KZm5Z2 v9JgbCqqLiFz06GkNsCVZDSPGlOVukt5kwBUA3iNWWCZKkH/cFLoGwT1SnOX4sADpd/D NlyZu2ZBDzn8e6HN4yBYyEtwIJ6LuzvM3jMNE9sPUn+uvYYe+i5ofL1YKqyF6ElmEAur eZrd0Cpm1l4zGe7TqOfq1ssp0URqRpHZTYtbQbh8yvlAiPT+GG+1TN6UhHHiXRqDrRUa MHA7Z8sHOJLKqr74hfSSNJWSGtPXgU8l2GE69THgg5c3j/mdXTEe0zvs1G/9GOq0V5RN S20Q== X-Received: by 10.112.78.39 with SMTP id y7mr2343342lbw.42.1418908934665; Thu, 18 Dec 2014 05:22:14 -0800 (PST) Received: from lazlar.no-ip.biz (213-64-218-92-no126.business.telia.com. [213.64.218.92]) by mx.google.com with ESMTPSA id li3sm1782061lbc.31.2014.12.18.05.22.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 05:22:14 -0800 (PST) Message-ID: <5492D505.4090800@gmail.com> Date: Thu, 18 Dec 2014 14:22:13 +0100 From: Rolf Nielsen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Finding 32-bit binaries References: <54923141.4090209@gmail.com> <20141218125653.GA12129@freebsd.crowsnest.tk> In-Reply-To: <20141218125653.GA12129@freebsd.crowsnest.tk> Content-Type: text/plain; charset=utf-8 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 13:22:17 -0000 -----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? Regards, Rolf -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUktUFAAoJEPJMW41Co4JggXwP+gLgVPSxKs7+xIC9A3vNI+FW RZYs7i7LLmwuhPWGGspNN7aIh22VkU9wdAInF5Nkd6J/2Pg0viz1i8aWMXTFvoWM 2h0AWONzMOaNde4eTzk4bmbRs1Smxehzo0UlnQlS29BTsOpDjeE5epZvMuMvk318 5B64xADPNd1meTQ9+zenv001wdq0o/mibwk5wYP85V33r+/aiQ9aBeiL6OlQjjDM eGCtxnHf8uzCZ47mcq06/2EJ1Ip47JUHPXrUASYNvQjnLXqeqgUl84dIwzQI4sY2 WjwjzMDYdUwHh0Nf+q0P85KmxEssbyNYU5mMN0PGmwLZKFl/Blxi9xMK5KYY2rI7 BPO8fqygfURmTsW2qbdplIkXbz9SNlltrw9IceYSUK0jT3uYH9YrB7Ir9+owMtXP rdhSsdlxvWxEYLmGj8UBamn8AG/n9tOWillM4HvrYMVnEbyZOuvf5JFmpcQDWsw5 n7ox0EiXtOgEpxjVyxF75gF2gkuFreELz14dxfrM8hZwGiUBPv+A8vTu7O5xVxh5 qNzGjzoiQz2lqbknxLnqOLh15jzeluNBJ963wTHAisVsmVPUjhB9lS8DEaFfvqs2 CkkWDRC1Z4c/yZrRG5rwZSvAjS+9s0LOH5cl1WPdT5KjGuKstixcenrjlnjFHJ7f GqALPrs/cSrTlJ/W7fzs =pA+r -----END PGP SIGNATURE-----