cmd/nm: don't work with WebAssembly binaries #51500
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
I'm trying to get the size of one WebAssembly file, using cmd/nm, as such:
I also tried:
GOOS=js GOARCH=wasm go tool nm -size wasm.wasm
.What did you expect to see?
Since Golang is able to build for WebAssembly, I expect that
nm
to read such file. I expect that same behavior of Windows executables, such asgo tool nm -size windows.exe
.What did you see instead?
Current, WebAssembly is "unrecognized", it returns:
The text was updated successfully, but these errors were encountered: