Skip to content

ARM support#94

Merged
mazong1123 merged 4 commits intomicrosoft:mainfrom
Feiryn:feature/arm
Aug 4, 2025
Merged

ARM support#94
mazong1123 merged 4 commits intomicrosoft:mainfrom
Feiryn:feature/arm

Conversation

@Feiryn
Copy link
Contributor

@Feiryn Feiryn commented Jul 31, 2025

I added ARM support for both ARM and Thumb modes.

The only part I'm not 100% sure of is the patch size.
I don't really know if 12 bytes is too large and can overwrite code outside of the patched function in some really specific cases, like a really small function that precedes the target function.

@Feiryn

This comment was marked as off-topic.

@mazong1123
Copy link
Collaborator

mazong1123 commented Jul 31, 2025

@Feiryn thanks for adding the ARM support! For 12 bytes patching size that is an issue should be handled by a sanitizing check to avoid undefined behavior. But for now since amd64 and aarch64 both have the same issue, I would not try to solve it in this PR. I have created an issue to track it: #95

I'll start to review the change soon. Probably next week. Thanks for the contribution!

@mazong1123 mazong1123 merged commit c731790 into microsoft:main Aug 4, 2025
12 checks passed
@mazong1123
Copy link
Collaborator

LGTM. @Feiryn thanks for making the support for ARM!

@Feiryn
Copy link
Contributor Author

Feiryn commented Aug 21, 2025

Hi @mazong1123, do you plan to release the new features soon?

@mazong1123
Copy link
Collaborator

Hi @mazong1123, do you plan to release the new features soon?

Hi, yes next week a new release will be shipped. The ARM support will be included.

@mazong1123
Copy link
Collaborator

mazong1123 commented Aug 26, 2025

@Feiryn I have drafted a beta release https://github.com/microsoft/injectorppforrust/releases/tag/v0.5.0-beta.1. The official release still needs quite some time for preparation. Hope this can unblock you.

[dev-dependencies]
injectorpp = { git = "https://github.com/microsoft/injectorppforrust.git", tag = "v0.5.0-beta.1" }

@mazong1123 mazong1123 mentioned this pull request Mar 15, 2026
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