diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-06-15 11:30:08 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-06-15 11:30:08 (GMT) |
commit | dd5b1df2b2d9ccc73c22afcbd4cf6a3bf4e4752b (patch) | |
tree | e5ed420ea0124e3f8dbe20812fe01dc1fa3ed390 /abs/core/gcc/fs64270.patch | |
parent | 0add23ef8f69c7bfe1df6c614d2f48864362fdef (diff) | |
download | linhes_pkgbuild-dd5b1df2b2d9ccc73c22afcbd4cf6a3bf4e4752b.zip linhes_pkgbuild-dd5b1df2b2d9ccc73c22afcbd4cf6a3bf4e4752b.tar.gz linhes_pkgbuild-dd5b1df2b2d9ccc73c22afcbd4cf6a3bf4e4752b.tar.bz2 |
gcc: update to 10.1.0
Diffstat (limited to 'abs/core/gcc/fs64270.patch')
-rw-r--r-- | abs/core/gcc/fs64270.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core/gcc/fs64270.patch b/abs/core/gcc/fs64270.patch new file mode 100644 index 0000000..7b9e142 --- /dev/null +++ b/abs/core/gcc/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:\ |