/[gentoo]/src/patchsets/gcc/4.8.5/pie/40_all_gcc48_config_esp.patch
Gentoo

Diff of /src/patchsets/gcc/4.8.5/pie/40_all_gcc48_config_esp.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
3 * gcc/esp.h New file to support --enable-esp 3 * gcc/esp.h New file to support --enable-esp
4 Version 20140104.1 4 Version 20140104.1
5 5
6--- gcc/config/esp.h 2010-04-09 16:14:00.000000000 +0200 6--- gcc/config/esp.h 2010-04-09 16:14:00.000000000 +0200
7+++ gcc/config/esp.h 2012-06-23 01:00:31.248348491 +0200 7+++ gcc/config/esp.h 2012-06-23 01:00:31.248348491 +0200
8@@ -0,0 +1,128 @@ 8@@ -0,0 +1,133 @@
9+/* License terms see GNU GENERAL PUBLIC LICENSE Version 3. 9+/* License terms see GNU GENERAL PUBLIC LICENSE Version 3.
10+ * Version 20140104.1 10+ * Version 20140104.1
11+ * Magnus Granberg (Zorry) <zorry@gentoo.org> */ 11+ * Magnus Granberg (Zorry) <zorry@gentoo.org> */
12+#ifndef GCC_ESP_H 12+#ifndef GCC_ESP_H
13+#define GCC_ESP_H 13+#define GCC_ESP_H
50+ %(esp_link_pie)} %(esp_options_ssp) }" 50+ %(esp_link_pie)} %(esp_options_ssp) }"
51+ 51+
52+ /* This will add -fstack-protector-all if we don't have -nostdlib -nodefaultlibs -fno-stack-protector -fstack-protector 52+ /* This will add -fstack-protector-all if we don't have -nostdlib -nodefaultlibs -fno-stack-protector -fstack-protector
53+ -fstack-protector-all and we have EFAULT_SSP or EFAULT_PIE_SSP defined. */ 53+ -fstack-protector-all and we have EFAULT_SSP or EFAULT_PIE_SSP defined. */
54+ #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP ) 54+ #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
55+ #ifdef ESP_NO_STACK_CHECK
56+ #define ESP_OPTIONS_STACK_CHECK_SPEC
57+ #else
58+ #define ESP_OPTIONS_STACK_CHECK_SPEC "%{fstack-check|fstack-check=*:;: -fstack-check}"
59+ #endif
55+ #define ESP_OPTIONS_SSP_SPEC \ 60+ #define ESP_OPTIONS_SSP_SPEC \
56+ "%{nostdlib|nodefaultlibs|ffreestanding|fno-stack-protector| \ 61+ "%{nostdlib|nodefaultlibs|ffreestanding|fno-stack-protector| \
57+ fstack-protector|fstack-protector-all:;:-fstack-protector-all} \ 62+ fstack-protector|fstack-protector-all:;:-fstack-protector-all} " \
58+ %{fstack-check|fstack-check=*:;: -fstack-check}" 63+ ESP_OPTIONS_STACK_CHECK_SPEC
59+ #else 64+ #else
60+ #define ESP_OPTIONS_SSP_SPEC "" 65+ #define ESP_OPTIONS_SSP_SPEC ""
61+ #endif 66+ #endif
62+ 67+
63+ /* If EFAULT_PIE or EFAULT_PIE_SSP is defined we will add -fPIE -pie */ 68+ /* If EFAULT_PIE or EFAULT_PIE_SSP is defined we will add -fPIE -pie */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20