Issue 146722
Summary [LLD] Linker crashes when trying to parse ':ALIGN'
Labels lld
Assignees
Reporter parth-07
    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.


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to