hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/tools/head_check.sh
....@@ -31,8 +31,10 @@
3131 # level entry code (boot, interrupt vectors, etc) until r2 is set up. This
3232 # could cause the kernel to die in early boot.
3333
34
-# Turn this on if you want more debug output:
35
-# set -x
34
+# Allow for verbose output
35
+if [ "$V" = "1" ]; then
36
+ set -x
37
+fi
3638
3739 if [ $# -lt 2 ]; then
3840 echo "$0 [path to nm] [path to vmlinux]" 1>&2
....@@ -44,7 +46,7 @@
4446 vmlinux="$2"
4547
4648 # gcc-4.6-era toolchain make _stext an A (absolute) symbol rather than T
47
-$nm "$vmlinux" | grep -e " [TA] _stext$" -e " t start_first_256B$" -e " a text_start$" -e " t start_text$" -m4 > .tmp_symbols.txt
49
+$nm "$vmlinux" | grep -e " [TA] _stext$" -e " t start_first_256B$" -e " a text_start$" -e " t start_text$" > .tmp_symbols.txt
4850
4951
5052 vma=$(cat .tmp_symbols.txt | grep -e " [TA] _stext$" | cut -d' ' -f1)