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

Anders Kaseorg andersk at mit.edu
Mon Aug 16 19:21:18 BST 2010


And this removes the other failing test, test/CodeGen/X86/stack-
protector.ll, which was mistakenly added <http://llvm.org/viewvc/llvm-
project?view=rev&revision=107641>.  The correct test is test/CodeGen/X86
/stack-protector-linux.ll.

** Patch added: "llvm-2.7_2.7-3ubuntu2_lp610992.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/llvm-2.7/+bug/610992/+attachment/1493804/+files/llvm-2.7_2.7-3ubuntu2_lp610992.debdiff

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