From: tedu Date: Wed, 21 Jun 2017 16:51:07 +0000 (+0000) Subject: For a decade or more, we've patched gcc to make -fno-ident the default. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7f5304916c7ab876a685b421f21db11585b8dd3a;p=openbsd For a decade or more, we've patched gcc to make -fno-ident the default. 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 --- diff --git a/gnu/llvm/lib/MC/MCAsmInfoELF.cpp b/gnu/llvm/lib/MC/MCAsmInfoELF.cpp index dcd6cea682d..4394e17f995 100644 --- a/gnu/llvm/lib/MC/MCAsmInfoELF.cpp +++ b/gnu/llvm/lib/MC/MCAsmInfoELF.cpp @@ -27,7 +27,7 @@ MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const { } MCAsmInfoELF::MCAsmInfoELF() { - HasIdentDirective = true; + HasIdentDirective = false; WeakRefDirective = "\t.weak\t"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L";