This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
ld COFF processing
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: ld COFF processing
- From: "Serban Simu" <serban at digitalfountain dot com>
- Date: Fri, 1 Sep 2000 17:36:05 -0700
I'm trying to use ld on a Windows NT object file produced with cl. The
problems that I have are related to the fact that ld removes some of the
sections from the output file, which causes further link to fail.
Here is a simple example:
$ cl /c s.cpp (produces s.obj)
$ ld -o s.a -r s.obj (produces s.a)
Linking against s.a, using Microsoft's 'cl' works in most of the simple
cases, although the ld operation removed some of the sections. I have also
tried the --oformat pe-i386 and -m i386pe with the same effect. In case
s.cpp uses exceptions, 'cl' creates a special section .xdata$x and a .text$x
which are not put in the output file.
My question is, to what extent is the pe-i386 format compatible with the
Microsoft format?
Thank you for your help with that!
Serban
-----------
Versions used:
cl:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
ld:
GNU ld version 19990818 (with BFD 19990818)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com