Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2023 22:28:28 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: e0f29006d199 - stable/12 - libcrypto padlock.so: Link with -z noexecstack for ld.bfd.
Message-ID:  <202303222228.32MMSS9T001632@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e0f29006d1995b014e7db692ff2d5f6f234c1e94

commit e0f29006d1995b014e7db692ff2d5f6f234c1e94
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-11-22 16:37:04 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-03-22 00:11:15 +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 b7b72ac076aa..f53eb0c10b99 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:	${.CURDIR:H:H}/${MACHINE_CPUARCH}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303222228.32MMSS9T001632>