Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - gcc -fstack-proctector problem?: Page 1 of 8 (8 Items)
   
gcc -fstack-proctector problem?  
This is on 6.4.1

I can see i386-pc-nto-qnx6.4.0 is compiled with -disable-libssp, but how come the gcc -c successed? 

One of my project is using “gcc -c -fstack-protector" to test in configure, leads to mistakely allow that flag...

$ gcc --version
gcc (GCC) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat sp.c
int main()
{
}

$ gcc -c -fstack-protector sp.c
$ echo $?
0
$ gcc -o sp -fstack-protector sp.c
/usr/qnx641/host/qnx6/x86/usr/bin/ntox86-ld: cannot find -lssp_nonshared
collect2: ld returned 1 exit status