How to tell if an executable is 32-bit or 64-bit on x86-64?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an x86-64 system and sometimes need to find out if a library or
executable is built for 32-bit or 64-bit execution.  On FC3, 
	file foo.so
would produce a message that would do the job, like this:
        $ file usr/lib*/libssl3.so
        /usr/lib/libssl3.so:   ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
        /usr/lib64/libssl3.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
A similar command on FC4 produces something like this:
        $ file /usr/lib*/libssl3.so
        /usr/lib/libssl3.so:   data, stripped
        /usr/lib64/libssl3.so: data, stripped
which is not very useful.

What's the best thing to do: Copy FC3 /etc/magic into FC4?  Install the
latest file utility from the GNU fileutils?

I have submitted this as a bug to Red Hat Bugzilla.

jon
        


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux