<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Joel,<br></div><div>This is fine for fixing the warnings for the time being. We still need to address the AArch64 break due to binutils >= 2.40 (2.39 does not have the bad patch).</div><div><br></div><div>Kinsey<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 21, 2023 at 10:17 AM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I'm ok with this if Kinsey confirms it </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 21, 2023, 4:11 AM <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Chris Johns <<a href="mailto:chrisj@rtems.org" rel="noreferrer" target="_blank">chrisj@rtems.org</a>><br>
<br>
Binutils 2.39 and later enable by default warnings for executables<br>
with executable stack and RWX sections. Disable them.<br>
<br>
Closes #4881<br>
---<br>
source-builder/config/binutils-2-1.cfg | 15 ++++++++++++++-<br>
1 file changed, 14 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/source-builder/config/binutils-2-1.cfg b/source-builder/config/binutils-2-1.cfg<br>
index 6de33ae..df121af 100644<br>
--- a/source-builder/config/binutils-2-1.cfg<br>
+++ b/source-builder/config/binutils-2-1.cfg<br>
@@ -32,6 +32,18 @@ URL: <a href="http://sources.redhat.com/binutils" rel="noreferrer noreferrer" target="_blank">http://sources.redhat.com/binutils</a><br>
%define with_gold 0<br>
%endif<br>
<br>
+#<br>
+# Disable the new default options to check for stack exec and RWX sections<br>
+# instroduced in 2.39.<br>
+#<br>
+%define binutils_extra_config %nil<br>
+%ifn %{defined without_stackexec}<br>
+ %define binutils_extra_config %{binutils_extra_config} --disable-warn-execstack<br>
+%endif<br>
+%ifn %{defined without_rwx_sections}<br>
+ %define binutils_extra_config %{binutils_extra_config} --disable-warn-rwx-segments<br>
+%endif<br>
+<br>
#<br>
# Source<br>
#<br>
@@ -75,7 +87,8 @@ URL: <a href="http://sources.redhat.com/binutils" rel="noreferrer noreferrer" target="_blank">http://sources.redhat.com/binutils</a><br>
--prefix=%{_prefix} --bindir=%{_bindir} \<br>
--exec-prefix=%{_exec_prefix} \<br>
--includedir=%{_includedir} --libdir=%{_libdir} \<br>
- --mandir=%{_mandir} --infodir=%{_infodir}<br>
+ --mandir=%{_mandir} --infodir=%{_infodir} \<br>
+ %{binutils_extra_config}<br>
<br>
%{__make} %{?_smp_mflags} all<br>
<br>
-- <br>
2.37.1<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" rel="noreferrer" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div>