diff options
author | Jez Ng <jezng@fb.com> | 2020-08-12 19:50:09 -0700 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2020-08-12 19:50:09 -0700 |
commit | 3c9100fb785c400c457ce83ba724a3b762b2348a (patch) | |
tree | ede95054724e56a6d29535bb1fbb4e64602c2697 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 65277126bf90401436e018fcce0fc636d34ea771 (diff) | |
download | llvm-3c9100fb785c400c457ce83ba724a3b762b2348a.zip llvm-3c9100fb785c400c457ce83ba724a3b762b2348a.tar.gz llvm-3c9100fb785c400c457ce83ba724a3b762b2348a.tar.bz2 |
[lld-macho] Support dynamic linking of thread-locals
References to symbols in dylibs work very similarly regardless of
whether the symbol is a TLV. The main difference is that we have a
separate `__thread_ptrs` section that acts as the GOT for these
thread-locals.
We can identify thread-locals in dylibs by a flag in their export trie
entries, and we cross-check it with the relocations that refer to them
to ensure that we are not using a GOT relocation to reference a
thread-local (or vice versa).
Reviewed By: #lld-macho, smeenai
Differential Revision: https://reviews.llvm.org/D85081
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions