[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function name prefix
From: |
Ian Lance Taylor |
Subject: |
Re: function name prefix |
Date: |
17 Jun 2001 23:20:30 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Tim Klein <address@hidden> writes:
> 1) Generate the libraries for both Linux & Cygwin environments.
> 2) Translate the linux library to cygwin object/archive format.
>
> My choice would be the latter as I really don't want to be supporting two
> versions of the libraries. Is it possible do you think to convert the linux
> gcc format to cygwin object file format? This will require a knowledge of
> both the cygwin and linux object file formats as well as a knowledge of the
> ar(chiver) file format. If this is feasible can any one tell me where the
> file formats are documented - or do I need to go and reverse engineer the
> code.
Unfortunately, it is generally not possible to convert relocateable
object files from one format to another. This is because the
relocation information in one format generally can not be represented
in the other.
> It does, I guess, beg the question - why are they different in the first
> place . I thought they were both gcc - or have I missed something.
gcc generates the object file format appropriate to the target. For
Linux, this is ELF. For Windows, it is PE.
Ian