[Bug 610992] Re: clang -fstack-protector fails to link (undefined reference to `__stack_chk_guard')
Launchpad Bug Tracker
610992 at bugs.launchpad.net
Tue Aug 17 01:05:10 BST 2010
This bug was fixed in the package llvm-2.7 - 2.7-4ubuntu1
---------------
llvm-2.7 (2.7-4ubuntu1) maverick; urgency=low
[ Matthias Klose ]
* Merge with Debian; remaining changes:
- Don't build llvm-2.7-priv-dev, remove build dependency on
llvm-2.7-priv-dev.
- Adjust conflicts with unversioned llvm package as found in lucid.
* Replace 0010-ARM-BX_to_BLX.patch by 0010-r109125.patch. ARMv4 JIT forgets
to set the lr register when making a indirect function call. Fixes PR7608.
* Backports from 2.8 (taken from OpenEmbedded):
- 0041-r104558-VFPmisc.patch: Add missing implementation to the
materialization of VFP misc. instructions (vmrs, vmsr and vmov
(immediate)).
- 0042-r104587-MOVimm32.patch: Fix TestARMCodeEmitter::emitPseudoInstruction
UNREACHABLE at ARMCodeEmitter.cpp:554.
- 0043-r104652-VFPLoadStoreMultiple.patch: Fix PR7221, makes VFP
calculations correct.
- 0044-r104653-BFC-BFI.patch: Fix PR7222, ERROR: ARMv6t2 JIT is not yet
supported.
* Configure with --with-optimize-option=, always build in ARM mode on armel.
[ Anders Kaseorg ]
* debian/patches/0032-x86-fast-isel-fs-load.patch,
debian/patches/0033-stack-protector-linux.patch: Take upstream r106031
and r107640 to fix clang -fstack-protector link errors. (LP: #610992)
-- Matthias Klose <doko at ubuntu.com> Mon, 16 Aug 2010 14:08:30 +0200
** Changed in: llvm-2.7 (Ubuntu)
Status: New => Fix Released
--
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: Fix Released
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