From a02045fdf29f1d5bea42c9afe26806bfbb4b3d66 Mon Sep 17 00:00:00 2001 From: Adeel Mujahid <3840695+am11@users.noreply.github.com> Date: Fri, 26 Jun 2026 22:13:07 +0300 Subject: [PATCH] Disable OpenBSD execute-only for NativeAOT stubs --- .../Microsoft.NETCore.Native.Unix.targets | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index 1e4afaab8cc578..9867a563edaaee 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -278,6 +278,8 @@ The .NET Foundation licenses this file to you under the MIT license. indirect branches (e.g. switch jump tables) to non-endbr64 targets fault with SIGILL. Opt out of branch-target CFI enforcement via the PT_OPENBSD_NOBTCFI program header. --> + + @@ -286,8 +288,10 @@ The .NET Foundation licenses this file to you under the MIT license. - - + + + +