[PATCH] Add -l option to llvm-link and allow linking by resolving symbols
rafael.espindola at gmail.com
Fri Apr 25 10:45:38 PDT 2014
On 25 April 2014 13:34, Stanislav Mekhanoshin
<stanislav.mekhanoshin at amd.com> wrote:
> Changes to llvm-link are really small, most of the code is in the ResolveLinker.cpp. In fact our compiler uses this code for library linking with llvm-link being a secondary tool. Probably other llvm users can use it as well.
This type of logic doesn't belong in lib/Linker. The code in
lib/Linker is the most central part of IR linking. The only logic in
there should be the one that is needed by all liking paths. That is
not the case for any solution using a native linker, since the
semantic of all such linkers is to load an entire object file at a
Which also brings the question, why do this instead of using an
archive? An archive with multiple IR files would let you use the same
logic native linkers use and be more efficient.
More information about the llvm-commits