[all-commits] [llvm/llvm-project] 41e314: [WebAssembly] Implement build-id feature

Derek Schuff via All-commits all-commits at lists.llvm.org
Thu Mar 2 14:30:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41e31466af6a7feab82742bb01af43f4f3ae4ede
      https://github.com/llvm/llvm-project/commit/41e31466af6a7feab82742bb01af43f4f3ae4ede
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2023-03-02 (Thu, 02 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:
  -----------
  [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




More information about the All-commits mailing list