[llvm] [Support] Adjust .note.GNU-stack guard in Support/BLAKE3/blake3_*_x86… (PR #76229)
Rainer Orth via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 22 07:03:10 PST 2023
================
@@ -2,7 +2,7 @@
#include "llvm_blake3_prefix.h"
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__) && (defined(__linux__) || defined(__FreeBSD__) || defined(__Fuchsia__))
----------------
rorth wrote:
The Solaris issue is not the different section syntax (which would only apply on SPARC if `clang` supported `/usr/bin/as` as external assembler, which it doesn't), but the fact that Solaris doesn't care about `.note.GNU-stack` at all (cf. `llvm/lib/MC/MCAsmInfoELF.cpp:MCAsmInfoELF::getNonexecutableStackSection`.
https://github.com/llvm/llvm-project/pull/76229
More information about the llvm-commits
mailing list