x/arch/arm64: asm64.Decode() can not decode CASAL instruction #66189
Labels
arch-arm64
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.21.3 linux/arm64
Output of
go env
in your module/workspace:What did you do?
a demo:
Try to use the arm64asm.Decode method to parse the elf file, the code is as follows:
Use the objdump tool to output its assembly instructions, and the results are output to objdump.txt (left side of the picture)
Use
arm64asm.Decode()
to parse the elf compiled by the above demo, and the results are output to decode.txt (right side of the picture)What did you see happen?
asm64.Decode() can not decode CASAL instruction.
The possible reason is that there is no description of the CASAL instruction in table.go
What did you expect to see?
In this demo, the output of objdump and arm64asm.Decode should be the same.
The text was updated successfully, but these errors were encountered: