dc9e47ae00
Use pmbootstrap aportgen to generate these new packages. [ci:skip-vercheck]
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
From d2577dc78a1f159e5c41fd0b53e73fa0e264cb52 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
|
|
Date: Fri, 21 Aug 2020 07:03:00 +0000
|
|
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.
|
|
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.cc | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
|
|
index cc99d0b7aa1..c60a75371f8 100644
|
|
--- a/gcc/gcc.cc
|
|
+++ b/gcc/gcc.cc
|
|
@@ -1004,8 +1004,7 @@ proper position among the other output files. */
|
|
|
|
#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" \
|