delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/10/20/15:57:56

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <4ADE1631.9020003@iki.fi>
Date: Tue, 20 Oct 2009 22:57:37 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Does DJGPP GCC support SSP stack protection?
References: <8a4f755b-e150-4b60-99a5-71151b54ff9b AT m38g2000yqd DOT googlegroups DOT com> <83bpkoq38g DOT fsf AT gnu DOT org> <42f2c9ab-efdf-407f-86ba-63bb28692fea AT e34g2000vbc DOT googlegroups DOT com>
In-Reply-To: <42f2c9ab-efdf-407f-86ba-63bb28692fea@e34g2000vbc.googlegroups.com>
Reply-To: djgpp AT delorie DOT com

20.10.2009 20:24, Rugxulo kirjoitti:
> Hi,
>
> On Oct 3, 3:41 am, Eli Zaretskii<e DOT  DOT  DOT  AT gnu DOT org>  wrote:
>>> From: RayeR<gl DOT  DOT  DOT  AT centrum DOT cz>
>>> Date: Fri, 2 Oct 2009 16:10:08 -0700 (PDT)
>>
>>> I mean compiler options:
>>> -fstack-protector
>>> -fstack-protector-all
>>> -fno-stack-protector
>>> It seems to be recognized (currently using 4.4.1) but linker says an
>>> error:
>>
>>> E:\DJGPP\C>gcc -Wall -fstack-protector -o pokus.exe pokus.c
>>> e:/djgpp/bin/ld.exe: cannot find -lssp_nonshared
>>> collect2: ld returned 1 exit status
>>
>> Obviously, you need the libssp_noshared.a library to be available to
>> the linker, for this to work.
>
> I don't have 4.4.1 installed on this computer, but it *seems* to be
> present. But I don't know if it actually works or not.
>
> http://www.delorie.com/djgpp/dl/ofc/current/v2gnu/gcc441b.zip/
>
>    8,002 07-25-09 11:00 lib/libssp.a
>          908 07-25-09 09:43 lib/libssp.la
>          610 07-25-09 11:00 lib/libssp_nonshared.a
>          939 07-25-09 09:43 lib/libssp_nonshared.la
>

It is not difficult to compile it together with GCC. I do not however know whether
it works.

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019