libcrypto padlock.so: Link with -z noexecstack for ld.bfd.

The assembly source files do not contain GNU-stack annotations, so
ld.bfd defaults to using an executable stack.
This commit is contained in:
John Baldwin 2022-11-22 08:37:04 -08:00
parent 69f6399c37
commit 99df55bbb7

View File

@ -9,6 +9,8 @@ SRCS+= e_padlock-x86_64.S
SRCS+= e_padlock-x86.S SRCS+= e_padlock-x86.S
.endif .endif
LDFLAGS.bfd+= -Wl,-znoexecstack
.include <bsd.lib.mk> .include <bsd.lib.mk>
.PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH}