fix: 🐛 Fix 1/2 for objcopy unaligned sections bug

Due to a bug in llvm-objcopy sections
must be explicitly aligned, see
https://github.com/llvm/llvm-project/issues/58407
and
https://github.com/rust-lang/rust/issues/102983

This fix just replaces rust-objcopy with a GNU
binutils counterpart from `brew install
aarch64-elf-binutils`. Next commit will do a
less intrusive fix.
This commit is contained in:
Berkus Decker 2023-07-26 02:39:21 +03:00 committed by Berkus Decker
parent 994ea39760
commit d2ed7c21ac
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ PLATFORM_TARGET="--target=${TARGET_JSON} --features=${TARGET_FEATURES}"
DEVICE_FEATURES = "noserial"
QEMU_FEATURES = "qemu,rpi3"
OBJCOPY = "rust-objcopy" # Part of `cargo objcopy` in cargo-binutils
OBJCOPY = "/opt/homebrew/Cellar/aarch64-elf-binutils/2.40/bin/aarch64-elf-objcopy" # Part of `cargo objcopy` in cargo-binutils
OBJCOPY_PARAMS = "--strip-all -O binary"
NM = "rust-nm" # Part of `cargo nm` in cargo-binutils