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

Launchpad Bug Tracker 610992 at bugs.launchpad.net
Fri Aug 6 20:38:38 UTC 2010


You have been subscribed to a public bug by Anders Kaseorg (anders-kaseorg):

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)

** Affects: llvm
     Importance: Unknown
         Status: Unknown

** Affects: clang (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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.




More information about the Ubuntu-sponsors mailing list