[Toybox] [PATCH 2/2] file: add test ELF binaries.

enh enh at google.com
Fri Apr 26 09:42:06 PDT 2019


On Thu, Apr 25, 2019 at 10:43 PM Rob Landley <rob at landley.net> wrote:
>
> On 4/25/19 12:54 PM, enh via Toybox wrote:
> > We keep regressing on this, and the ELF stuff is quite complicated, so
> > even though checking in binaries isn't my first choice, this seems like
> > a good use of 20KiB...
>
> I've considered checking in hello world binaries for each of the mkroot
> architectures, and would like a small binary for each of the file types we
> identify, at least for the ones where you can have a gif that's 5k and so on...

yeah, these are "int main() { return 0; }" to ensure they're as small
as possible. (well, not
https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html but
YKWIM.)

i've separately sent a patch that adds a real minimal .class file, and
that reuses all the existing stuff we have lying around in $FILES/.

> When I sat down to work on that myself I went on a tangent about "should file
> also do blkid stuff" and got distracted by $DAYJOB. :P
>
> Rob



More information about the Toybox mailing list