Skip to content

RISC-V: Special handling for 0000#7998

Open
fuzyll wants to merge 1 commit intodevfrom
test_riscv_0
Open

RISC-V: Special handling for 0000#7998
fuzyll wants to merge 1 commit intodevfrom
test_riscv_0

Conversation

@fuzyll
Copy link
Contributor

@fuzyll fuzyll commented Mar 7, 2026

Some compilers will stick 0000 (an invalid instruction) after jumps or calls in a noreturn function, which we lifted as an invalid instruction. If our analysis didn't catch that the function is noreturn, it would trigger guided analysis mode for these functions due to the invalid instruction. This is a workaround that we've applied to x86 and aarch64 (Vector35/arch-arm64@f40a735) as well.

Some compilers will stick 0000 (an invalid instruction) after jumps or
calls in a noreturn function, which we lifted as an invalid instruction.
If our analysis didn't catch that the function is noreturn, it would
trigger guided analysis mode for these functions due to the invalid
instruction. This is a workaround that we've applied to x86 and aarch64
as well.
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