delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/17/22:15:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A10C4A9.4090208@cornell.edu>
Date: Sun, 17 May 2009 22:15:05 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gcc linker flags
X-IsSubscribed: yes
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

I've seen builds by other people in which the following linker flags are 
used:

(a) --enable-auto-import
(b) --enable-runtime-pseudo-reloc
(c) --enable-auto-image-base

My understanding is that (b) and (c) are already the default and that 
(a) will be the default when binutils is updated.  Moreover, (a) is 
mostly used to suppress errors (though there are exceptions where it 
makes a difference).  So none of these are really needed in most cases.  
Do I have it more or less right?

I'm mainly interested in gcc-4 in cygwin 1.7, but if the answers would 
be different for gcc-3 or cygwin 1.5, I'd like to know that too.

Thanks.

Ken



--
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