[all-commits] [llvm/llvm-project] 5b0e45: [lld][WebAssembly] Fix use of undefined funcs unde...

Sam Clegg via All-commits all-commits at lists.llvm.org
Fri Jan 19 09:32:33 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b0e45c8cec8d6a95c22fcd20e7161d57ccafca1
      https://github.com/llvm/llvm-project/commit/5b0e45c8cec8d6a95c22fcd20e7161d57ccafca1
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M lld/test/wasm/unresolved-symbols.s
    M lld/wasm/Relocations.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix use of undefined funcs under --warn-unresolved-symbols (#78643)

When undefined functions exist in the final link we need to create
stub functions (otherwise direct calls to those functions could
not be generated).  We were creating those stub when
`--unresolved-symbols=ignore-all` was passed but overlooked the fact
that `--warn-unresolved-symbols` essentially has the same effect (i.e.
undefined function can exist in the final link).

Fixes: #53987




More information about the All-commits mailing list