ARM-ELF -> PE-COFF with objcopy
pps
i-love-spam@yandex.ru
Tue Apr 28 16:52:00 GMT 2009
Ian Lance Taylor wrote:
> Because the code required for an ELF shared library to function and the
> code required for a PE DLL to function are different. You need to have
> the right compiler. Trying to do the conversion after the compiler has
> already run is too late.
>
> Given your problem description, why are you trying to create a DLL at
> all? Why not just create an archive which can be linked directly into
> the executable?
>
> Also, RVCT definitely generates smaller code than current gcc, but I
> have not heard that it generates code that runs faster. Since you
> apparently only care about runtime performance, not code size, you
> should consider trying arm-pe-gcc on your code to see what the
> performance is. gcc is generally competitive with proprietary compilers
> on performance.
>
> Ian
>
I compiled my test program and with RVCT it's almost twice larger than
with MS compiler.
Initially, off course I wanted to create an arcive (static lib) and link
to it, but I was told that it's definetly won't work and I should try
converting executable. The problem is that archive contains ELF object
files and I need to convert them to COFF. Objcopy converts them, then I
can objdump converted files to see the symbols, HOWEVER, ms compiler
rejects them as corrupted - that's the problem.
More information about the Binutils
mailing list