<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 - Fix assertion for symbol-ordering-file + some linker scripts"
href="https://bugs.llvm.org/show_bug.cgi?id=36190">36190</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fix assertion for symbol-ordering-file + some linker scripts
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>jh7370.2008@my.bristol.ac.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Regression caused by r323779. If --symbol-ordering-file is specified and a
linker script includes one more than one sub-command for any output section,
then LLD fires the following assertion:
Assertion failed: SectionCommands.size() == 1, file
C:\llvm\llvm\tools\lld\ELF\OutputSections.cpp, line 163
I will upload an example test extension to Phabricator to demonstrate. An
example script would be either of the following:
SECTIONS { .foo : { *(.foo); *(.foo.*) } }
SECTIONS { .foo : { BYTE(0x33); *(.foo); BYTE(0x44) } }
The sorting should be applied on each InputSectionDescription individually
within an OutputSection, and the sort() function should not assume only one
Command in an OutputSection.</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>