Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/nm: decide on symbol index presentation #38875
Note the trailing
Yeah, this was done in CL https://go-review.googlesource.com/c/go/+/229246 . The reason is that in the new object files, symbols are referenced by indices instead of by names. So, if you objdump an object file which imports the fmt package and call
Does this format cause any problem for you? Should we add a flag to switch it on/off? I'd also be happy to hear if you have a better suggestion of the format. Thanks!
It confused some tools I have that parse the output of
Although there would be some value in having a flag (default on or off? not sure.) Or maybe another column in the output for easier parsing (perhaps enabled by a flag)? Those would move the knowledge about how to unmangle from N tools--each possibly using different algorithms and thus getting it wrong in the future in different ways--to one tool.
An alternative, which I would like even better, since I would no longer have to exec