From cfdadd3e1d1402a02c19eedb9910fece5b9917c7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 20 Jun 2015 17:37:20 +0000 Subject: gcc: musl comes with its own SSP, so use it instead of libssp Signed-off-by: Steven Barth SVN-Revision: 46071 --- .../gcc/patches/4.8-linaro/030-always-link-ssp-noshared.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 toolchain/gcc/patches/4.8-linaro/030-always-link-ssp-noshared.patch (limited to 'toolchain/gcc/patches') diff --git a/toolchain/gcc/patches/4.8-linaro/030-always-link-ssp-noshared.patch b/toolchain/gcc/patches/4.8-linaro/030-always-link-ssp-noshared.patch new file mode 100644 index 0000000..1208e73 --- /dev/null +++ b/toolchain/gcc/patches/4.8-linaro/030-always-link-ssp-noshared.patch @@ -0,0 +1,11 @@ +--- gcc-4.7.4.org/gcc/gcc.c ++++ gcc-4.7.4/gcc/gcc.c +@@ -603,7 +603,7 @@ + + #ifndef LINK_SSP_SPEC + #ifdef TARGET_LIBC_PROVIDES_SSP +-#define LINK_SSP_SPEC "%{fstack-protector:}" ++#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}" + #else + #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}" + #endif -- cgit v1.1