[Toybox] [PATCH] Basic Mach-O support in file(1).

enh enh at google.com
Mon Sep 25 10:04:36 PDT 2017


The Nexus Player build was subtly broken in that it assumed that the host was
using ELF. No-one noticed until a Mac user tried to flash their build, which
contained a Mach-O x86 binary instead of an ELF x86 binary. Hilarity ensued.

(On the same day, file(1) was able to explain a mixup with an ELF hexagon
binary. Next time we see a Mach-O binary on an Android device, we'll be ready!)

Bug: http://b/66741960
---
 toys/posix/file.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Basic-Mach-O-support-in-file-1.patch
Type: text/x-patch
Size: 1871 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170925/7ad4026d/attachment.bin>


More information about the Toybox mailing list