Inspiration: https://wiki.osdev.org/QEMU_AArch64_Virt_Bare_Bones
$ aarch64-none-elf-as boot.s -o boot.o
$ aarch64-none-elf-gcc -ffreestanding -c kernel.c -o kernel.o
$ aarch64-none-elf-ld -nostdlib -Tlinker.ld boot.o kernel.o -o kernel.elf
$ qemu-system-aarch64 -machine virt -cpu cortex-a57 -kernel kernel.elf -nographic
Hello world!