gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > objcopy - "File Format not recognized"

#37999 - torix - Sun Mar 20, 2005 3:09 am

Hi, I'm a newbie! :D

I was reading some tutorials about making a basic GBA program, and most of them tell me to use this command:

objcopy -O binary prog.elf prog.gba

I managed to find this objcopy program, but everytime I use this command, I get the error "File Format not recognized". I compiled a c program using gcc, before running this command. I tried on Windows, Linux, and Mac OS X, and got the same error all 3 times.

Does anyone know a way to fix this, or a better way to compile it? Thanks.

#38000 - garlic - Sun Mar 20, 2005 4:10 am

You managed to find objcopy? It should've come in the development package you downloaded. If you used one made for another platform, thats probably why.

Maybe I just misread it.

#38003 - tepples - Sun Mar 20, 2005 5:37 am

For one thing, if you're using arm-elf-gcc, you should be using arm-elf-objcopy.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#38020 - torix - Sun Mar 20, 2005 2:57 pm

tepples wrote:
For one thing, if you're using arm-elf-gcc, you should be using arm-elf-objcopy.


Thank you very much. I got it working... :D