Date: Wed, 22 Mar 2023 16:32:50 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: b5c260d1d292 - stable/13 - libcrypto padlock.so: Link with -z noexecstack for ld.bfd. Message-ID: <202303221632.32MGWoMC023983@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b5c260d1d2921e58cba56d5ddb55ecf6ce3d8e01 commit b5c260d1d2921e58cba56d5ddb55ecf6ce3d8e01 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-11-22 16:37:04 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 15:22:06 +0000 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. (cherry picked from commit 99df55bbb711150e7e3515f5c5a2c4d44654c278) --- secure/lib/libcrypto/engines/padlock/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secure/lib/libcrypto/engines/padlock/Makefile b/secure/lib/libcrypto/engines/padlock/Makefile index 0dbe5bd2a390..4b67c9d58f0d 100644 --- a/secure/lib/libcrypto/engines/padlock/Makefile +++ b/secure/lib/libcrypto/engines/padlock/Makefile @@ -9,6 +9,8 @@ SRCS+= e_padlock-x86_64.S SRCS+= e_padlock-x86.S .endif +LDFLAGS.bfd+= -Wl,-znoexecstack + .include <bsd.lib.mk> .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303221632.32MGWoMC023983>