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

Fix support for R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128 #1058

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Fix support for R_RISCV_SET_ULEB128 and R_RISCV_SUB_ULEB128 #1058

merged 1 commit into from
Jul 24, 2023

Conversation

andreas-schwab
Copy link
Contributor

Handle allocated sections, write the full value into the location and only
write the final value.

@rui314
Copy link
Owner

rui314 commented Jul 5, 2023

How did you verify this fix?

What was the reason you avoided writing an ULEB128 value for R_RISCV_SET_ULEB128?

@andreas-schwab
Copy link
Contributor Author

@andreas-schwab
Copy link
Contributor Author

You cannot write a full address into the location, if it only has enough
room for the difference.

@rui314
Copy link
Owner

rui314 commented Jul 5, 2023

I mean, is there any program that you found didn't work without this change?

@andreas-schwab
Copy link
Contributor Author

@andreas-schwab
Copy link
Contributor Author

andreas-schwab commented Jul 5, 2023

I was misled by the brokenness of overwrite_uleb. The difference will
work out right even without being able to write the full address.

@rui314
Copy link
Owner

rui314 commented Jul 5, 2023

LGTM

Can you read https://github.com/rui314/mold/blob/main/CONTRIBUTING.md and sign your commit?

Handle allocated sections and write the full value into the location.

Signed-off-by: Andreas Schwab <[email protected]>
@andreas-schwab
Copy link
Contributor Author

It is confusing that almost none of the commits are signed.

@rui314
Copy link
Owner

rui314 commented Jul 17, 2023

I don't need to sign the contributor agreement that I worded because "I" and "YOU" are the same person, but I want third party contributors to sign.

@andreas-schwab
Copy link
Contributor Author

Ping?

@rui314 rui314 merged commit 6e8a9df into rui314:main Jul 24, 2023
7 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.

2 participants