[Toybox] [PATCH] Distinguish 32- and 64-bit variants in file(1) for x32.
enh
enh at google.com
Wed Feb 17 08:22:41 PST 2016
It's necessary to distinguish x86 and x86-64 to be able to recognize the
way x32 is encoded in ELF. (Plus it's customary to distinguish the variants,
so people are probably eyeballing the architecture rather than paying
attention to the ELF class.)
If we're not going to use the same strings as traditional file(1) -- which
is what I'd tried to do -- we should probably use the strings from the ELF
spec rather than the Linux kernel, which often deliberately goes against
the manufacturer's wishes: "arm64" versus "aarch64", for example. But that's
an issue for another day.
---
toys/pending/file.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Distinguish-32-and-64-bit-variants-in-file-1-for-x32.patch
Type: text/x-patch
Size: 2330 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160217/d31b4223/attachment-0004.bin>
More information about the Toybox
mailing list