Linux still doesn't actually implement IBT for userland. And by the pace
authorkettenis <kettenis@openbsd.org>
Tue, 27 Feb 2024 15:34:28 +0000 (15:34 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 27 Feb 2024 15:34:28 +0000 (15:34 +0000)
things are going, it will take another decade before it does.  But OpenBSD
has it enabled *by default* already.

Drop the #ifdef __linux__.  This should hurt other OSes when they finally
catch up with us.

ok robert@, tb@

gnu/llvm/libunwind/src/assembly.h

index fb07d04..a709110 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef UNWIND_ASSEMBLY_H
 #define UNWIND_ASSEMBLY_H
 
-#if defined(__linux__) && defined(__CET__)
+#if defined(__CET__)
 #include <cet.h>
 #define _LIBUNWIND_CET_ENDBR _CET_ENDBR
 #else