1

I was working with hardware emulation on QEMU (bare metal) and I ran the command.

  1. arm-none-eabi-gdb test.elf
  2. qemu-system-arm -M versatilepb -m 128M -nographic -kernel test.bin

The .c files are different but in both cases simple code is run on QEMU. What is the difference between these two files and commands?

1

I found the answer for the .bin and .elf file difference on stack overflow itself.

Basically, bin file is purely, binary files with bits and bytes which go and locate at the particular address. Where as the elf file has lot more information such as symbol tables,debug information etc. Check this link for detailed explanation

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.