delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/30/21:22:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4DE41BB8.2000504@cwilson.fastmail.fm>
Date: Mon, 30 May 2011 18:35:36 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Problem with Cygwin's fdopen and Windows handles
References: <loom DOT 20110529T133128-564 AT post DOT gmane DOT org> <20110529233841 DOT GC5283 AT ednor DOT casa DOT cgf DOT cx> <loom DOT 20110530T093057-556 AT post DOT gmane DOT org> <20110530174649 DOT GB14225 AT ednor DOT casa DOT cgf DOT cx> <loom DOT 20110530T230200-528 AT post DOT gmane DOT org>
In-Reply-To: <loom.20110530T230200-528@post.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/30/2011 5:12 PM, Juanjo wrote:
> It seems I did not express myself properly. Code is compiled on the fly.
> DLLs do not survive beyond program execution. This is a dynamic language
> (Common Lisp btw) and functions are compiled and run and consumed
> quickly. Calling rebase for each invocation is overkill (it will scan the
> whole system!) and I would not even know how to start assigning
> fixed addresses to libraries myself.

Well, one workaround is to use the --enable-auto-image-base flag when
linking your ephemeral DLL.  This generates a custom image base address
based on a hash of the pathname of the DLL.  There's no guarantee this
doesn't clash with stuff, but at least it'll be *different* for dlls
that have different names.

Dunno of any solutions or recommendations related to the rest of your
email, tho -- sorry.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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