<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [fpc-pascal]GO32V2 EXE architecture...</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Oh, that's not what I mean exactly...</FONT>
</P>
<P><FONT SIZE=2>That DXEGEN cannot convert .o file to .dxe because it doesn't understands these symbols, I want to find way how to remove them (or do anything else) so DXEGEN can successfully convert .o file...</FONT></P>
<P><FONT SIZE=2>Regards, Pavel Kanzelsberger</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: marcov@stack.nl [<A HREF="mailto:marcov@stack.nl">mailto:marcov@stack.nl</A>] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, July 17, 2001 12:30 PM</FONT>
<BR><FONT SIZE=2>To: fpc-pascal@deadlock.et.tudelft.nl</FONT>
<BR><FONT SIZE=2>Subject: Re: [fpc-pascal]GO32V2 EXE architecture...</FONT>
</P>
<BR>
<P><FONT SIZE=2>> Well seems that i'll keep mailing here :-))</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I tried DXEGEN and it fails due to unrecognized symbols (which are FPC</FONT>
<BR><FONT SIZE=2>> specific) in .o file...</FONT>
<BR><FONT SIZE=2>> Is there any way how to remove them without editing .sw file?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> C:\DJGPP>dxegen lib.dxe _ADD lib.o</FONT>
<BR><FONT SIZE=2>> ld -X -S -r -o dxe__tmp.o -Lc:/djgpp/lib lib.o -T dxe.ld</FONT>
<BR><FONT SIZE=2>> Error: object contains unresolved external symbols (FPC_STACKCHECK)</FONT>
<BR><FONT SIZE=2>> Error: object contains unresolved external symbols (INIT$$SYSTEM)</FONT>
<BR><FONT SIZE=2>> Error: object contains unresolved external symbols </FONT>
<BR><FONT SIZE=2>> (FPC_INITIALIZEUNITS)</FONT>
<BR><FONT SIZE=2>> Error: object contains unresolved external symbols (FPC_DO_EXIT)</FONT>
</P>
<P><FONT SIZE=2>I think you could simply try to create an empty assembler file that defines those symbols for that, assemble</FONT>
</P>
<P><FONT SIZE=2>Something like</FONT>
</P>
<P><FONT SIZE=2>.file "dummydxe.as"</FONT>
</P>
<P><FONT SIZE=2>.text</FONT>
<BR><FONT SIZE=2> .balign 16</FONT>
<BR><FONT SIZE=2>.globl FPC_STACKCHECK :</FONT>
<BR> <FONT SIZE=2> ret</FONT>
<BR><FONT SIZE=2> .balign 16</FONT>
</P>
<P><FONT SIZE=2>.globl INIT$$SYSTEM :</FONT>
<BR> <FONT SIZE=2> ret</FONT>
<BR><FONT SIZE=2> .balign 16</FONT>
<BR><FONT SIZE=2>.globl FPC_INITIALIZEUNITS :</FONT>
<BR> <FONT SIZE=2> ret</FONT>
<BR><FONT SIZE=2> .balign 16</FONT>
<BR><FONT SIZE=2>.globl FPC_DO_EXIT:</FONT>
<BR><FONT SIZE=2> ret</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>fpc-pascal maillist - fpc-pascal@lists.freepascal.org <A HREF="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" TARGET="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A></FONT>
</P>
</BODY>
</HTML>