[all-commits] [llvm/llvm-project] a04a50: [lld][WebAssembly] Fix crash accessing non-live __...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Mar 17 14:02:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a04a5077140b6699938a73643f71d00d9748ec7e
      https://github.com/llvm/llvm-project/commit/a04a5077140b6699938a73643f71d00d9748ec7e
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    A lld/test/wasm/tls_init_symbols.s
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix crash accessing non-live __tls_base symbol

In programs that don't otherwise depend on `__tls_base` it won't
be marked as live.  However this symbol is used internally in
a couple of places do we need to mark it as live explictily in
those places.

Fixes: #54386

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




More information about the All-commits mailing list