Document Existing Linker Emulation Strings#140
Open
lenary wants to merge 1 commit intoriscv-non-isa:mainfrom
Open
Document Existing Linker Emulation Strings#140lenary wants to merge 1 commit intoriscv-non-isa:mainfrom
lenary wants to merge 1 commit intoriscv-non-isa:mainfrom
Conversation
Linkers usually use emulation strings rather than target triples. This documents the existing emula I have included: - The little endian emulation strings: `elf32lriscv`/`elf64lriscv` (supported by GNU and Clang/LLD) - The big endian emulation strings: `elf32briscv`/`elf64briscv` (supported by GNU only at this time) I have not documented any emulation strings with ABI suffixes, as used by GNU, as Clang/LLD has taken a specific decision not to support these: https://reviews.llvm.org/D95755 If we decide more emulation strings are needed, they can come in a follow-up change.
Contributor
|
@lenary, are we introducing GNU-specific elements into the Toolchain Conventions by listing these emulation types? If linkers aren’t required to support them, what is the value in documenting them here? |
Contributor
Author
|
These aren't GNU Specific, as I understand. LLD does support them for naming the emulation (but LLD does not yet have RISC-V Big-endian support) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linkers usually use emulation strings rather than target triples. This documents the existing emula
I have included:
elf32lriscv/elf64lriscv(supported by GNU and Clang/LLD)elf32briscv/elf64briscv(supported by GNU only at this time)I have not documented any emulation strings with ABI suffixes, as used by GNU, as Clang/LLD has taken a specific decision not to support these: https://reviews.llvm.org/D95755
If we decide more emulation strings are needed, they can come in a follow-up change.