I was experimenting with a change to a linker script when I encountered a segmentation fault triggered by a syntax error: ld.lld: error: kernel.ld:3: ( expected, but ...
This issue is caused by incorrect use of } where fi should be used to properly close if blocks. The script fails during preprocessing due to these syntax errors. Here are the places where this happens ...