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

Zero hint values in .idata$6 sections for GNU libs #3239

Closed
wants to merge 1 commit into from

Conversation

riverar
Copy link
Collaborator

@riverar riverar commented Sep 1, 2024

Fixes: #3237

In Binutils 2.43, a long-standing quirk related to the emission of the PE hint/name table (.idata$6) was reverted, causing the hints to now be emitted with numerically increasing values. This change was detected during our library workflow pass. Since the order of functions in the upstream metadata is not guaranteed and the new hints are not valid, we are now zeroing out the hints in a post-processing step to restore consistency.

@riverar
Copy link
Collaborator Author

riverar commented Sep 1, 2024

Alternatively, we could toss this PR and just re-generate new libs using the current bintools and bank on upstream metadata function order not changing. (I think if we move functions between namespaces in metadata, they will get emitted into the metadata tables in a slightly different order.)

@kennykerr
Copy link
Collaborator

Happy to take a one time update to gnu libs to bring them in line and avoid a bunch of code churn.

@riverar
Copy link
Collaborator Author

riverar commented Sep 2, 2024

Sure, let's give that a shot then.

@riverar riverar closed this Sep 2, 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.

Fix lib.yml workflow
2 participants