commit:     df504c5e4541535356b6d83373dd2c82992ae2d8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 29 16:00:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 29 16:00:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df504c5e

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 <sam <AT> gentoo.org>

 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

Reply via email to