mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
binutils: Disable stack exec and RWX section warnings
Binutils 2.39 and later enable by default warnings for executables with executable stack and RWX sections. Disable them. Closes #4881
This commit is contained in:
parent
0e55aff235
commit
f0e34eab8b
@ -32,6 +32,18 @@ URL: http://sources.redhat.com/binutils
|
|||||||
%define with_gold 0
|
%define with_gold 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disable the new default options to check for stack exec and RWX sections
|
||||||
|
# instroduced in 2.39.
|
||||||
|
#
|
||||||
|
%define binutils_extra_config %nil
|
||||||
|
%ifn %{defined with_stackexec_warning}
|
||||||
|
%define binutils_extra_config %{binutils_extra_config} --disable-warn-execstack
|
||||||
|
%endif
|
||||||
|
%ifn %{defined with_rwx_sections_warning}
|
||||||
|
%define binutils_extra_config %{binutils_extra_config} --disable-warn-rwx-segments
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Source
|
# Source
|
||||||
#
|
#
|
||||||
@ -75,7 +87,8 @@ URL: http://sources.redhat.com/binutils
|
|||||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||||
--exec-prefix=%{_exec_prefix} \
|
--exec-prefix=%{_exec_prefix} \
|
||||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
--mandir=%{_mandir} --infodir=%{_infodir} \
|
||||||
|
%{binutils_extra_config}
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags} all
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user