diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc --- a/secure/lib/libcrypto/Makefile.inc +++ b/secure/lib/libcrypto/Makefile.inc @@ -14,6 +14,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include +# OpenSSL assembly sources do not include .note.GNU-stack annotations +LDFLAGS.bfd+= -Wl,-znoexecstack + .include "Makefile.common" .for pcfile in ${PCFILES} diff --git a/secure/lib/libcrypto/modules/Makefile.inc b/secure/lib/libcrypto/modules/Makefile.inc --- a/secure/lib/libcrypto/modules/Makefile.inc +++ b/secure/lib/libcrypto/modules/Makefile.inc @@ -9,6 +9,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include +# OpenSSL assembly sources do not include .note.GNU-stack annotations +LDFLAGS.bfd+= -Wl,-znoexecstack + # common SRCS+= provider_err.c provider_ctx.c SRCS+= provider_util.c