Skip to content

Address resolution for instructions #7

@SimonKagstrom

Description

@SimonKagstrom

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions