[all-commits] [llvm/llvm-project] c7af9a: Reapply: [WebAssembly] Implement build-id feature

Derek Schuff via All-commits all-commits at lists.llvm.org
Fri Mar 3 17:19:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7af9ae577bb04c5fe120fc07844a500818c8f47
      https://github.com/llvm/llvm-project/commit/c7af9ae577bb04c5fe120fc07844a500818c8f47
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    A lld/test/wasm/build-id.test
    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 lld/wasm/Writer.cpp

  Log Message:
  -----------
  Reapply: [WebAssembly] Implement build-id feature

Implement the --build-id flag similarly to ELF, and generate a
build_id section according to the WebAssembly tool convention
specified in https://github.com/WebAssembly/tool-conventions/pull/183

The default style ("fast" aka "tree") hashes the contents of the
output and (unlike ELF) generates a v5 UUID based on the hash (using a
random namespace). It also supports generating a random v4 UUID, a
sha1 hash, and a user-specified string (as ELF does).

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

Fix MSVC build by std::copy on the underying buffer rather than
directly from std::array to llvm::MutableArrayRef




More information about the All-commits mailing list