[fpc-pascal] Different Object Code formats

Peter Vreman peter at freepascal.org
Sat Jan 27 13:57:44 CET 2007


At 13:45 27-1-2007, you wrote:


>Op Fri, 26 Jan 2007, schreef Felipe Monteiro de Carvalho:
>
> > On 1/26/07, Peter Vreman <peter at freepascal.org> wrote:
> > > For Windows there is even an internal linker. If symbian uses something
> > > like PE coff you can maybe
> > > even use that one. It works for all Windows targets (Win32,Win64,WinCE)
> > > already.
> >
> > Does the internal linker support linking to .LIB files?
>
>No.

What is the .lib format? If it is an ar archive of COFF objects then 
it is supported.


>
> > The problem is that the executable is a standard win32-pe, but there
> > are some "gotchas" =) Like the entry point must be exported and called
> > _E32EXE .... and we must link together the symbian .lib files.

Those extra gotchas are normally easy to add. The entry point for 
example is something the compiler can generate and does not require 
changes in the linker.


Peter




More information about the fpc-pascal mailing list