From df504c5e4541535356b6d83373dd2c82992ae2d8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 29 Jan 2024 16:00:31 +0000 Subject: sys-devel/binutils: error out on exec stack & rwx segments for hardened for >=2.42 Pass --enable-error-execstack=yes and --enable-error-rwx-segments=yes for USE=hardened. New options in 2.42. Signed-off-by: Sam James --- sys-devel/binutils/binutils-9999.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index 5f745bd13e6a..cf70b25e7676 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -314,6 +314,8 @@ src_configure() { if use hardened ; then myconf+=( + --enable-error-execstack=yes + --enable-error-rwx-segments=yes --enable-default-execstack=no ) fi -- cgit v1.2.3-65-gdbad