Support building glibc for riscv32/riscv64 #20909
Merged
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.
NO_INITFINI
, though. I also am not including the.cfi_label
workaround because we're expecting to upgrade to LLVM 19 in this release cycle, which contains [MC] Support .cfi_label llvm/llvm-project#97922.riscv32-linux-gnuilp32
target triple toriscv32-linux-gnu
. This is consistent withriscv64-linux-gnu
. The old triple was weird for multiple reasons; see the commit message.ilp32
/lp64
references withilp32d
/lp64d
as the hard float ABIs are expected to be the most common on Linux systems by far. The other ABIs can come later (ideally after RFC/Proposal: Turning Zig target triples into quadruples #20690, or something like it).Closes #3340.
Closes #19107.