[all-commits] [llvm/llvm-project] 8e44f0: [lld][WebAssembly] Add support for -soname

Sam Clegg via All-commits all-commits at lists.llvm.org
Tue Aug 15 18:34:57 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e44f037dc3ff86fb722037cb7832bb172b838eb
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M lld/test/wasm/build-id.test
    M lld/test/wasm/map-file.s
    M lld/test/wasm/weak-alias.ll
    M lld/wasm/Config.h
    M lld/wasm/Driver.cpp
    M lld/wasm/Options.td
    M lld/wasm/SyntheticSections.cpp
    M lld/wasm/SyntheticSections.h
    M llvm/include/llvm/BinaryFormat/Wasm.h

  Log Message:
  [lld][WebAssembly] Add support for -soname

This change writes the module name to the name section of the wasm
binary.  We use the `-soname` argument to determine the name and we
default the output file basename if this option is not specified.

In the future we will likely want to embed the soname in the dylink
section too, but this the first step in supporting `-soname`.

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

More information about the All-commits mailing list