Index: ELF/Writer.cpp =================================================================== --- ELF/Writer.cpp +++ ELF/Writer.cpp @@ -1262,7 +1262,11 @@ EHdr->e_shnum = OutputSections.size() + 1; EHdr->e_shstrndx = Out::ShStrTab->SectionIndex; - if (Config->EMachine == EM_MIPS) + if (Config->EMachine == EM_ARM) + // We don't currently use any features incompatible with EF_ARM_EABI_VER5, + // but we don't have any firm guarantees of conformance. + EHdr->e_flags = EF_ARM_EABI_VER5; + else if (Config->EMachine == EM_MIPS) EHdr->e_flags = getMipsEFlags(); if (!Config->Relocatable) {