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
How to add copyright notices to WASM files? #14148
Comments
Yes, you could add a custom section. I'm not sure what the best tool to inject a custom section is ... perhaps its already possible with |
Custom section can appear anywhere in the wasm file and WMs will ignore then. |
Good to know but can't find a tool to inject custom section. An example with llvm-objcopy would be appreciated. |
Yes,
You can put your content into a file:
And append it to your binary: And then see it:
And also look inside it:
|
Thanks @dschuff .. pretty awesome how that just works. |
@sbc100 Should I close this or do you have any plans to add this to Emscripten itself? |
No please close. It would be nice to document how to do this somewhere, but I'm not sure emscripten is the right place for since it would apply to any clang-based WebAssembly toolchain. |
Is there a safe way to add copyright notices to WASM files?
Preferably, I'd like to add it to top of WASM file.
The text was updated successfully, but these errors were encountered: