<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 - ExceptionDataRecord::EpilogueCount returns wrong amount in some cases on aarch64"
href="https://bugs.llvm.org/show_bug.cgi?id=40855">40855</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ExceptionDataRecord::EpilogueCount returns wrong amount in some cases on aarch64
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Support Libraries
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>froydnj@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dmajor@mozilla.com, llvm-bugs@lists.llvm.org, martin@martin.st
</td>
</tr></table>
<p>
<div>
<pre>I have an aarch64 executable with a function that llvm-readelf claims has 123
(!) epilogue scopes. This is fine as far as it goes, but 123 is wrong, because
this code:
<a href="https://github.com/llvm-mirror/llvm/blob/f25266101e3a715fb377960a7cf99c4f9ec2f37e/include/llvm/Support/ARMWinEH.h#L385-L392">https://github.com/llvm-mirror/llvm/blob/f25266101e3a715fb377960a7cf99c4f9ec2f37e/include/llvm/Support/ARMWinEH.h#L385-L392</a>
is wrong: in the HeaderWords() != 1 case, we're trying to extract a 16-bit
field, but the return type of the function truncates that 16-bit quantity to 8
bits. The actual amount is 891 (!), which is similarly unbelievable, but there
you go.</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>