<div dir="ltr">Thanks Rafael<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 2:09 AM, Rafael Auler <span dir="ltr"><<a href="mailto:rafaelauler@gmail.com" target="_blank">rafaelauler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In the GNU flavour, you should just try it as you would do it in GNU ld. Please note, however, that support for linker scripts in LLD is still in its infancy and only simple linker script commands that deal with files are working (GROUP, SEARCH_DIR, OUTPUT).<div><br></div><div>Both GNU ld and LLD (when using the GNU flavour), whenever they do not recognise an input file format, will read the input file as an "implicit linker script". This implicit linker script will be read *in addition to* the internal default linker script that sets linker behaviour. These are used, for example, in GLIBC to add search paths and are very simple and already supported by LLD. These implicit linker scripts can appear multiple times in the linker command line in the same way as you specify multiple linker inputs. For example:</div><div><br></div><div>lld-gnu input1.o input2.o linkerscript1.txt linkerscript2.txt -o test</div><div><br></div><div>However, there are linker scripts commands that can only appear once (such as the SECTIONS command). If you want to use such commands, you must supply your own linker script name after the "-T" option to override the default linker script, only once:</div><div><br></div><div>lld-gnu -T linkerscript.txt (...)</div><div><br></div><div>However, currently, these commands are still not supported in LLD.</div><div><br></div><div>Best regards,</div><div>Rafael Auler</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 9, 2015 at 5:25 AM, shridevi Bellatti <span dir="ltr"><<a href="mailto:shridevinb@gmail.com" target="_blank">shridevinb@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi all,<br><br><br></div><div>Which are the command-line options available to pass linker script, library path etc.. to lld? I see minimal options listed, when i say,<br></div><div>lld -flavor gnu -help<br><br></div><div>Thanks in advance,<br></div></div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>