[LLVMdev] [Patch, RFC] Re: Adding support for explicitly specified TLS models (PR9788)
Joerg Sonnenberger
joerg at britannica.bec.de
Tue Jun 12 11:05:34 PDT 2012
On Tue, Jun 12, 2012 at 12:36:28PM -0400, Rafael EspĂndola wrote:
> >> Do you know what is the rationale for that? The static linker will
> >> optimize it anyway (but not do as good a job as the compiler could).
> >
> > codegen can be more efficient. E.g. less or no calls to __tls_get_addr
> > needed.
>
> My point also :-) What I was asking for a rationale on was *not* doing
> the optimization in the compiler.
Ah, sorry. Because the compiler might not know it yet. Consider linking
code compiled with -fPIC into the main binary, either using PIE or not.
Joerg
More information about the llvm-dev
mailing list