<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [LLD/ELF] - ICF folds functions with different LSDA."
href="https://bugs.llvm.org/show_bug.cgi?id=36272">36272</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[LLD/ELF] - ICF folds functions with different LSDA.
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>grimar@accesssoftek.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19828" name="attach_19828" title="test.c">attachment 19828</a> <a href="attachment.cgi?id=19828&action=edit" title="test.c">[details]</a></span>
test.c
We knew about that (and had some patches in this direction,
for example D38319 and others), but I do not think we had
a realistic use case before. And it was probably not
documented in bugtracker.
I found this issue in binutils bugtracker today and
verified it is reproduced with use of LLD head.
(for reference: <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=21066">https://sourceware.org/bugzilla/show_bug.cgi?id=21066</a>)
test.c is attached. When compiled and linked with LLD and --icf=all
it crashes:
./test
caught expected exception
ERROR: caught unexpected exception
terminate called after throwing an instance of 'second_exception'
Aborted (core dumped)
without ICF output is:
./test
caught expected exception
caught expected exception</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>