diff options
author | 2020-08-31 23:16:21 +0200 | |
---|---|---|
committer | 2020-10-13 21:30:44 +0200 | |
commit | 10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103 (patch) | |
tree | ceb6fc008cfbcc430a4254464d0e3341c34796e1 /cortex-m-semihosting/check-blobs.sh | |
parent | f77d64a2d1505335e4a170d03a40993bb066fd02 (diff) | |
download | cortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.tar.gz cortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.tar.zst cortex-m-10b29d3a4fc43503c25fb2c7ffbeaad44c2fb103.zip |
Import semihosting crates as-is
Diffstat (limited to '')
-rwxr-xr-x | cortex-m-semihosting/check-blobs.sh | 21 |
1 files changed, 21 insertions, 0 deletions
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 |