2023-08-16 22:26:55 +00:00
|
|
|
Index: base/compiler_specific.h
|
|
|
|
--- base/compiler_specific.h.orig
|
|
|
|
+++ base/compiler_specific.h
|
2024-05-20 13:42:05 +00:00
|
|
|
@@ -316,7 +316,7 @@
|
|
|
|
//
|
|
|
|
// In some cases it's desirable to remove this, e.g. on hot functions, or if
|
|
|
|
// we have purposely changed the reference canary.
|
|
|
|
-#if defined(COMPILER_GCC) || defined(__clang__)
|
|
|
|
+#if (defined(COMPILER_GCC) || defined(__clang__)) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
|
|
|
|
#if HAS_ATTRIBUTE(__no_stack_protector__)
|
|
|
|
#define NO_STACK_PROTECTOR __attribute__((__no_stack_protector__))
|
2023-08-16 22:26:55 +00:00
|
|
|
#else
|