<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [ARM] `BL $ADDR` becomes `BLX $ADDR` after linking"
href="https://bugs.llvm.org/show_bug.cgi?id=38435">bug 38435</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>i@maskray.me
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [ARM] `BL $ADDR` becomes `BLX $ADDR` after linking"
href="https://bugs.llvm.org/show_bug.cgi?id=38435#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [ARM] `BL $ADDR` becomes `BLX $ADDR` after linking"
href="https://bugs.llvm.org/show_bug.cgi?id=38435">bug 38435</a>
from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
<pre>link.x requires a small change to work with lld:
/DISCARD/ :
{
- *(.ARM.exidx.*);
+ *(.ARM.exidx*);
}
}
lld can produce more empty sections than GNU ld. The synthetic section
.ARM.exidx needs to be discarded as well even if it has no composing
.ARM.exidx.*
The original problem has been fixed by Peter's <a href="https://reviews.llvm.org/D73542">https://reviews.llvm.org/D73542</a>
Different from GNU ld, lld will issue a warning:
% ld.lld @response.txt
ld.lld: warning: app0-bb017cc3d2efe9d5e6ed62661cfeec84.rs:(function main:
.text.main+0x2): branch and link relocation: R_ARM_THM_CALL to non STT_FUNC
symbol: __nop interworking not performed; consider using directive '.type
__nop, %function' to give symbol type STT_FUNC if interworking between ARM a
nd Thumb is required</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>