This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add -lssp_nonshared to LINK_SSP_SPEC


On Mon, Jan 23, 2012 at 12:23 AM, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> On Sat, 21 Jan 2012, Tijl Coosemans wrote:
>> I've been using this patch now. It's similar to the above url, but
>> conditional on TARGET_LIBC_PROVIDES_SSP to support older FreeBSD
>> versions.
>>
>> Gerald volunteered to commit. Gerald, just trunk for now or older
>> branches too?
>
> If Richi agries, I'd apply this on trunk and the GCC 4.6 branch,
> since that is the stable release our users employ.

Sure, go ahead.

Richard.

> Gerald
>
> PS: We also need to update the copyright date at the top, and I'll
> take care of that when committing.
>
>> 2011-01-20 ?Tijl Coosemans ?<tijl@coosemans.org>
>>
>> ? ? ? * gcc/config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP] (LINK_SSP_SPEC): Define.
>>
>> --- gcc/config/freebsd-spec.h
>> +++ gcc/config/freebsd-spec.h
>> @@ -138,6 +138,10 @@ is built with the --enable-threads confi
>> ?#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
>> ?#endif
>>
>> +#ifdef TARGET_LIBC_PROVIDES_SSP
>> +#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
>> +#endif
>> +
>> ?/* Use --as-needed -lgcc_s for eh support. ?*/
>> ?#ifdef HAVE_LD_AS_NEEDED
>> ?#define USE_LD_AS_NEEDED 1
>>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]