[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 Jan 12 06:21:11 PST 2024


================
@@ -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:

I've now changed the guards to match `MCAsmInfoELF::getNonexecutableStackSection`.  While we are consistent here now, the guards in `BLAKE3` differ from every other instance in the LLVM codebase.

https://github.com/llvm/llvm-project/pull/76229


More information about the llvm-commits mailing list