For a decade or more, we've patched gcc to make -fno-ident the default.
authortedu <tedu@openbsd.org>
Wed, 21 Jun 2017 16:51:07 +0000 (16:51 +0000)
committertedu <tedu@openbsd.org>
Wed, 21 Jun 2017 16:51:07 +0000 (16:51 +0000)
clang doesn't seem to have a command line option for the feature,
so just hard wire it off. We don't need advertisements in our binaries.
ok deraadt

gnu/llvm/lib/MC/MCAsmInfoELF.cpp

index dcd6cea..4394e17 100644 (file)
@@ -27,7 +27,7 @@ MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
 }
 
 MCAsmInfoELF::MCAsmInfoELF() {
-  HasIdentDirective = true;
+  HasIdentDirective = false;
   WeakRefDirective = "\t.weak\t";
   PrivateGlobalPrefix = ".L";
   PrivateLabelPrefix = ".L";