<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/146722>146722</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [LLD] Linker crashes when trying to parse ':ALIGN'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lld
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          parth-07
      </td>
    </tr>
</table>

<pre>
    If there is no space between ":" and ALIGN, linker will misparse the following script:

```bash
SECTIONS
{
  S :ALIGN(4096) {}
}
```

Moreover, when recovering from this error, it will enter infinite recursion and overflow the stack.

Thank you @quic-akaryaki for finding this issue.


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMUs2OmzAQfhpzGSUy5sdw4JBdmmqldHvIvoAxQ3Dj2NQ2ifL2lU2krTQSQjPfz_gb4b26GMSOVG-k6jOxhtm6bhEuzDvKs8GOz-5jgjCjQ1AejAW_CIkwYHggGiCMkeJAGANhRjicPn5-EvYOWpkrOngoreGm_CKcx8gCk9XaPpS5gJdOLSGCaaqabjUIPxN6OP94__r4_XmOLf5G6AHgDKQ4vCSakrY1YS3EJu_TVP8_zcb6yzq0d3TR02NGAw5l_I8GJmdvEGblAZ2zaUSFzTKagA6UmZRRASNodV5Zk5aM-EnbR9rHByGv-03saxbmCk-7Ainp31XJnbgK9xRXBZN1MCkzRt0kqbxf8YXLxq4Y26IVGXY5r_KybnnLsrmTDeXVMPJ6HGnD20bmdV4MzZBXxZAL1mSqY5RVlFOWV6zI871s67GixSApilJWgpQUb0Lpvdb32966S5aEu7ysOWOZFgNqn9JnTOsxpln1mevi-G5YL56UVCsf_DdBUEGngzmdelL1cNqilk74Gf32ysE906YWtuQJ49_R8Wx1uptDWHw6nSNhx4sK8zrspb0RdoxSr89ucfYPykDYMRn3hB1f3u8d-xcAAP__IBPang">