<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 - -fsanitize=thread and -fsanitize=kernel-address produce unwanted .eh_frame and .init_array.* sections"
href="https://bugs.llvm.org/show_bug.cgi?id=46478">bug 46478</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;">CC</td>
<td>
</td>
<td>i@maskray.me
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - -fsanitize=thread and -fsanitize=kernel-address produce unwanted .eh_frame and .init_array.* sections"
href="https://bugs.llvm.org/show_bug.cgi?id=46478#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - -fsanitize=thread and -fsanitize=kernel-address produce unwanted .eh_frame and .init_array.* sections"
href="https://bugs.llvm.org/show_bug.cgi?id=46478">bug 46478</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>The .eh_frame issue was fixed by <a href="https://reviews.llvm.org/D100251">https://reviews.llvm.org/D100251</a> (target:
13.0.0).
For .init_array.0, -fsanitize={address,memory,thread,...} instrumentations
create a module constructor which is placed in .init_array.0 .
For memory/thread, the module constructor just calls an init function which is
really small.
For address, the module constructor needs to register global variables (even
under -fsanitize=kernel-address), which cannot be simply ignored.
It is likely that the kernel doesn't need .init_array.0 for memory/thread, but
introducing a new option seems overkill to me.
Ignoring it with the current /DISCARD/ : { ... *(.init_array.*) } works quite
well.</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>