[all-commits] [llvm/llvm-project] 635523: [lld][WebAssembly] Fix crash on un-used __tls_base...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Sep 9 09:46:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6355234660551e7562e2ace512ccaefacbbb9065
      https://github.com/llvm/llvm-project/commit/6355234660551e7562e2ace512ccaefacbbb9065
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2021-09-09 (Thu, 09 Sep 2021)

  Changed paths:
    A lld/test/wasm/tls-non-shared-memory-basic.s
    M lld/wasm/Driver.cpp
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix crash on un-used __tls_base symbol

In the case that TLS is used in the single-threaded program, and
therefore effectively lowered away, we still optionally create a
`__tls_base` symbols, but the code for setting it was assuming it was
always created.

Differential Revision: https://reviews.llvm.org/D109518




More information about the All-commits mailing list