]> git.lizzy.rs Git - rust.git/commit
Auto merge of #79608 - alessandrod:bpf, r=nagisa
authorbors <bors@rust-lang.org>
Sun, 6 Jun 2021 01:02:32 +0000 (01:02 +0000)
committerbors <bors@rust-lang.org>
Sun, 6 Jun 2021 01:02:32 +0000 (01:02 +0000)
commitf434217aab9abf583ebc928b97ab4116921137aa
treee4e37f7d8d6133067c6a64e732461de3441687f9
parent6c2dd251bbff03c7a3092d43fb5b637eca0810e3
parent0adb9331ffab305feeb07fb57b1f189e35cb5adf
Auto merge of #79608 - alessandrod:bpf, r=nagisa

BPF target support

This adds `bpfel-unknown-none` and `bpfeb-unknown-none`, two new no_std targets that generate little and big endian BPF. The approach taken is very similar to the cuda target, where `TargetOptions::obj_is_bitcode` is enabled and code generation is done by the linker.

I added the targets to `dist-various-2`. There are [some tests](https://github.com/alessandrod/bpf-linker/tree/main/tests/assembly) in bpf-linker and I'm planning to add more. Those are currently not ran as part of rust CI.
compiler/rustc_codegen_ssa/src/back/link.rs
compiler/rustc_feature/src/active.rs
compiler/rustc_target/src/spec/mod.rs
compiler/rustc_typeck/src/collect.rs
config.toml.example
src/bootstrap/compile.rs
src/bootstrap/native.rs
src/bootstrap/util.rs
src/doc/rustc/src/platform-support.md