This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: !RE: [PATCH] gcc3/ld patch for direct-linking-to-dll and auto-importsupport
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: kde-cygwin at kde dot org
- Cc: binutils at sources dot redhat dot com
- Date: Mon, 8 Sep 2003 18:58:20 +1000 (EST)
- Subject: Re: !RE: [PATCH] gcc3/ld patch for direct-linking-to-dll and auto-importsupport
Hi,
--- Ralf Habacker <Ralf.Habacker@freenet.de> wrote: > Hi,
<snip>
>
>
> > >
> There must be four auto imported vars.
> >
> > Ralf, what about a less intrusive approach? Compile dll
> > code with -fdata-sections. This will put const data in
> > .rdata$foo sections. Then, make pe_implied_import_dll()
> > scan .rdata as well as .data and .bss. for data symbols
> >
> > 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.
Danny
http://search.yahoo.com.au - Yahoo! Search
- Looking for more? Try the new Yahoo! Search