XELFViewer
XELFViewer copied to clipboard
Relocation types get misinterpreted
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)
Thanks for the bugreport! I will take a look.
@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...