X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: Does DJGPP GCC support SSP stack protection? Date: Tue, 20 Oct 2009 10:24:30 -0700 (PDT) Organization: http://groups.google.com Lines: 29 Message-ID: <42f2c9ab-efdf-407f-86ba-63bb28692fea@e34g2000vbc.googlegroups.com> References: <8a4f755b-e150-4b60-99a5-71151b54ff9b AT m38g2000yqd DOT googlegroups DOT com> <83bpkoq38g DOT fsf AT gnu DOT org> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1256059470 16326 127.0.0.1 (20 Oct 2009 17:24:30 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 20 Oct 2009 17:24:30 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: e34g2000vbc.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Oct 3, 3:41=A0am, 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