[all-commits] [llvm/llvm-project] a451c3: [lldb] Support changes to TLS on macOS (#77988)

Alex Langford via All-commits all-commits at lists.llvm.org
Wed Jan 17 11:20:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a451c3b9e2124ba2875be678aaafde322057d575
      https://github.com/llvm/llvm-project/commit/a451c3b9e2124ba2875be678aaafde322057d575
  Author: Alex Langford <alangford at apple.com>
  Date:   2024-01-17 (Wed, 17 Jan 2024)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp

  Log Message:
  -----------
  [lldb] Support changes to TLS on macOS (#77988)

The TLS implementation on apple platforms has changed. Instead of
invoking pthread_getspecific with a pthread_key_t, we instead perform a
virtual function call.

Note: Some versions of Apple's new linker do not emit debug symbols for
TLS symbols. This causes the TLS tests to fail because LLDB and dsymutil
expects there to be debug symbols to resolve the relevant TLS block. You
may work around this by switching to the older linker (ld-classic) or by
disabling the TLS tests until you have a newer version of the new
linker.

rdar://120676969




More information about the All-commits mailing list