cmd/objdump: confusing disassembly of arm64 BL instruction #53117
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?This also happens in bazel with go version 1.17.6.
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran
go tool objdump
on a binary.What did you expect to see?
There are many lines that look like:
However, the offset displayed should be -1653152. Objdump appears to be incorrectly parsing the offset from the instruction
0x97f9b198
.What did you see instead?
-413288. This is because the 2 trailing 0 bits described by the arm documentation appear not to be accounted for.
The text was updated successfully, but these errors were encountered: