Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 687000 Details for
Bug 747346
sys-libs/musl: enable SSP on x86 and allow hardened toolchain
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use libssp_nonshared unconditionally
gcc-6.1-musl-libssp.patch (text/plain), 866 bytes, created by
Jory A. Pratt
on 2021-02-16 20:01:40 UTC
(
hide
)
Description:
use libssp_nonshared unconditionally
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2021-02-16 20:01:40 UTC
Size:
866 bytes
patch
obsolete
>Author: Timo Teräs <timo.teras@iki.fi> > >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-6.1.0/gcc/gcc.c.orig >+++ gcc-6.1.0/gcc/gcc.c >@@ -870,8 +870,7 @@ > > #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" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 747346
:
664402
|
664405
|
664408
|
664411
|
664414
|
664459
|
664462
| 687000