Skip to content

Artificially Terminate Function #2603

Answered by psifertex
endeav0r asked this question in General
Discussion options

You must be logged in to vote

So one answer is with an arch hook.

The other (easier) answer is to create syscall for that platform that defines the type and sets it as a no-return.

Create a file in ~/.binaryninja/types/platform/$plat-$arch.c that contains something like the following:

void sys_exit(int status) __noreturn __syscall(93);
void sys_exit_group(int status) __noreturn __syscall(94);

I think that should get you what you want?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fuzyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants