This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
AW: ld --auto-imports
- To: "Binutils" <binutils at sources dot redhat dot com>
- Subject: AW: ld --auto-imports
- From: "Ralf Habacker" <Ralf dot Habacker at saght dot tessag dot com>
- Date: Mon, 11 Jun 2001 10:07:37 +0200
- Cc: "Robert Collins" <robert dot collins at itdomain dot com dot au>
> > I have tried to mark this with ^^^^, but there are tabs in my mail, so
> they
> > don't fit the correct columns.
> >
> > > However it works with -lcygwin first in the link line. Do you know
> why
> > > that fixes it? Maybe more symbols need to be stripped... I'll roll
> my
> > > own and have a look and see why -lcygwin is needed (it's not needed
> with
> > > an unaltered ld).
> > The reason is, that hello.dll uses _cygwin_dll_entry@12 from greet.dll
> and
> > not from cygwin1.dll. This doesn't work, but I don't know why.
>
> Yes - I tracked that down just now myself :]. Use
> -Wl,--exclude-symbols=_cygwin_dll_entry@12
> on the .dll link line, and you will no longer need -lcygwin in the link
> command.
>
> Thats fixed the segfaulting for me, and I'm back to libtool. I suspect
> that there are a number of symbols that will need to be excluded from
> automatic exporting, and I'll generate a patch to ld that will include
> Pauls' patch, and exclude those extra symbols.
I have seens, that impure_ptr is although used in this way. Should this be
excluded too ? It seems, that is doesn't matter, but I'm not familiar with
the internal of cygwin1.dll
Ralf
>
> Thanks for the help,
>
> Rob
>
> >
> > Ralf
> >
> > >
> > > Rob
> > >
> > >
> > >
> > >
> >
> >
>
>