From: *jeffdb AT netzone DOT nospam DOT com (Mikey) Subject: Re: what can link.exe do that cygwin32-ld can't ? 13 Jul 1997 13:46:05 -0700 Sender: mail AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33c7beb6.47428715.cygnus.gnu-win32@smtp.netzone.com> References: <199707031315 DOT PAA22297 DOT cygnus DOT gnu-win32 AT fubini DOT mchp DOT siemens DOT de> <199707040434 DOT AAA19691 AT tweedledumb DOT cygnus DOT com> Reply-To: *jeffdb AT netzone DOT nospam DOT com Original-To: ian AT cygnus DOT com, gnu-win32 AT cygnus DOT com In-Reply-To: <199707040434.AAA19691@tweedledumb.cygnus.com> X-Mailer: Forte Agent 1.01/32.397 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Original-Sender: owner-gnu-win32 AT cygnus DOT com Is this the fix? | | *** 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]) | | { | and if so, does this fix makeing .reloc dll's & exe's with B18? On Fri, 4 Jul 1997 00:34:11 -0400 (EDT), you wrote: >In cygnus.gnu-win32 you write: > >>In the FAQ, under the heading >>"Can I mix objects compiled with msvc++ and gcc? " > >>it is said: "The key seems to be using MS's LINK.EXE >>to do the linking instead of GNU ld." > >>Could somebody enlighten me why that is the case? It prevents me from using a cross >>compiler/linker. > >It's because the implementation of the PE format in the b18 release is >incorrect. PE appears to be like COFF, but, unfortunately, differs in >a key respect: in PE, symbol values are section relative, whereas in >COFF, symbol values are absolute addresses. > >I've corrected this in the development sources; they now generate >correct PE files. Unfortunately, this means that in the next cygwin >release, everybody will have to rebuild their .o and .a files. > >Ian >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".