Changeset b89180f


Ignore:
Timestamp:
09/10/2022 12:14:10 PM (20 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
08c7ccd
Parents:
b84c401
Message:

Add --enable-default-pie/ssp to gcc

Also command explanations and test result comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/gcc.xml

    rb84c401 rb89180f  
    199199    --disable-multilib                                 \
    200200    --with-system-zlib                                 \
     201    --enable-default-pie                               \
     202    --enable-default-ssp                               \
    201203    --enable-languages=c,c++,fortran,go,objc,obj-c++ &amp;&amp;
    202204make</userinput></screen>
     
    207209      the <application>GCC</application> part of the testsuite will run more
    208210      tests than in LFS. Some of those will report FAIL and others XPASS
    209       (pass when expected to FAIL). As of gcc-12.1.0, about 90 FAIL occur
     211      (pass when expected to FAIL). As of gcc-12.2.0, about 60 FAIL occur
    210212      in the <quote>guality</quote> suite, as well as miscellaneous failures
    211       throughout the rest of the test suite. If all the compilers above are
    212       built, there will be around 100 unexpected failures out of over
    213       523,000 tests. To run the tests, issue:
     213      throughout the rest of the test suite, fifteen of which are already
     214      present in the GCC tests of LFS. If all the compilers above are
     215      built, there will be around 80 unexpected failures out of over
     216      482,000 tests. To run the tests, issue:
    214217    </para>
    215218
     
    273276      <application>zlib</application> instead of the bundled one.
    274277      <application>zlib</application> is used for compressing
    275       and uncompressing <application>GCC</application>'s intermediate
     278      and decompressing <application>GCC</application>'s intermediate
    276279      language in LTO (Link Time Optimization) object files.
     280    </para>
     281
     282    <para>
     283      <parameter>--enable-default-pie</parameter>: Makes the
     284      <option>-fpie</option> option the default when compiling programs.
     285      Together with the <xref linkend="gASLR"/> feature enabled in the kernel,
     286      this defeats some kind of attacks based on known memory layouts.
     287    </para>
     288
     289    <para>
     290      <parameter>--enable-default-ssp</parameter>: Makes the
     291      <option>-fstack-protector-strong</option> option the default when
     292      compiling programs. <xref linkend="gSSP"/> is a technique preventing
     293      alteration of the program flow by corrupting the parameter stack.
    277294    </para>
    278295
Note: See TracChangeset for help on using the changeset viewer.