The RISC-V psABI [1] defines them similarly to AArch64.
[1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#mapping-symbol
Depends on D153260
Differential D153277
[BOLT][RISCV] Recognize mapping symbols jobnoorman on Jun 19 2023, 7:39 AM. Authored by
Details The RISC-V psABI [1] defines them similarly to AArch64. [1] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#mapping-symbol Depends on D153260
Diff Detail
Event TimelineComment Actions Ugh, this is caused by the pre-merge checks using the system's clang (-DBOLT_CLANG_EXE=/usr/bin/clang is passed to cmake). This patch depends on a change in the RISC-V MC layer (D153260) so won't work with an old clang. I'm not quite sure how to solve this, other than updating the pre-merge checks to build clang itself. Would this be an option? Note that this isn't the first time I had to make MC changes for BOLT RISC-V support and I assume it won't be the last so I'm a bit afraid this issue might come up again in the future. Comment Actions Thanks for checking. Yes, it's an inconvenience that we need to keep in mind. It's a choice not to overburden the pre-merge builder with clang and lld builds that are needed for tests only. LG in general, but let's wait until the dependencies are landed.
Comment Actions Use llvm-mc+lld instead of clang for the tests. This patch relies on a recent MC-layer change but the pre-merge check bots use
|
This won't handle the $x<isa> and $x<isa>.<uniquifier> symbols present for RISC-V but not AArch64