diff --git a/rtl/freebsd/i386/cprt0.as b/rtl/freebsd/i386/cprt0.as index c7382dd06c..6c37c2520c 100644 --- a/rtl/freebsd/i386/cprt0.as +++ b/rtl/freebsd/i386/cprt0.as @@ -201,3 +201,5 @@ operatingsystem_parameters: //.section .threadvar,"aw",@nobits .comm ___fpc_threadvar_offset,4 +.section .note.GNU-stack,"",@progbits + diff --git a/rtl/freebsd/i386/gprt0.as b/rtl/freebsd/i386/gprt0.as index 55d2a1e928..a78be0df0a 100644 --- a/rtl/freebsd/i386/gprt0.as +++ b/rtl/freebsd/i386/gprt0.as @@ -162,3 +162,4 @@ _haltproc: .comm operatingsystem_parameter_envp,4 .comm operatingsystem_parameter_argc,4 .comm operatingsystem_parameter_argv,4 +.section .note.GNU-stack,"",@progbits diff --git a/rtl/freebsd/x86_64/prt0.as b/rtl/freebsd/x86_64/prt0.as index f02cf63468..1431991aaa 100644 --- a/rtl/freebsd/x86_64/prt0.as +++ b/rtl/freebsd/x86_64/prt0.as @@ -166,4 +166,5 @@ operatingsystem_parameters: .p2align 3 .LEFDE1: .ident "GCC: (GNU) 3.3.3 [FreeBSD] 20031106" +.section .note.GNU-stack,"",@progbits