8000 qnx: Fix a couple quirks by KazWolfe · Pull Request #1290 · frida/frida-core · GitHub
[go: up one dir, main page]

Skip to content

qnx: Fix a couple quirks - #1290

Merged
oleavr merged 2 commits into
frida:mainfrom
KazWolfe:qnx-fixes
Nov 9, 2026
Merged

oleavr merged 2 commits into
frida:mainfrom
KazWolfe:qnx-fixes

Conversation

@KazWolfe
@KazWolfe KazWolfe commented Nov 7, 2026
Copy link
Copy Markdown
Contributor

Ref frida/frida#3818. Bundled PR for convenience; let me know if you'd rather they be split out. Comments/explanations are in the PR. Will require frida/frida-gum/#1211 to be merged first for exit-monitor changes to apply.

On that note, I'm not honestly particularly happy with this way of fixing exit-monitor; if you have any better ideas, I'd be very open to using that instead.

LLMs were used in the creation of this PR, but code and logic were reviewed and tested on both an x86 VM and a physical ARM device.

The writer assumed the code would run where it was generated, so calls
to libc functions within BL range of the local buffer were encoded with
offsets that are wrong in the target process.
On QNX 6.5 ARM, libc's _exit() is a lone BL into __exit(), and the
Interceptor cannot tell where it ends. Look up the symbol sizes and pass
them as redirect_space_hint so the redirect stays within the function.
@oleavr
oleavr merged commit 1b169de into frida:main Nov 9, 2026
34 of 39 checks passed
@oleavr
oleavr commented Nov 9, 2026
Copy link
Copy Markdown
Member

Thanks! 🙌

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.

2 participants

0