<div dir="ltr"><div><div>The code in LLD is somewhat tightly coupled with the rest of the linker. Probably it is better to create a new library rather than trying to split LLD into two. I believe this would result in a better API. Of course you can reuse code, but what we need is a clean interface.</div><div><br></div><div>The library shouldn't be complicated. In fact, it would export only one function.</div><div><br></div><div>  std::vector<uint8_t> createImportLibrary(std::vector<ExportSymbol>)</div><div><br></div><div>I.e. it takes a list of DLLExported symbols and returns a .lib file. ExportSymbol type contains information about DLLExported symbols.</div></div></div>