Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 521848 Details for
Bug 646440
>=sys-devel/gcc-6 freestanding compilation issue in 13_all_default-ssp-fix.patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch
13_all_default-ssp-fix.patch (text/plain), 1.29 KB, created by
Magnus Granberg
on 2018-03-02 15:53:13 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2018-03-02 15:53:13 UTC
Size:
1.29 KB
patch
obsolete
>Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding >Change the buffer size. > >--- 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}"; > > static const char *asm_options = >--- a/gcc/params.def 2016-03-30 09:47:40.000000000 +0200 >+++ b/gcc/params.def 2016-09-19 12:56:58.443179039 +0200 >@@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT, > DEFPARAM (PARAM_SSP_BUFFER_SIZE, > "ssp-buffer-size", > "The lower bound for a buffer to be considered for stack smashing protection.", >- 8, 1, 0) >+ 4, 1, 0) > > DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING, > "min-size-for-stack-sharing",
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 646440
: 521848