[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-bugs
Subject: [LLVMbugs] [Bug 12700] New: LTO linking with -pie fails
From: bugzilla-daemon () llvm ! org
Date: 2012-04-30 3:02:46
Message-ID: bug-12700-206 () http ! llvm ! org/bugs/
[Download RAW message or body]
http://llvm.org/bugs/show_bug.cgi?id=12700
Bug #: 12700
Summary: LTO linking with -pie fails
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs@nondot.org
ReportedBy: llvm-bugs@quasiparticle.net
CC: llvmbugs@cs.uiuc.edu
Classification: Unclassified
Compiling C++ programs as position independant and linking them with LTO will
fail with very strange errors. Simple test for clang from SVN and g++ 4.7:
% echo 'int main() { throw 1; }' | clang++ -x c++ -pie -fPIE -flto -o/dev/null
- && echo Success
/usr/bin/ld.gold: error: lto-llvm.o-19lpGA: requires dynamic R_X86_64_PC32
reloc against '__cxa_allocate_exception' which may overflow at runtime;
recompile with -fPIC
clang: error: linker command failed with exit code 1 (use -v to see invocation)
% echo 'int main() { throw 1; }' | g++ -x c++ -pie -fPIE -flto -o/dev/null - &&
echo Success
Success
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic