From 19a766a34548dcf45050375ce5dfe400c68d929f Mon Sep 17 00:00:00 2001 From: Lokathor Date: Wed, 14 Nov 2018 19:55:03 -0700 Subject: [PATCH] crt0.o should live in the target directory now --- build.bat | 3 ++- linker.ld | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index 739d3f8..ed1f9ab 100644 --- a/build.bat +++ b/build.bat @@ -1,6 +1,7 @@ @rem Build the crt0 file before we begin -arm-none-eabi-as crt0.s -o crt0.o +@if not exist ".\target" mkdir target +arm-none-eabi-as crt0.s -o target/crt0.o @rem Build all examples, both debug and release cargo xbuild --examples --target thumbv4-none-agb.json diff --git a/linker.ld b/linker.ld index 60ca1f5..471cb0f 100644 --- a/linker.ld +++ b/linker.ld @@ -8,7 +8,7 @@ MEMORY { SECTIONS { .text : { - KEEP(crt0.o(.text)); + KEEP(target/crt0.o(.text)); *(.text .text.*); . = ALIGN(4); } >rom = 0xff