Skip to content

[BOLT] Use new contents when emitting sections with relocations #80782

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

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

maksfb
Copy link
Contributor

@maksfb maksfb commented Feb 6, 2024

We can use BinarySection::updateContents() to change section contents. However, if we also add relocations for new contents, then the original data (i.e. not updated) is going to be used. Fix that. A follow-up diff will use the update interface and will include a test case.

We can use BinarySection::updateContents() to change section contents.
However, if we also add relocations for new contents, then the original
data (i.e. not updated) is going to be used. Fix that. A follow-up diff
will use the update interface and will include a test case.
@maksfb maksfb added the BOLT label Feb 6, 2024
@maksfb maksfb requested review from aaupov and rafaelauler February 6, 2024 02:04
Copy link
Contributor

@aaupov aaupov left a comment

Choose a reason for hiding this comment

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

This looks equivalent to https://reviews.llvm.org/D146640
cc @yota9

@maksfb maksfb merged commit 8075f0d into llvm:main Feb 6, 2024
@yota9
Copy link
Member

yota9 commented Feb 7, 2024

@aaupov absolutely, thanks

@maksfb maksfb deleted the gh-fix-section-with-relocs branch February 9, 2024 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants