-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
--target bpfel-unknown-none generates LLVM bitcode instead of eBPF #135175
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-eBPFTarget: I heard you liked code execution so I put some code execution in your code executionTarget: I heard you liked code execution so I put some code execution in your code executionT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-eBPFTarget: I heard you liked code execution so I put some code execution in your code executionTarget: I heard you liked code execution so I put some code execution in your code executionT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
I built this code with
cargo build --target bpfel-unknown-none -Zbuild-std:I expected to see this happen: An BPF binary was produced of some kind (or compilation failed).
Instead, this happened: It produced LLVM bitcode! this was discovered via (frequent
lsomitted):This is a bug because we normally require that targets are capable of producing object code. This can be fixed by building the bpf-linker for this target, but I suspect it is mostly like the existing bitcode linker that we already ship for the purposes of the nvptx targets.
Meta
rustc --version --verbose: