cd docker
bash dockerize.sh
cd -
bash play.sh
后续步骤在容器内执行。
cd /workspace/chapter01
make
样例输出如下
root@cf9d0cd4ead9:/workspace/chapter01# make
aarch64-none-linux-gnu-as -a=hello.lst -g --gdwarf-2 -o hello.o hello.s
aarch64-none-linux-gnu-gcc -gdwarf -o hello.out -no-pie hello.o --static
qemu-aarch64 ./hello.out
hello, worldroot@cf9d0cd4ead9:/workspace/chapter01#
- GDB 调试过程的以下错误暂时可忽略
_start () at ../sysdeps/aarch64/start.S:46 46 ../sysdeps/aarch64/start.S: No such file or directory.