delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/23/16:28:53

From: ksr AT lp DOT nm DOT fujitsu DOT co DOT jp (TANAKA Keishiro)
Subject: Re: multithread safe program
23 Dec 1997 16:28:53 -0800 :
Message-ID: <199712240013.JAA15407.cygnus.gnu-win32@kumando.lp.nm.fujitsu.co.jp>
References: ksr AT lp DOT nm DOT fujitsu DOT co DOT jp (TANAKA Keishiro)
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi.
Thanks replying to my mail > Pat, Geoffrey.
I knew that the gnu-win32 cygnus library has not supported
multithread-safe yet. 
And I have tried also with mingw32 and libcrtdll.a, but it resulted in
failure. I wonder that maybe crtdll.dll in $WINDOWS directory is not
multithread-safe.

># like ld -e _mainCRTStartup mine.o libcmt.a libkernel32.a
>Several warnings are issued but executable is successfuly generated.
>But the executable is not able to run (DLL not found etc.).

Using objects Microsoft VC++ generated with gld, gld often issues that
the object has duplicated .text section. nm (in gnuwin32) reports that
two .text sections exists in the object.
In gld (ldlang.c), if section is duplicated and multiple same section
exists, the later section is ignored. I think that the gld cannot link 
with objects created by Microsoft C++ compiler in a few case. 

And I patched for gld that _imp__ is used for prefix of indirection of
symbols instead of __imp_.

Best Regards.
---
From: TANAKA Keishiro <ksr AT lp DOT nm DOT fujitsu DOT co DOT jp>
Subject: multithread safe program
Date: Tue, 23 Dec 1997 14:35:39 +0900
Message-ID: <199712230535 DOT OAA14498 AT kumando DOT lp DOT nm DOT fujitsu DOT co DOT jp>

ksr> Hi.
ksr> 
ksr> Can I create multithread program with gnu-win32 gcc ?
ksr> The library doesn't seem to be multithread safe.
ksr> 
ksr> I tried that I linked my objects with libcmt.a imported from Microsoft
ksr> libcmt.lib.
ksr> 
ksr> # like ld -e _mainCRTStartup mine.o libcmt.a libkernel32.a
ksr> Several warnings are issued but executable is successfuly generated.
ksr> But the executable is not able to run (DLL not found etc.).
ksr> 
ksr> Best Regards.
ksr> -
ksr> For help on using this list (especially unsubscribing), send a message to
ksr> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
ksr> 
-
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019