<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 INVALID - GOT references generated for code that requests static relocation model"
href="https://bugs.llvm.org/show_bug.cgi?id=49693">bug 49693</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;">CC</td>
<td>
</td>
<td>i@maskray.me
</td>
</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>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - GOT references generated for code that requests static relocation model"
href="https://bugs.llvm.org/show_bug.cgi?id=49693#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - GOT references generated for code that requests static relocation model"
href="https://bugs.llvm.org/show_bug.cgi?id=49693">bug 49693</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 new behavior works intended and is more consistent with
--relocation-model=pic.
Traditionally ELF compilers use direct access with static relocation model,
which can cause copy relocations
(<a href="https://maskray.me/blog/2021-01-09-copy-relocations-canonical-plt-entries-and-protected">https://maskray.me/blog/2021-01-09-copy-relocations-canonical-plt-entries-and-protected</a>)
The new behavior requires explicit dso_local, like the annotation you need for
pie/pic.</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>