<div dir="ltr">Hi Alexander,<div><br></div><div>Could you explain a little bit more about what you are trying to achieve? Most of the input files given to a linker is obvious -- if a command line argument does not start with dash and if is not an argument for an option, it is a filename. So I'm guessing you want to resolve library file names given by -l. Am I correct?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 25, 2019 at 11:14 AM Alexander Linne via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
i am currently trying to write a tool based on lld. Specifically I want <br>
to parse a ld command line to determine the input and output files and <br>
the kind of each input file given a ld command line.<br>
Unfortunately, the ELF linker does not expose any API to just parse the <br>
command line.<br>
My question: if I would refactor this module to expose such an API, <br>
would this have any chance of being merged back into the official <br>
repository?<br>
<br>
Regards<br>
<br>
Alexander Linne<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>