Registry Mirror
Skip to content

Conversation

@dschuff

@dschuff dschuff commented Jun 1, 2022

Copy link
Copy Markdown
Member

Describe the build_id custom section and its use cases.

Describe the `build_id` custom section and its use cases.
@dschuff

dschuff commented Jun 1, 2022

Copy link
Copy Markdown
Member Author

I believe this captures most of our discussion in #133.
An implementation in lld can be found at https://reviews.llvm.org/D107662

@dschuff dschuff mentioned this pull request Jun 1, 2022

@bkotsopoulossc bkotsopoulossc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wooh!

Comment thread BuildId.md Resolved
Comment thread BuildId.md Resolved
Comment thread BuildId.md Resolved
dschuff added a commit to llvm/llvm-project that referenced this pull request Mar 2, 2023
Implement the --build-id flag similarly to ELF, and generate a build_id
section according to the WebAssembly tool convention specified in
WebAssembly/tool-conventions#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
@dschuff
dschuff merged commit 9b80cd2 into main Mar 2, 2023
@dschuff
dschuff deleted the dschuff-patch-1 branch March 2, 2023 23:22
dschuff added a commit to llvm/llvm-project that referenced this pull request Mar 4, 2023
Implement the --build-id flag similarly to ELF, and generate a
build_id section according to the WebAssembly tool convention
specified in WebAssembly/tool-conventions#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
paleauraaaa pushed a commit to paleauraaaa/llvm-project that referenced this pull request Oct 7, 2026
Implement the --build-id flag similarly to ELF, and generate a build_id
section according to the WebAssembly tool convention specified in
WebAssembly/tool-conventions#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
paleauraaaa pushed a commit to paleauraaaa/llvm-project that referenced this pull request Oct 7, 2026
Implement the --build-id flag similarly to ELF, and generate a
build_id section according to the WebAssembly tool convention
specified in WebAssembly/tool-conventions#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants