aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-27 15:59:39 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-27 15:59:39 +0200
commit11043a7e6295e656a39b5562d7db6d58c8bcad3f (patch)
tree4470ae1a5b334794ad36468138dc670ed4064851
parente5b9974886f452d6a0889842c82a5a2b69d4b941 (diff)
downloadcortex-m-11043a7e6295e656a39b5562d7db6d58c8bcad3f.tar.gz
cortex-m-11043a7e6295e656a39b5562d7db6d58c8bcad3f.tar.zst
cortex-m-11043a7e6295e656a39b5562d7db6d58c8bcad3f.zip
backport check-blobs fix from rust-embedded/cortex-m#110
-rwxr-xr-xcortex-m-rt/assemble.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/cortex-m-rt/assemble.sh b/cortex-m-rt/assemble.sh
index f9ec7d8..e59bb21 100755
--- a/cortex-m-rt/assemble.sh
+++ b/cortex-m-rt/assemble.sh
@@ -6,6 +6,9 @@ set -euxo pipefail
crate=cortex-m-rt
+# remove existing blobs because otherwise this will append object files to the old blobs
+rm -f bin/*.a
+
arm-none-eabi-as -march=armv6s-m asm.s -o bin/$crate.o
ar crs bin/thumbv6m-none-eabi.a bin/$crate.o