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

Some additions to std.elf addressing #19830, plus some zld improvements #21573

Merged
merged 7 commits into from
Oct 3, 2024

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Oct 2, 2024

Closes #19830.

@alexrp alexrp requested a review from kubkon October 2, 2024 22:50
/// NVIDIA CUDA architecture
CUDA = 51,
/// AMD HSA Runtime
AMDGPU_HSA = 64,
Copy link
Contributor

@Rexicon226 Rexicon226 Oct 3, 2024

Choose a reason for hiding this comment

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

For OSABI values > 64, they become dependent on the machine header, and so can overlap. Could we maybe, move them to be decls with multiple having the same value?

Copy link
Member Author

Choose a reason for hiding this comment

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

The pattern we usually use in situations like this is to have the most common name be the proper enum tag and the uncommon ones be decls defined as that enum tag. That seems reasonable to do here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can agree to that :)

@kubkon kubkon enabled auto-merge October 3, 2024 08:22
@kubkon kubkon merged commit 69ce7f0 into ziglang:master Oct 3, 2024
10 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.

Standard library not exposing the type of elf in std.elf.Header
3 participants