From 7595eef8a6e13f7bb2cae561823d83e40cef5d54 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sat, 21 May 2016 23:36:54 +0200 Subject: [PATCH] Add tool for checking lwlink map files Lists empty holes and overlaps in map files generated by lwlink (from LWTOOLS). Kernel/tools/lw-checkmap Kernel/fuzix.map Signed-off-by: Tormod Volden --- Kernel/tools/lw-checkmap | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 Kernel/tools/lw-checkmap diff --git a/Kernel/tools/lw-checkmap b/Kernel/tools/lw-checkmap new file mode 100755 index 00000000..f98a5521 --- /dev/null +++ b/Kernel/tools/lw-checkmap @@ -0,0 +1,8 @@ +: +# Simple check of map file generated by lwlink (LWTOOLS) +grep ^Section "$1" | sort -k5 | awk '{ + st=strtonum("0x"$6); + if (enst) {printf "overlap at 0x%x-0x%x!\n",st,en}; + en=st+strtonum("0x"$8); +}' -- 2.34.1