delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/09/07:52:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: <kde-cygwin AT kde DOT org>, <cygwin AT cygwin DOT com>
Cc: <binutils AT sources DOT redhat DOT com>
Subject: RE: !RE: [PATCH] gcc3/ld patch for direct-linking-to-dll andauto-importsupport
Date: Tue, 9 Sep 2003 13:52:01 +0200
Message-ID: <00b401c376c8$c7c52a30$0a1c440a@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <20030908085820.96366.qmail@web21410.mail.yahoo.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Importance: Normal

> > > I've tried that with your testcase and it seems to work.
> > >
> > What gcc release you are using ?
>
> I tested with mingw builds of 3.3.1 and last weeks GCC-head (3.4). They put
> readonly data into .rdata$ sections if -fdata-sections but in .text otherwise.
> You're correct, though, it is is different in 3.2.x
>
> > It seems that gcc3.2 (which is the recent
> > cygwin release) does not support this. (See the ! below)
> > Are there any other gcc options to archive this ?
>
> Not that I know of. A -mrdata-in-rdata :) switch would be handy.
>
What should we do ?

1. wait until gcc 3.3 is in the cygwin net distribution and forgot this patch.

2. Apply this patch as it is.

3. Extend this patch with .rdata$ support like you have done and apply this all
to ensure propper working for current and further gcc3 release.

I would prefer solution 3. Any objectivies ?

Ralf



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