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 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 20.10.2009 20:24, Rugxulo kirjoitti: > Hi, > > On Oct 3, 3:41 am, Eli Zaretskii wrote: >>> From: RayeR >>> 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