This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: cygwin ld import library issue fix (removing unused "_nm_" symbols)
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- To: "Charles Wilson" <cwilson at ece dot gatech dot edu>
- Cc: "Kde-Cygwin" <kde-cygwin at kde dot org>,"Cygwin-Apps" <cygwin-apps at cygwin dot com>,"Binutils" <binutils at sources dot redhat dot com>
- Date: Sat, 27 Apr 2002 20:20:13 +0200
- Subject: RE: cygwin ld import library issue fix (removing unused "_nm_" symbols)
Ralf Habacker
> -----Original Message-----
> From: Charles Wilson [mailto:cwilson@ece.gatech.edu]
> Sent: Saturday, April 27, 2002 6:55 PM
> To: Ralf Habacker
> Cc: Kde-Cygwin; Cygwin-Apps; Binutils
> Subject: Re: cygwin ld import library issue fix (removing unused "_nm_"
> symbols)
>
>
> Ralf Habacker wrote:
>
>
> >>b) build an app that uses that dll, and which accesses both a function
> >>export and a data export from the dll.
> >>
> >
> > ------------------------------------------------
> > $ cat client.cc
> > ------------------------------------------------
> > #include <stdio.h>
> > #include "dll.h"
> >
> > main()
> > {
> > funcs();
> > vars();
> > }
>
>
> Except that I'd access 'v0000' *directly* from client.cc; you're not
> *really* accessing the variable yourself; you're calling a function in
> the DLL which accesses the variable.
... and accessing var0000 in client.cc
Do you have really read the dll.h ?
<snip>
#define vars() \
printf("v0000=%04d\n",var0000);\
<snip> ^^^^^^^
the vars macro is called in client.cc !!
Ralf