Do not use ident. Index: lib/MC/MCAsmInfoELF.cpp --- lib/MC/MCAsmInfoELF.cpp.orig +++ lib/MC/MCAsmInfoELF.cpp @@ -25,7 +25,7 @@ MCSection *MCAsmInfoELF::getNonexecutableStackSection( } MCAsmInfoELF::MCAsmInfoELF() { - HasIdentDirective = true; + HasIdentDirective = false; WeakRefDirective = "\t.weak\t"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L";