[csw-maintainers] Determining the architecture of a binary

Roger Håkansson hson at opencsw.org
Wed Jan 13 13:50:22 CET 2010


Maciej (Matchek) Blizinski wrote:
> I'd like to write a new check, to make sure that the actual binaries
> inside a package match the architecture declared in the pkginfo file.
> Unfortunately, the file command's output is not as reliable as I'd
> like it to.  For instance, on build8s, it can tell when a binary is
> i386, but it doesn't say the same about an amd64 binary.

As far as I know "ELF 64-bit LSB" can only be an amd64 binary, sparc 
binaries are all MSB.






More information about the maintainers mailing list