2022-01-17 20:12:29 +00:00
|
|
|
From 154f797756e8098f33fa16799749b4cd827dd81c Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
|
|
|
|
Date: Fri, 21 Aug 2020 07:03:00 +0000
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] Alpine musl package provides libssp_nonshared.a. We link to
|
|
|
|
it unconditionally, as otherwise we get link failures if some objects are
|
|
|
|
-fstack-protector built and final link happens with -fno-stack-protector.
|
2020-08-21 10:18:02 +00:00
|
|
|
This seems to be the common case when bootstrapping gcc, the piepatches do
|
|
|
|
not seem to fully fix the crosstoolchain and bootstrap sequence wrt.
|
|
|
|
stack-protector flag usage.
|
|
|
|
|
|
|
|
---
|
|
|
|
gcc/gcc.c | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/gcc/gcc.c b/gcc/gcc.c
|
2022-01-06 15:11:38 +00:00
|
|
|
index 99314032ec2..6e91767efe8 100644
|
2020-08-21 10:18:02 +00:00
|
|
|
--- a/gcc/gcc.c
|
|
|
|
+++ b/gcc/gcc.c
|
2021-11-25 09:09:10 +00:00
|
|
|
@@ -997,8 +997,7 @@ proper position among the other output files. */
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
#ifndef LINK_SSP_SPEC
|
|
|
|
#ifdef TARGET_LIBC_PROVIDES_SSP
|
|
|
|
-#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
|
|
|
|
- "|fstack-protector-strong|fstack-protector-explicit:}"
|
|
|
|
+#define LINK_SSP_SPEC "-lssp_nonshared"
|
|
|
|
#else
|
|
|
|
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
|
|
|
|
"|fstack-protector-strong|fstack-protector-explicit" \
|
|
|
|
--
|
2022-01-06 15:11:38 +00:00
|
|
|
2.34.1
|
2020-08-21 10:18:02 +00:00
|
|
|
|