[PATCH v1 0/2] RISC-V: enable rust
Trevor Gross
tmgross at umich.edu
Tue Feb 13 19:14:14 PST 2024
On Tue, Feb 13, 2024 at 3:09 PM Ramon de C Valle <rcvalle at google.com> wrote:
>
> On Mon, Feb 12, 2024 at 12:36 PM Sami Tolvanen <samitolvanen at google.com> wrote:
> >
> > On Mon, Feb 12, 2024 at 11:04 AM Ramon de C Valle <rcvalle at google.com> wrote:
> > >
> > > Sorry for the late reply. Sami might be the best person to answer
> > > this, but KCFI (not CFI) tests are lowered by passes that are
> > > architecture specific (see https://reviews.llvm.org/D119296), so we'd
> > > need to add support for RISC-V. There is no additional work required
> > > in the Rust compiler besides enabling it for the new target.
> >
> > LLVM 17 added KCFI support for RISC-V. Sounds like it's just a
> > question of whether rustc uses a new enough version of LLVM then?
>
> rustc is using LLVM 17 since
> https://github.com/rust-lang/rust/pull/114048, so I guess I can enable
> it for RISC-V targets in
> https://github.com/rust-lang/rust/tree/master/compiler/rustc_target/src/spec/targets,
> and the Linux kernel will get it on the next compiler update?
18 as of a few hours ago :) https://github.com/rust-lang/rust/pull/120055
Just for an idea of timing, anything merged this month will be in 1.78
on 2024-05-02.
More information about the linux-riscv
mailing list