LLD, the LLVM linker, is a mature and fast linker supporting multiplebinary formats (ELF, Mach-O, PE/COFF, WebAssembly). Designed as astandalone program, the code base relies heavily on global state, makingit less than ideal for library integration. As outlined in RFC:Revisiting LLD-as-a-library design, two main hurdles exist:Fatal errors: they exit the process without returning control to thecaller.Global variable conflicts: shared global variables do not allow twoconcurrent invocation.I understand that calling a linker API could be convenient,especially when you want to avoid shipping anothe
...
继续阅读
(3)