https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88745
--- Comment #9 from Ian Lance Taylor <ian at airs dot com> --- filetype.awk will be run on a program compiled by the target compiler, so it should get the correct result. I agree that the endianness shouldn't matter with regard to the code, although of course filetype.awk needs to match both endiannesses.