diff options
author | Tavian Barnes | 2020-05-15 14:58:30 -0400 |
---|---|---|
committer | Tavian Barnes | 2020-05-15 15:02:50 -0400 |
commit | 82f6f29e3112ab2aa078a514966490fd8b91571b (patch) | |
tree | c8076c91a015f71890177efde1fb880a389dbbfe /fs64270.patch | |
parent | 261f92784ed4bd1c87525b6251dcab5f85bf1065 (diff) | |
download | aur-82f6f29e3112ab2aa078a514966490fd8b91571b.tar.gz |
Bump to 10.1.0-1
Diffstat (limited to 'fs64270.patch')
-rw-r--r-- | fs64270.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fs64270.patch b/fs64270.patch new file mode 100644 index 000000000000..7b9e142c6be8 --- /dev/null +++ b/fs64270.patch @@ -0,0 +1,26 @@ +Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding + +--- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 ++++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 +@@ -857,6 +857,12 @@ proper position among the other output f + #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" + #endif + ++#ifdef ENABLE_DEFAULT_SSP ++#define NO_SSP_SPEC "%{nostdlib|nodefaultlibs|ffreestanding:-fno-stack-protector} " ++#else ++#define NO_SSP_SPEC "" ++#endif ++ + #ifndef LINK_SSP_SPEC + #ifdef TARGET_LIBC_PROVIDES_SSP + #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ +@@ -1131,7 +1148,7 @@ static const char *cc1_options = + %{-version:--version}\ + %{-help=*:--help=%*}\ + %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ +- %{fsyntax-only:-o %j} %{-param*}\ ++ %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ + %{coverage:-fprofile-arcs -ftest-coverage}\ + %{fprofile-arcs|fprofile-generate*|coverage:\ + %{!fprofile-update=singel:\ |