<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/128790>128790</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LLD] Implement NOCROSREFS support for overlays in linker script handling of LLD
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Prabhuk
</td>
</tr>
</table>
<pre>
Consider the following incomplete linker script snippet:
```
OVERLAY <START_ADDRESS>: NOCROSSREFS {
.overlay.ob1 {*ob1*.o (.text*)}
.overlay.ob2 {*ob2*.o (.text*)}
} >SOME_MEMORY
```
LLD fails with `{ expected, but got NOCROSSREFS` while processing this.
Ideally, we would like to match the BFD linker behavior for NOCROSSREFS in this case.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8ktGLozAQxv-a-DKspNFoffDBVoUF93rU5WCflqhjzW1qJInt9r8_9Lp3uxwcDASGfJP5vvyEtfI0IqaE7wjPPTG7QZv0uxHNML95je5u6V6PVnZowA0IvVZKX-V4Ajm2-jwpdAhKjm9owLZGTg7sKKcJHQkyQteK6L1odvhRHKvsBUiwr5-z4_NrlufHoq5JUJAgg2-H_fFQ18eirIHEO0IzAABfX9AocfN1s1nbLNPNhrDM10DY1nf47gjLCEtInC-aTwL2R8D-IyBxDiQo6sNT8fpUPB2OL_-uXlU59EIqC1fpBlia8Q7wfcLWYUfYHprZwUm7zy5IROE6SIUwGd2itUtybpDW__3AY4dCqduiviJc9aw6UPINwWk4C9cOa-i7Mv_IuMFBXKQ20GvzJS45rnOhFRaX4V6XBl0SJMLDdBOHlLM4jLk3pKLvEwxaihF2Iee8T7YdRmHIaES3IqGeTBllnDLGWcA3G-63UZTQOMSe4ZbzbUtCimchla_U5exrc_KktTOmG7aNE-op0aCyK1GMKdURxha0TLpcf2jmkyUhVdI6-3eAk06tEFZVTngOjwtZZxw_wlwt2nmatHGr9fsP28X3V_wGMXZqiVn3UFW5NxuVDs5NdgGSlYSVJ-mGufFbfSasXFa4Hw-T0T-xdYSVqyFLWHn3dEnZrwAAAP__pdn5Vw">