make_symbol_table.sh 273 B

1234567
  1. #!/bin/sh
  2. objdump -t ./build/kernel.out | dd of=./build/dump.txt
  3. awk '($1 ~ /[0-9]/) && ($4 != "*ABS*") && ($4 != ".text.bootsect") && ($3 != ".text.bootsect") && ($4 != ".magicnumber") {print $1 " " $NF}' ./build/dump.txt | dd of=./build/kernel.sym
  4. rm ./build/dump.txt