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:
parent
994ea39760
commit
d2ed7c21ac
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue