ARM-ELF -> PE-COFF with objcopy

Vincent R. forumer@smartmobili.com
Thu May 7 09:38:00 GMT 2009


On Thu, 07 May 2009 02:58:16 -0400, pps <i-love-spam@yandex.ru> wrote:
> ....
> 
> Just a little update.
> After trying and failing all possible combinations and ideas I decided 
> to abandon my idea of converting elf to coff. Right now I'm working on 
> some other project and as part of the project I need to compile some 
> code with cegcc. I just found out that no matter what and how I build 
> anything with cegcc it won't even load on my phone 
> (ERROR_BAD_EXE_FORMAT). Exactly the same binary works on emulator just 
> fine, but doesn't work on the device and produces data abort if I try to 
> LoadLibrary("dll name"). I tried a simple HelloWorld app - same problem. 
> So, it's very possible that while I tried to convert elf->coff I had a 
> working coff object, but the binary built at the end would never work 
> because I used real device for testing. I'll post to cegcc mailing list 
> to see if the problem was resolved.
> 
> Thanks

If you are testing on a Windows Mobile 6.1 cegcc binaries are not working
because
PE loader is very strict on this platform.
Please give more information on the platform you are testing.

Thanks



More information about the Binutils mailing list