<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87535>87535</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lld/ELF: Fix repeated linker script errors in more cases
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld:ELF
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
MaskRay
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MaskRay
</td>
</tr>
</table>
<pre>
Many steps in LinkerScript.cpp are called repeatedly (fixed point iteration). If they call `error` and `errorOrWarning`, we may get repeated error messages.
https://reviews.llvm.org/D152170 and #66836 have fixed some issues, but there are more like `symbol not found: ` (https://github.com/llvm/llvm-project/pull/84512#issuecomment-2035081535).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUs9u3CwQfxp8GcXCg8HswYf9vtRSpUSV2kPP2J710mCwACfx21d2thv12AuIEaPfX5OSnTxRy-R_DPHZpJfvZmOITD4WZs3XENvbsOjDuLXPxm-QMi0JrIcn618o_hiiXXI5LAuYSDAY52iESAuZTKPbgKG-2HcaYQnWZ7CZosk2eIanEr5eIF9pO9aAKU4xhsgUB-PH-_tb_Gmit35iijP8H94IZrPBRPmOA8dHmCklM1EqGX9k_PxxXnNeEhNnhh3DLtKrpbdUOvc6lyFODLvHSmLV3DBRKKWFgqt5JfggnsJMYFNaKe3w_Zp30pEOwXOIBM6-0E43bXMfHPiQ4RJWPzJx3se7B3-zmGy-rn05hJlht1O5XQ9LDL9oyAy7ZXWOYadrWSFDceAPYZ7J5wfkQnJdSSF3F4uxFeNJnExBbdVUWKnmpJri2tY1XQyXqm6akVRlLrpBdeH9CfWp0VwXtkWONa-5qHSFdVNq03OpuBqNkaR1z2pOs7Hubldx8Gh1I4UsnOnJpVt9nNvlfnnqbgWK7SGoX6fEau5syp-mF9lmR-2-gt2-Is7Q2ffPON3RLUhHuT7CPTp3uD2YRKlYo2v_2dQ_KXaHgN8BAAD__6UW9mI">