[PATCH] [lld] [ELF] Support for general dynamic TLS relocations on X86_64
joerg at britannica.bec.de
Mon Sep 29 01:36:01 PDT 2014
On Sun, Sep 28, 2014 at 01:39:22PM -0300, Rafael Auler wrote:
> I initially thought that it was this way too, when I made this patch. Then
> I updated my patch because I found evidence that the correct way is as
> Shankar says, at least in my system. Please correct me if this happens
> differently in any other ELF system, because then, we need to explictly
> define the __tls_get_addr atom, but I believe that we don't need. I quickly
> scanned though binutils source code and found no evidence that
> __tls_get_addr was being special cased.
It is a glibc specific issue and not generic ELF behavior. That said,
__tls_get_addr shouldn't just be unconditionally added either -- we
already have the problem that we leak unused symbols into the output in
a number of cases.
More information about the llvm-commits