[llvm-bugs] [Bug 33245] New: [ThinLTO] In LTO personality function missing.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 31 05:46:09 PDT 2017
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: unassignedbugs at nondot.org
Reporter: wallbraker at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170531/5a567881/attachment.html>
More information about the llvm-bugs
mailing list