[PATCH] D85994: [LLD][PowerPC] Add check in LLD to produce an error for missing TLSGD/TLSLD

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 10:44:36 PDT 2020


MaskRay added a comment.

In D85994#2350659 <https://reviews.llvm.org/D85994#2350659>, @stefanp wrote:

> @MaskRay 
> Sorry... can you pause on this for a second. I want to talk to the `glibc` guys about this first.

@stefanp I already did it... I think this is a problem for many ld.so implementations. For example, musl has

  if ((def.sym->st_info&0xf) == STT_TLS)
           return __tls_get_addr((tls_mod_off_t []){def.dso->tls_id, def.sym->st_value-DTP_OFFSET});

It was broken as well...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85994/new/

https://reviews.llvm.org/D85994



More information about the llvm-commits mailing list