From 0fa59db82489eed81f8f4063ba518b8f9eca7a21 Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Wed, 2 Oct 2024 09:06:12 -0400 Subject: [PATCH] Only add note.GNU-stack on Linux Signed-off-by: Keith W. Campbell --- runtime/oti/xhelpers.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/oti/xhelpers.m4 b/runtime/oti/xhelpers.m4 index 58f8294550e..4f7ac2344d1 100644 --- a/runtime/oti/xhelpers.m4 +++ b/runtime/oti/xhelpers.m4 @@ -110,9 +110,9 @@ define({START_PROC},{ GLOBAL_SYMBOL($1): }) -define({FILE_END},{ +define({FILE_END},{ifdef({LINUX},{ .section .note.GNU-stack,"",@progbits -}) +})}) define({END_PROC},{ END_$1: