delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/30/04:40:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47A045E3.D9225ED7@dessent.net>
Date: Wed, 30 Jan 2008 01:39:47 -0800
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: About linker otions an rebasing
References: <47A042BF DOT 6070301 AT alice DOT it>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Angelo Graziosi wrote:

> I remember an old discussion on cygwin-apps that suggested to add
> 
>     -Wl,--enable-auto-import -Wl,--enable-auto-image-base

auto-import has nothing to do with rebasing and is the default anyway. 
The only thing that specifying --enable-auto-import does is disable some
informational messages that are printed during linking if auto imports
are used.

> i.e. 'cygwin1.dll' is the unique Cygwin DLL interested: Should we
> continue to add the above options?

The image base is only relevant when creating a DLL.  When creating an
.exe the issue is irrelevant as all executables have an image base of
0x0040000.  (Well, it might vary if you adjust the default stack size
allocation but the point is it cannot be hashed to a unique address.)

Brian

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

- Raw text -


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