[all-commits] [llvm/llvm-project] 4e8cb0: [WebAssembly] Add symbol information for shared li...

Sam Clegg via All-commits all-commits at lists.llvm.org
Wed Dec 20 11:13:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e8cb01b01458860ed3d3f6f54ca5405e50be605
      https://github.com/llvm/llvm-project/commit/4e8cb01b01458860ed3d3f6f54ca5405e50be605
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M llvm/include/llvm/Object/Wasm.h
    M llvm/lib/Object/WasmObjectFile.cpp
    A llvm/test/tools/llvm-nm/wasm/dylink.yaml
    A llvm/test/tools/llvm-objdump/wasm/dylink-symbol-table.yaml

  Log Message:
  -----------
  [WebAssembly] Add symbol information for shared libraries (#75238)

The current (experimental) spec for WebAssembly shared libraries does
not include a full symbol table like the object format. This change
extracts symbol information from the normal wasm exports.

This is the first step in having the linker report undefined symbols
when linking with shared libraries. The current behaviour is to ignore
all undefined symbols when linking with `-pie` or `-shared`.

See https://github.com/emscripten-core/emscripten/issues/18198




More information about the All-commits mailing list