Use arm-none-eabi-objcopy instead of llvm-objcopy #95
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "atse:workaround-llvm-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since LLVM v15, llvm-objcopy seems to produce broken (misaligned?) binaries, which when combined with some difficult to debug timing issues caused by the calibrate_dac_feedback routine, would cause the independent watchdog to kick in, and bootloop the Thermostat.
As NixOS 23.11 ships LLVM v16, upgrading to it breaks builds. Using rust-objcopy from cargo-binutils does not help either since the pinned version of Rust uses LLVM v15.
arm-none-eabi-objcopy doesn't have this problem, so use it instead.
See https://github.com/llvm/llvm-project/issues/58407 and https://github.com/rust-lang/rust/issues/102983.
Well, good that you found the source of that problem, but installing an entire GCC toolchain sounds rather heavy-handed and bloated.
Maybe changing the linker file would fix it. And either way I think there are more important issues than updating rustc/llvm right now.
This seems to be irrelevant now with LLVM v17 in NixOS 24.05, closing.
Pull request closed