[PATCH] Add -l option to llvm-link and allow linking by resolving symbols

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Apr 25 11:24:15 PDT 2014


On 25 April 2014 14:21, Mekhanoshin, Stanislav
<Stanislav.Mekhanoshin at amd.com> wrote:
> This is in fact an extraction from such a tool into a more general interface. If no one else needs this I do not insist anyway.
> BTW, I do remember that Borland linker a while ago was doing such a thing. This is purely an optimization and in our case this allows to speed up compilation by dropping unneeded stuff before IPO.

It is not just an optimization. Fetching a function f can produce an
undefined reference to g which can cause an static initializer to be
fetched. That static initializer will still run even if f is then
dropped by a gc pass.

Cheers,
Rafael



More information about the llvm-commits mailing list