[arch-dev-public] [PATCH 2/4] Make is_elf() more resilient to weird perms