delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <3.0.6.32.20000420011702.00a95740@ics.u-strasbg.fr> |
X-Sender: | muller AT ics DOT u-strasbg DOT fr |
X-Mailer: | QUALCOMM Windows Eudora Light Version 3.0.6 (32) |
Date: | Thu, 20 Apr 2000 01:17:02 +0200 |
To: | cygwin AT sourceware DOT cygnus DOT com, c_berry AT vertex DOT isc-net DOT upenn DOT edu |
From: | muller AT cerbere DOT u-strasbg DOT fr |
Subject: | Re: Linking MSVC++ and Cygwin libraries: relocation problems |
In-Reply-To: | <20000419144332.A3741@vertex.isc-net.upenn.edu> |
Mime-Version: | 1.0 |
At 14:43 19/04/00 -0400, you wrote: >Hi, > >I'm trying to link MSVC++ objects with gcc objects. In order to resolve >the system calls in my gcc code, I need to bring in Cygwin's libc and >libcygwin. > >The Cygwin FAQ indicates that this is possible, but I'm getting relocation >warnings using Microsoft's linker. > >Has anyone ever done this successfully? > >---------------------------------------------------------------------------- > link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO \ > -entry:_DllMainCRTStartup AT 12 -dll -ignore:4078 -subsystem:native,4.0 \ > -def:test.def -out:test.dll \ > test.obj test.res > msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib \ > mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib \ > winspool.lib comctl32.lib netapi32.lib \ > test_gcc_obj.o libc.a libcygwin.a > > Creating library test.lib and object test.exp > >LINK : warning LNK4092: shared section ".stab" contains relocations; > image may not run correctly I once wrote about this problem : if the DLL is not loaded at its default address the .reloc section is by default before the .stab section but it is only inserted in the second call to cygwin ld ! This causes wrong offsets for the stabs relocation which typically can be inside the .reloc section itself !! I didn't get any answer at that time. Apparently Microsoft linker knows about this potential problem and gives a warning out ! -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |