This is PR32664. Current LLD behavior - segfault.
I found 2 ways of solving the issue.
One of them is this patch, second is D32174.
Problem itself is next. Imagine next script and code:
SECTIONS { . = 0x1000; aaa = ABSOLUTE(foo - 1); .text : { *(.text*) } };
.section .text
.globl foo
foo:
nop
At the moment of assignment to aaa we do not know the address of output section .text.
We are unable to evaluate the absolute value aaa properly therefore.
This patch suggests to handle forced absolute symbols like regular symbols until we assign
all output sections addresses. After that it converts them into absolute.