From 190b938403deeec72c3bf7b7aba4fab4df8a8e7d Mon Sep 17 00:00:00 2001 From: tedu Date: Mon, 29 May 2017 14:37:51 +0000 Subject: [PATCH] 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 --- gnu/llvm/lib/MC/MCAsmInfoELF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1