This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM-ELF -> PE-COFF with objcopy
- From: "Vincent R." <forumer at smartmobili dot com>
- To: pps <i-love-spam at yandex dot ru>
- Cc: <binutils at sourceware dot org>
- Date: Thu, 07 May 2009 11:38:39 +0200
- 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> <4A028688.1010703@yandex.ru>
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