[Bug 610992] Re: clang -fstack-protector fails to link (undefined reference to `__stack_chk_guard')

Anders Kaseorg andersk at mit.edu
Fri Aug 6 22:34:33 BST 2010


** Bug watch added: Debian Bug tracker #592009
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592009

** Also affects: llvm-2.7 (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592009
   Importance: Unknown
       Status: Unknown

-- 
clang -fstack-protector fails to link (undefined reference to `__stack_chk_guard')
https://bugs.launchpad.net/bugs/610992
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in The Low Level Virtual Machine Compiler Infrastructure: Unknown
Status in “llvm-2.7” package in Ubuntu: New
Status in “llvm-2.7” package in Debian: Unknown

Bug description:
Binary package hint: clang

$ echo 'int main(){char s[80];}' > test.c
$ gcc -fstack-protector test.c -o test
$ ./test
$ clang -fstack-protector test.c -o test
/usr/bin/ld: /tmp/cc-0Rbhby.o: in function main:test.c(.text+0xc): error: undefined reference to '__stack_chk_guard'
/usr/bin/ld: /tmp/cc-0Rbhby.o: in function main:test.c(.text+0x22): error: undefined reference to '__stack_chk_guard'
collect2: ld returned 1 exit status
clang: error: linker command failed with exit code 1 (use -v to see invocation)





More information about the Ubuntu-sponsors mailing list