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 the default binary format for most architectures to be ELF. #108

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

sunfishcode
Copy link
Member

Following the logic in LLVM, make the binary format for most targets be ELF instead of Unknown. To preserve round-tripping for Rust target names, this requires some special-casing in the formatting code, but this isn't new; a lot of targets require special cases to round-trip properly.

Following the [logic in LLVM], make the binary format for most targets
be ELF instead of Unknown. To preserve round-tripping for Rust target
names, this requires some special-casing in the formatting code, but
this isn't new; a lot of targets require special cases to round-trip
properly.

[logic in LLVM]: https://github.com/llvm/llvm-project/blob/d3e7c4ce7a3d7f08cea02cba8f34c590a349688b/llvm/lib/TargetParser/Triple.cpp#L877
@sunfishcode sunfishcode merged commit 3a1cc71 into main Jul 2, 2024
12 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/default-targets branch July 2, 2024 14:41
@sunfishcode
Copy link
Member Author

This is now released in target-lexicon 0.12.15.

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.

1 participant