[lld] r249520 - Don't create dynamic relocations for weak undefined symbols.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 09:28:14 PDT 2015


On 7 October 2015 at 00:48, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> With this change all llvm and clang tests pass when built with lld.
>
> Amusingly the only failures now in check-all are lld's :-)

And that reduces to tls usage. It particular, given a file with

data16
leaq abc at TLSGD(%rip), %rdi
data16
data16
rex64
callq __tls_get_addr at PLT

We will produce a shared library with R_X86_64_TLSGD, which the
dynamic linker doesn't understand.

Michael, is this covered by the work you are doing for tls on static binaries?

Cheers,
Rafael


More information about the llvm-commits mailing list