<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I tried to use linker script with lld (this script works just file with GNU ld). I got a problem with defining new symbols and assign values (addresses) to them. For instance I got the following code in the linker script:<br>SECTIONS<br>{<br>  _exec_sym = 0;<br>  ...<br></div>After using lld command with the --script option I got the following error:<br>line 3: : expected, but got =<br>  _exec_sym = 0;<br>            ^<br></div>As a result I couldn't define new symbol. Also the PROVIDE expression is not supported. I believe I got a latest lld sources from the "git clone <a href="http://llvm.org/git/lld.git">http://llvm.org/git/lld.git</a>" repository, but maybe I'm missing something.<br><br></div>Is it possible to define (assign values) symbols in the linker script?<br></div>Do we have any documentation for the linker script support in llvm/lld?<br><br></div>Thanks a lot, Dima.<br></div>