diff options
author | Magnus Granberg <zorry@gentoo.org> | 2013-11-10 11:22:48 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2013-11-10 11:22:48 +0100 |
commit | ec80df40d20243d3d534a5ea798424705927dcfb (patch) | |
tree | 48508a1106a3ca17e369eb187582e4e94734f255 /upstream/gcc49_default_pie_doc.patch | |
parent | update gcc 4.8.X patchset (diff) | |
download | hardened-gccpatchset-ec80df40d20243d3d534a5ea798424705927dcfb.tar.gz hardened-gccpatchset-ec80df40d20243d3d534a5ea798424705927dcfb.tar.bz2 hardened-gccpatchset-ec80df40d20243d3d534a5ea798424705927dcfb.zip |
Add default PIE patches for gcc 4.9.X
Diffstat (limited to 'upstream/gcc49_default_pie_doc.patch')
-rw-r--r-- | upstream/gcc49_default_pie_doc.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/upstream/gcc49_default_pie_doc.patch b/upstream/gcc49_default_pie_doc.patch new file mode 100644 index 0000000..961d75f --- /dev/null +++ b/upstream/gcc49_default_pie_doc.patch @@ -0,0 +1,42 @@ +--- gcc-4.9-20131006/gcc/doc/install.texi 2013-10-01 19:29:40.000000000 +0200 ++++ gcc-4.9-20131006-work/gcc/doc/install.texi 2013-11-09 15:40:20.831402110 +0100 +@@ -1421,6 +1421,11 @@ do a @samp{make -C gcc gnatlib_and_tools + Specify that the run-time libraries for stack smashing protection + should not be built. + ++@item --enable-default-pie ++We will turn on @option{-fPIE} and @option{-pie} as default when ++compileing and linking if the support is there. We only support ++i?86-*-linux* and x86-64-*-linux* as target for now. ++ + @item --disable-libquadmath + Specify that the GCC quad-precision math library should not be built. + On some systems, the library is required to be linkable when building +--- gcc-4.8-20120302/gcc/doc/invoke.texi 2012-03-01 10:57:59.000000000 +0100 ++++ gcc-4.8-20120302-work/gcc/doc/invoke.texi 2012-07-30 00:57:03.766847851 +0200 +@@ -9457,6 +9480,12 @@ For predictable results, you must also s + that were used to generate code (@option{-fpie}, @option{-fPIE}, + or model suboptions) when you specify this option. + ++NOTE: With configure --enable-default-pie this option is enabled by default ++for C, C++, ObjC, ObjC++, if none of @option{-fno-PIE}, @option{-fno-pie}, ++@option{-fPIC}, @option{-fpic}, @option{-fno-PIC}, @option{-fno-pic}, ++@option{-nostdlib}, @option{-nostartfiles}, @option{-shared}, ++@option{-nodefaultlibs}, nor @option{static} are found. ++ + @item -rdynamic + @opindex rdynamic + Pass the flag @option{-export-dynamic} to the ELF linker, on targets +@@ -19125,6 +19154,12 @@ used during linking. + @code{__pie__} and @code{__PIE__}. The macros have the value 1 + for @option{-fpie} and 2 for @option{-fPIE}. + ++NOTE: With configure --enable-default-pie this option is enabled by default ++for C, C++, ObjC, ObjC++, if none of @option{-fno-PIE}, @option{-fno-pie}, ++@option{-fPIC}, @option{-fpic}, @option{-fno-PIC}, @option{-fno-pic}, ++@option{-nostdlib}, @option{-nostartfiles}, @option{-shared}, ++@option{-nodefaultlibs}, nor @option{static} are found. ++ + @item -fno-jump-tables + @opindex fno-jump-tables + Do not use jump tables for switch statements even where it would be |