<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 - linker script: SIZEOF(.empty.output.section) != 0"
href="https://bugs.llvm.org/show_bug.cgi?id=37011">37011</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>linker script: SIZEOF(.empty.output.section) != 0
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</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>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roland@hack.frob.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jakehehrlich@google.com, llvm-bugs@lists.llvm.org, phosek@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20159" name="attach_20159" title="reproducer tar file">attachment 20159</a> <a href="attachment.cgi?id=20159&action=edit" title="reproducer tar file">[details]</a></span>
reproducer tar file
The attached reproducer fails with the linker script's ASSERT firing.
Removing the ASSERT and replacing it with `FOO = SIZEOF(.bss);` links valid
output where there is no .bss section (since the output section described in
the linker script turned out to be empty). However, the FOO symbol's st_value
is 2, showing that SIZEOF(.bss) is wrong in a context other than ASSERT.</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>