This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM-ELF -> PE-COFF with objcopy
- From: pps <i-love-spam at yandex dot ru>
- To: binutils at sourceware dot org
- Date: Thu, 07 May 2009 02:58:16 -0400
- Subject: Re: ARM-ELF -> PE-COFF with objcopy
- References: <49F57EBA.2020003@yandex.ru> <49F724A9.6000203@yandex.ru> <49F72C1F.2080008@gmail.com> <200904281828.57226.pedro@codesourcery.com> <20090428173335.GA24858@caradoc.them.org> <49F77300.1060809@gmail.com>
....
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