From 10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 31 Aug 2020 23:16:21 +0200 Subject: Import semihosting crates as-is --- cortex-m-semihosting/check-blobs.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 cortex-m-semihosting/check-blobs.sh (limited to 'cortex-m-semihosting/check-blobs.sh') diff --git a/cortex-m-semihosting/check-blobs.sh b/cortex-m-semihosting/check-blobs.sh new file mode 100755 index 0000000..94fde42 --- /dev/null +++ b/cortex-m-semihosting/check-blobs.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Checks that the blobs are up to date with the committed assembly files + +set -euxo pipefail + +for lib in $(ls bin/*.a); do + filename=$(basename $lib) + arm-none-eabi-objdump -Cd $lib > bin/${filename%.a}.before +done + +./assemble.sh + +for lib in $(ls bin/*.a); do + filename=$(basename $lib) + arm-none-eabi-objdump -Cd $lib > bin/${filename%.a}.after +done + +for cksum in $(ls bin/*.after); do + diff -u $cksum ${cksum%.after}.before +done -- cgit v1.2.3