Skip to content

Relocation types get misinterpreted #45

Open
@ascpixi

Description

@ascpixi

With the latest binary release of XELFViewer (v0.05), some relocations get their type mistaken. For example, R_X86_64_64 is displayed as X86_64_32, and R_X86_64_PC32 is displayed as 386_PC32. This can be verified by invoking readelf --relocs <...> on the file in question, or by doing the bitwise arithmethic manually:

type = 0000002e00000001, displayed as X86_64_32 in XELFViewer
0x0000002e00000001 & 0xffffffff = 1
1 = R_AMD64_64 (R_X86_64_64)

screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions