File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ main() {
71
71
case $TARGET in
72
72
thumbv6m-none-eabi|thumbv7m-none-eabi)
73
73
# linking with GNU LD (not working now; needs Ctrl+a x to exit)
74
- # env RUSTFLAGS="-C linker=arm-none-eabi-ld" cargo run --target $TARGET --example qemu | grep "x = 42"
75
- # env RUSTFLAGS="-C linker=arm-none-eabi-ld" cargo run --target $TARGET --example qemu --release | grep "x = 42"
74
+ env RUSTFLAGS=" -C linker=arm-none-eabi-ld -C link-arg=-Tlink.x " cargo run --target $TARGET --example qemu | grep " x = 42"
75
+ env RUSTFLAGS=" -C linker=arm-none-eabi-ld -C link-arg=-Tlink.x " cargo run --target $TARGET --example qemu --release | grep " x = 42"
76
76
77
77
# linking with rustc's LLD
78
78
cargo run --target $TARGET --example qemu | grep " x = 42"
You can’t perform that action at this time.
0 commit comments