https://bugs.llvm.org/show_bug.cgi?id=33245
Bug ID: 33245
Summary: [ThinLTO] In LTO personality function missing.
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: wallbra...@gmail.com
CC: llvm-bugs@lists.llvm.org
Created attachment 18550
--> https://bugs.llvm.org/attachment.cgi?id=18550&action=edit
Test case, just run run.sh to demonstrate.
As it says in the subject, the linker is not able to find the personality
function when linking a program.
What I am doing here is running ThinLTO with the personality function inside of
the LTO bitcode files, not externally. If I move the personality function to a
o binary it fixes the problem. The same bug happens if you remove the
-fuse-ld=lld.
Running the attached testcase I get the error below.
$ ./run.sh
/home/jakob/bin/ld.lld: error: undefined symbol: vrt_eh_personality_v0
>>> referenced by main
>>> lto.tmp:(.eh_frame+0x13)
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Cheers, Jakob.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs