XELFViewer icon indicating copy to clipboard operation
XELFViewer copied to clipboard

Relocation types get misinterpreted

Open ascpixi opened this issue 1 year ago • 2 comments

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

ascpixi avatar Sep 17 '24 22:09 ascpixi

Thanks for the bugreport! I will take a look.

horsicq avatar Sep 17 '24 23:09 horsicq

@ascpixi bump could you please attach your file under question if possible I tried out some ELF binaries and did not find any issues after validation...

greenozon avatar Jun 07 '25 11:06 greenozon