dump_linux 436 B

1234567891011121314151617
  1. #!/bin/sh -x
  2. # inside output root
  3. # create dir
  4. mkdir -p dump
  5. # grab execution dir
  6. EXEC_DIR="$(dirname "$(realpath "$0")")"
  7. # dump busybox
  8. "$EXEC_DIR"/objdump "-d" rootfs/bin/busybox dump/busybox.S
  9. "$EXEC_DIR"/filter_process_assembly dump/busybox.S dump/busybox.instr dump/busybox.csr
  10. # dump image
  11. "$EXEC_DIR"/objdump "-d" vmlinux dump/vmlinux.S
  12. "$EXEC_DIR"/filter_process_assembly dump/vmlinux.S dump/vmlinux.instr dump/vmlinux.csr