[all-commits] [llvm/llvm-project] 0fb335: [lld][WebAssembly] Fix for --import-table when com...

Sam Clegg via All-commits all-commits at lists.llvm.org
Tue Jul 2 11:23:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fb3351524acd48c62c06c57ed28cc423db4e99e
      https://github.com/llvm/llvm-project/commit/0fb3351524acd48c62c06c57ed28cc423db4e99e
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2024-07-02 (Tue, 02 Jul 2024)

  Changed paths:
    A lld/test/wasm/import-table-explicit.s
    A lld/test/wasm/import-table.s
    R lld/test/wasm/import-table.test
    M lld/wasm/SymbolTable.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Fix for --import-table when combined with reference types (#97451)

When reference types are enabled clang will generate call_indirect
instructions that explicitly reference the global
`__indirect_function_table` symbol.

In this case the resulting global symbol was not being correctly marked
with explicit import name/module, resulting in the linker reporting
errors when it was referenced.

This issue was reported in
https://github.com/WebAssembly/tool-conventions/issues/158



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