Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a document for build IDs #183

Merged
merged 2 commits into from
Mar 2, 2023
Merged

Add a document for build IDs #183

merged 2 commits into from
Mar 2, 2023

Conversation

dschuff
Copy link
Member

@dschuff dschuff commented Jun 1, 2022

Describe the build_id custom section and its use cases.

Describe the `build_id` custom section and its use cases.
@dschuff
Copy link
Member Author

dschuff commented Jun 1, 2022

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
Copy link

@bkotsopoulossc bkotsopoulossc left a comment

Choose a reason for hiding this comment

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

Wooh!

BuildId.md Outdated Show resolved Hide resolved
BuildId.md Show resolved Hide resolved
BuildId.md Outdated Show resolved Hide 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
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