Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relocation types get misinterpreted #45

Open
ascpixi opened this issue Sep 17, 2024 · 1 comment
Open

Relocation types get misinterpreted #45

ascpixi opened this issue Sep 17, 2024 · 1 comment

Comments

@ascpixi
Copy link

ascpixi commented Sep 17, 2024

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

@horsicq
Copy link
Owner

horsicq commented Sep 17, 2024

Thanks for the bugreport! I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants