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

LibELF: Fix incorrect treatment of DT_REL&DT_RELA #24693

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

sleirsgoevy
Copy link
Contributor

In the current code, these are treated as if they were a bitmap. They are not, and (DT_REL & DT_RELA) is actually nonzero. This causes the linker to treat all sections as having addends, which is not correct.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Jul 11, 2024
@BuggieBot
Copy link
Member

Hello!

One or more of the commit messages in this PR do not match the SerenityOS code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

In the current code, these are treated as if they were a bitmap. They
are not, and (DT_REL & DT_RELA) is actually nonzero. This causes the
linker to treat all sections as having addends, which is not correct.
@sleirsgoevy sleirsgoevy changed the title LibELF: fix incorrect treatment of DT_REL&DT_RELA LibELF: Fix incorrect treatment of DT_REL&DT_RELA Jul 11, 2024
Copy link

stale bot commented Aug 3, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Aug 3, 2024
Copy link
Member

@timschumi timschumi left a comment

Choose a reason for hiding this comment

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

Nice catch!

@stale stale bot removed the stale label Aug 3, 2024
@timschumi timschumi merged commit f439f02 into SerenityOS:master Aug 3, 2024
12 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Aug 3, 2024
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

3 participants