This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MSVC linker


This is a copy of a mailing re: linking without LD for b17, perhaps it will
help you link with MSVC.  The patch fixes a format incompatibility between
addresses in GNU b17 (and b18?) objects and true Microsoft PE objects. 


- Tim Iverson
  iverson@lionheart.com


+----------------
| Date: Sun, 6 Jul 1997 18:09:44 -0400 (EDT)
| From: "Paul J. Metzger" <pjm@rbd.com>
| To: gnu-win32@cygnus.com
| Subject: MSVC linker
| 
| I've browsed through the mailing archives and all the documentation
| I could find, but still haven't been able to figure out how to get
| code compiled under the GNU Win32 environment to work with code 


+----------------
| From: Tim Iverson <iverson@cisco.com>
| Subject: Linking without ld
| To: gnu-win32@cygnus.com
| Date: Thu, 3 Apr 1997 17:47:24 -0800 (PST)
| 
| I've applied this patch and it does indeed allow one to link objects
| produced by GCC with a different linker than LD.  I used Phar-Lap's
| linker, but I suspect this fix would also be sufficient for others.
| 
| Thanks Sean!
| 
| 
| - Tim Iverson
|   iverson@cisco.com
| 
| 
| +----------------
| | From: sean@mcneil.com (Sean McNeil)
| | To: gnu-win32@cygnus.com, iverson@cisco.com
| | Subject: RE: Nobody in the world understands Gnu's 'ld'.
| | Date: Tue, 25 Mar 1997 21:59:46 -0800
| | 
| | Try the following:
| | 
| | *** gas/config/obj-coff.c~      Wed Dec 31 16:01:33 1969
| | --- gas/config/obj-coff.c       Sun Mar 23 14:20:52 1997
| | ***************
| | *** 3176,3183 ****
| | --- 3176,3185 ----
| |       {
| |         long size;
| | 
| | + #ifndef TE_PE
| |         segment_info[i].scnhdr.s_paddr = addr;
| |         segment_info[i].scnhdr.s_vaddr = addr;
| | + #endif
| | 
| |         if (segment_info[i].scnhdr.s_name[0])
| |         {
|
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]