https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88745

--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #5)
> (In reply to Eric Gallager from comment #4)
> > (In reply to Ian Lance Taylor from comment #3)
> > > filetype.awk is just an AWK script.  See
> > > https://www.gnu.org/software/gawk/manual/gawk.html.  A Mach-O file starts
> > > with 0xfeedface (32-bit Mach-O) or 0xfeedfacf (64-bit Mach-O) in either
> > > big-endian or little-endian order.
> > 
> > Does the endianness actually matter? Neither the elf nor pecoff cases seem
> > to be duplicated for their opposite endiannesses... Also are the octal
> > escape sequences necessary?
> 
> Mach-O files have 4 different magic numbers that indicate bit size and
> endianness.

I guess if the library only ever needs to work on target == host*** then
swapping and endianness is irrelevant ... and the only test needed (as Ian
said) is between 32b and 64b.

===

*** AFAIR, it's also built as a target library, which implies to me that
cross-cases are relevant.

Reply via email to