[patch] gcc fstack-protector-explicit
Jeff Law
law@redhat.com
Thu Jan 22 16:52:00 GMT 2015
On 01/22/15 05:37, Jakub Jelinek wrote:
> On Wed, Jan 21, 2015 at 10:07:14AM +0100, Rainer Orth wrote:
>> Ok for mainline once that has been done?
>>
>> Thanks.
>> Rainer
>>
>>
>> 2015-01-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>>
>> * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit.
>
> Ok.
> Though wonder if for the TARGET_LIBC_PROVIDES_SSP case LINK_SSP_SPEC
> shouldn't be
> #define LINK_SSP_SPEC "{fstack-protector|fstack-protector-strong|fstack-protector-explicit|fstack-protector-all:}"
> and
> gcc/config/freebsd.h:
> #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
> should be changed too (adding both -string and -explicit).
Ranier, sorry about the breakage on Solaris.
WRT other LINK_SPECs, yea, they all need to check the 4 variants of
-fstack-protector-whatever and if any are found, link in libssp.
Patch to fix that pre-approved.
jeff
More information about the Gcc-patches
mailing list