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