[all-commits] [llvm/llvm-project] 198815: [lld][WebAssembly] Avoid importing/exporting hidde...

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu May 26 13:43:44 PDT 2022


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

  Changed paths:
    M lld/test/wasm/shared-weak-symbols.s
    M lld/wasm/Symbols.cpp
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld][WebAssembly] Avoid importing/exporting hidden symbols in shared libraries

We have some special handling for weakly defined symbols where we both
import and export them, but this is not needed for hidden symbols which
should never be imported or exported.

See https://github.com/emscripten-core/emscripten/pull/16972

This should also help with:
https://github.com/emscripten-core/emscripten/issues/15487

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




More information about the All-commits mailing list