[all-commits] [llvm/llvm-project] 965c3d: [lld][WebAssembly] Fix SEGFAULT when importing wra...

Lukas Döllerer via All-commits all-commits at lists.llvm.org
Thu Nov 27 11:21:31 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 965c3d760de35753d97d41c6b69582cecff8819d
      https://github.com/llvm/llvm-project/commit/965c3d760de35753d97d41c6b69582cecff8819d
  Author: Lukas Döllerer <contact at lukas-doellerer.de>
  Date:   2025-11-27 (Thu, 27 Nov 2025)

  Changed paths:
    A lld/test/wasm/wrap_import.s
    M lld/wasm/Driver.cpp
    M lld/wasm/SyntheticSections.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix SEGFAULT when importing wrapped symbol (#169656)

When wrapping a symbol `foo` via `-wrap=foo`, we create the symbol
`__wrap_foo` that replaces all mentions of `foo`. This feature was
implemented for wasm-ld in commit a5ca34e.

So far, no valid signature has been attached to the undefined symbol,
leading to a nullptr dereference in the logic for creating the import
section. This change adds the correct signature to the wrapped symbol,
enabling the generation of an import for it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list