<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [codeview] LLVM-generated PDBs contain CodeView symbols with invalid Seg:Offset"
href="https://bugs.llvm.org/show_bug.cgi?id=39882">bug 39882</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;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</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>rnk@google.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [codeview] LLVM-generated PDBs contain CodeView symbols with invalid Seg:Offset"
href="https://bugs.llvm.org/show_bug.cgi?id=39882#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - [codeview] LLVM-generated PDBs contain CodeView symbols with invalid Seg:Offset"
href="https://bugs.llvm.org/show_bug.cgi?id=39882">bug 39882</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>I strongly suspect these globals were discarded by /OPT:REF. When this happens,
those fields will remain unrelocated, and they typically contain zeroes.
Fixing it should be easy, I think we can just discard such symbol records from
the globals stream if the segment index/offset pair is zero. IIRC valid
segments start at 1 (maybe?), so zero should be invalid.
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW - lld-link emits symbol data for global variables that were optimized out by /opt:ref"
href="show_bug.cgi?id=39147">bug 39147</a> ***</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>