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

read/coff, write/coff: support some ARM relocations #428

Merged
merged 1 commit into from
Mar 21, 2022
Merged

read/coff, write/coff: support some ARM relocations #428

merged 1 commit into from
Mar 21, 2022

Conversation

carey
Copy link
Contributor

@carey carey commented Mar 19, 2022

This change adds support for reading and writing some COFF relocations for ARM and ARM64, based on their descriptions at https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#coff-relocations-object-only.

I've implemented this mainly to help me work with resources in ARM64 cross-compilation builds, which use IMAGE_REL_ARM64_ADDR32NB. I've tested this manually by comparing against the output of llvm-windres and cvtres.

Copy link
Contributor

@philipc philipc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good, just needs a rustfmt fix.

@carey
Copy link
Contributor Author

carey commented Mar 21, 2022

That should be good now.

@philipc philipc merged commit 389c43a into gimli-rs:master Mar 21, 2022
@carey
Copy link
Contributor Author

carey commented Mar 21, 2022

Thank you!

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.

None yet

2 participants