From: tedu Date: Mon, 29 May 2017 14:37:51 +0000 (+0000) Subject: openbsd does not use nonexec stack segment header hints. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=190b938403deeec72c3bf7b7aba4fab4df8a8e7d;p=openbsd openbsd does not use nonexec stack segment header hints. in fact, false is a much better default for UsesNonexecutableStackSection. platforms that require it can reenable, instead, saving the rest of us an unnecessary program header (causes trouble for some special binaries). ok kettenis --- diff --git a/gnu/llvm/lib/MC/MCAsmInfoELF.cpp b/gnu/llvm/lib/MC/MCAsmInfoELF.cpp index 26e5608d873..dcd6cea682d 100644 --- a/gnu/llvm/lib/MC/MCAsmInfoELF.cpp +++ b/gnu/llvm/lib/MC/MCAsmInfoELF.cpp @@ -31,5 +31,5 @@ MCAsmInfoELF::MCAsmInfoELF() { WeakRefDirective = "\t.weak\t"; PrivateGlobalPrefix = ".L"; PrivateLabelPrefix = ".L"; - UsesNonexecutableStackSection = true; + UsesNonexecutableStackSection = false; }