diff options
Diffstat (limited to 'upstream/config_all.patch')
-rw-r--r-- | upstream/config_all.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/upstream/config_all.patch b/upstream/config_all.patch new file mode 100644 index 0000000..f3af62d --- /dev/null +++ b/upstream/config_all.patch @@ -0,0 +1,32 @@ +--- a/gcc/config/linux.h 2011-07-07 17:38:34.000000000 +0200 ++++ b/gcc/config/linux.h 2012-07-06 17:09:54.414853750 +0200 +@@ -104,3 +104,29 @@ see the files COPYING3 and COPYING.RUNTI + /* Whether we have sincos that follows the GNU extension. */ + #undef TARGET_HAS_SINCOS + #define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC) ++ ++#ifdef ENABLE_ESPF ++#ifdef ENABLE_ESPF_PIE ++#define ESPF_GCC_PIE_SPEC \ ++ "%{pie|fpic|fPIC|fpie|fPIE|fno-pic|fno-PIC|fno-pie|fno-PIE| \ ++ shared|static|nostdlib|nostartfiles:;:-fPIE -pie}" ++#else ++#define ESPF_GCC_PIE_SPEC "" ++#endif ++#ifdef ENABLE_ESPF_SSP ++#define ESPF_GCC_SSP_SPEC \ ++ "%{nostdlib|nodefaultlibs|fno-stack-protector| \ ++ fstack-protector|fstack-protector-all:;:-fstack-protector}" ++#else ++#define ESPF_GCC_SSP_SPEC "" ++#endif ++#ifdef ENABLE_ESPF_FORTIFY ++#define ESPF_CPP_UNIQUE_OPTIONS_SPEC \ ++ "%{D_FORTIFY_SOURCE|D_FORTIFY_SOURCE=*|U_FORTIFY_SOURCE:;:-D _FORTIFY_SOURCE=2}" ++#else ++#define ESPF_CPP_UNIQUE_OPTIONS_SPEC "" ++#endif ++#define ESPF_DRIVER_SELF_SPECS \ ++ ESPF_GCC_PIE_SPEC, \ ++ ESPF_GCC_SSP_SPEC ++#endif |