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

rtld: fix relr #1170

Merged
merged 2 commits into from
Oct 17, 2024
Merged

rtld: fix relr #1170

merged 2 commits into from
Oct 17, 2024

Conversation

Qwinci
Copy link
Contributor

@Qwinci Qwinci commented Oct 17, 2024

Fix relr properly now and add a test, the previous fix was not correct. The first bit of a relr entry should be discarded in the bitmap case as it just tells that it's a bitmap and is not supposed to be used for the relocation calculation (though using it like that happened to work with the previous fix's changes as long as there was only one relr bitmap entry per address).

Fixes #1169.

@64 64 changed the title Fix relr rtld: fix relr Oct 17, 2024
tests/rtld/meson.build Outdated Show resolved Hide resolved
Copy link
Member

@Dennisbonke Dennisbonke left a comment

Choose a reason for hiding this comment

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

LGTM

@64 64 merged commit dcf6874 into managarm:master Oct 17, 2024
40 checks passed
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.

RELR is untested
4 participants