Skip to content

Fix the default binary format for most architectures to be ELF.#108

Merged
sunfishcode merged 3 commits intomainfrom
sunfishcode/default-targets
Jul 2, 2024
Merged

Fix the default binary format for most architectures to be ELF.#108
sunfishcode merged 3 commits intomainfrom
sunfishcode/default-targets

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
@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