I have been following a tutorial online and have built a 512-Byte bootloader saved as boot.bin.
I also have a second stage bootloader compiled and saved as 2ndstage.bin.
My bootloader is written such that the second stage doesn't have to be located directly after the first stage in memory, as it searches for it by file name.
How would I, in Linux, combine both bin files into some sort of file (maybe an image) that I can use with QEMU in order to run my bootloader?