lld reports error:
: expected, but got -
while gnu ld will not report error with same linker script.
This is because when processing tokens lld treats string as Expr and split in function tokenizeExpr, so symbol - , rather than symbol : is regard as end of region name.
When link with linker script like:
```
MEMORY
{
A-XXXX : ORIGIN = 0x0 , LENGTH = 0x20000
B-YYYY : ORIGIN = 0x200000 , LENGTH = 0x40000
C-ZZZZ : ORIGIN = 0x400000 , LENGTH = 0x80000
}
```
lld reports error:
`: expected, but got -`
while gnu ld will not report error with same linker script.
This is because when processing tokens lld treats string as Expr and split in function tokenizeExpr, so symbol - , rather than symbol : is regard as end of region name.
When link with linker script like:
lld reports error:
: expected, but got -
while gnu ld will not report error with same linker script. This is because when processing tokens lld treats string as Expr and split in function tokenizeExpr, so symbol - , rather than symbol : is regard as end of region name.