[patch] Fix pr25919

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 06:41:16 PST 2016


On 5 January 2016 at 13:02, Mehdi Amini <mehdi.amini at apple.com> wrote:
> Hi Rafael,
>
> If I understand correctly this allow the linker to hide weak symbols whose address is not taken or used in a comparison, to speed up the dynamic linker resolution.
> It is not clear to me why this information is needed by the linker before doing LTO? Do you know?

To solve the problem you don't. That is what the gold plugin does.

The issue with libLTO is an API design problem. It passes the
information about each symbol in the .o files to the caller (ld64 for
example).

Cheers,
Rafael


More information about the llvm-commits mailing list