-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Objdump resolves addresses used in instructions when possible, so that PC-relative jumps etc display the target address. I think this would be good to have for libopdis as well.
There is a print_address callback in the struct disassemble_info structure in libopcodes, which objdump uses for this purpose. I'm not sure if this can be implemented directly in libopdis, or if the same functionality would have to be exported outwards. At least objdump looks up symbols etc which I guess should be kept outside of libopdis.
I guess in most cases, it would be fine to simply resolve the PC-relative addresses transparently, perhaps as a setter-function in opdis.
Metadata
Metadata
Assignees
Labels
No labels