Need to convert OMF file to ELF file format

461 Views Asked by At

I'm using a Keil C51 tool to compile my firmware which outputs a .obj file (I'm writing firmware for an 8051). However, I'm looking towards using another tool to debug the firmware which only takes in elf or dwarf files as an input. So I was wondering if there are any tools out there that can convert my .obj file to elf or dwarf file?

I did some digging on the Keil website (here) and according to it, the obj file that is generated is OMF-51 (not sure why 51 is mentioned in the format name).

With this information I tried using a tool that I found on Github called objconv (here) which claimed to be able to convert OMF to ELF but I ran into an error when I tried it.

I hope someone can suggest some simpler ways to solve my problem or any other tool that is out there.

Edit : I tried using objcopy and looks like OMF-51 is not a supported format. Please correct me if I'm wrong.

0

There are 0 best solutions below