[all-commits] [llvm/llvm-project] 0e8f4c: [lld][WebAssembly] Fix crash on undefined+weak fun...

Sam Clegg via All-commits all-commits at lists.llvm.org
Fri May 27 11:41:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e8f4ce31df192d188239575839d8cceb47caf85
      https://github.com/llvm/llvm-project/commit/0e8f4ce31df192d188239575839d8cceb47caf85
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    M lld/test/wasm/lto/weak-undefined.ll
    M lld/wasm/SymbolTable.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix crash on undefined+weak function syms in LTO objects

Symbols from LTO objects don't contain Wasm signatures, but we need a
signature when we create undefined/stub functions for missing weakly
undefined symbols.

Luckily, after LTO, we know that symbols that are not referenced by a
regular object file must not be needed in the final output so there
is no need to generate undefined/stub function for them.

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




More information about the All-commits mailing list