On Thu, 30 Sept 2021 at 07:17, abhijeet inamdar <abhijeetinamdar3...@gmail.com> wrote: > > But this very ELF file runs on the target(real hardware) perfectly. So how > different should it be to emulate?
Real hardware doesn't have a magic ELF file loader. The details of what a debug environment or whatever mechanism you're using to put the ELF file on the target or an emulator expect from an ELF file vary. QEMU wants you to provide a vector table. (I imagine that the mechanism you're using with the real hardware starts execution at the ELF entry point.) -- PMM