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

i#3544: RV64: Support RISC-V ELF in module_get_platform() #7247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ziyao233
Copy link
Member

@ziyao233 ziyao233 commented Feb 4, 2025

Differing from x86 and ARM, 32-bit and 64-bit variants of RISC-V share the same e_machine constant EM_RISCV, thus additional check against e_ident is required to obtain the bitwidth.

This fixes test linux.execve-null on riscv64, where DynamoRIO wrongly assumes an execve call to a RISC-V ELF will fail, thus loses control of the child process.

Issue: #3544

Differing from x86 and ARM, 32-bit and 64-bit variants of RISC-V share
the same e_machine constant EM_RISCV, thus additional check against
e_ident is required to obtain the bitwidth.

This fixes test linux.execve-null on riscv64, where DynamoRIO wrongly
assumes an execve call to a RISC-V ELF will fail, thus loses control of
the child process.

Issue: DynamoRIO#3544
@ziyao233 ziyao233 requested a review from ksco February 4, 2025 19:06
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

Successfully merging this pull request may close these issues.

1 participant