Changeset f0e34ea in rtems-source-builder


Ignore:
Timestamp:
03/21/23 11:05:41 (3 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
344981a
Parents:
0e55aff
git-author:
Chris Johns <chrisj@…> (03/21/23 11:05:41)
git-committer:
Chris Johns <chrisj@…> (03/21/23 22:11:08)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/config/binutils-2-1.cfg

    r0e55aff rf0e34ea  
    3131%ifn %{defined with_gold}
    3232 %define with_gold 0
     33%endif
     34
     35#
     36# Disable the new default options to check for stack exec and RWX sections
     37# instroduced in 2.39.
     38#
     39%define binutils_extra_config %nil
     40%ifn %{defined with_stackexec_warning}
     41 %define binutils_extra_config %{binutils_extra_config} --disable-warn-execstack
     42%endif
     43%ifn %{defined with_rwx_sections_warning}
     44 %define binutils_extra_config %{binutils_extra_config} --disable-warn-rwx-segments
    3345%endif
    3446
     
    7688    --exec-prefix=%{_exec_prefix} \
    7789    --includedir=%{_includedir} --libdir=%{_libdir} \
    78     --mandir=%{_mandir} --infodir=%{_infodir}
     90    --mandir=%{_mandir} --infodir=%{_infodir} \
     91    %{binutils_extra_config}
    7992
    8093  %{__make} %{?_smp_mflags} all
Note: See TracChangeset for help on using the changeset viewer.