Skip to content

Allow copying data pointed to by relocations in the data view #387

Closed

Description

@LagoLunatic

Currently the data view only allows you to copy the name and virtual address of symbols pointed to relocations. This means that strings cannot be copied if the relocation is inside data, even though objdiff allows copying strings pointed to by relocations in code.

Image Image

Activity

  1. LagoLunatic commented on Aug 4, 2026

    @LagoLunatic
    CollaboratorAuthor

    Currently the code relies on having an instruction to guess the data type by the load or store instruction:

    let opcode = powerpc::Opcode::from(resolved.ins_ref.opcode);
    if let Some(ty) = flow_analysis::guess_data_type_from_load_store_inst_op(opcode) {
    // Numeric type.
    return Some(ty);
    }

    So for the data view, it won't be possible to guess most data types, but strings specifically should still be possible since they don't rely on having an instruction. But the code will need to be refactored a bit so that the instruction is optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions