-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
riscv32imac-unknown-xous-elf: rust-lld gives offset is outside the section errors #103949
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.O-xousOS: A microkernel OS for privacy in computingOS: A microkernel OS for privacy in computingP-lowLow priorityLow priorityT-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.O-xousOS: A microkernel OS for privacy in computingOS: A microkernel OS for privacy in computingP-lowLow priorityLow priorityT-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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version it worked on
It most recently worked on: Rust 1.64.0
Version with regression
rustc --version --verbose:Description
Building crates for the
riscv32imac-unknown-xous-elftarget sometimes results in a link error. This began with Rust 1.65.0. For example:Background
We build a custom libstd for the
riscv32imac-unknown-xous-elftarget, which is a Tier-3 target. This repository is at https://github.com/betrusted-io/rust. We are working on preparing patches for upstream that do not add any external dependencies, but this work is taking time. As a result, we generally forward-port our patchset every six weeks once the stable build is released.When building packages for the Betrusted platform, our build system compiles around 27 packages. Many of these packages succeed, but with Rust 1.65.0 we have three packages fail.
This target does not have a linker script, and instead relies on the default one provided by
rust-lld.