This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygwin ld import library issue fix (removing unused "_nm_" symbols)

> On Thu, Apr 25, 2002 at 01:32:47PM +0200, Ralf Habacker wrote:
> >> Hi Danny,
> >>
> >> > Yes, this looks very nice, but does it works against current CVS?
> >> This patch is a minor change, which could be reviewed easy, but I have got
> >> trouble using the current cvs head (binutils 2-12.xx) release from
> >>>
> >> It produces undefined symbols compiling dll/apps and that means
> cygwin support
> >> seems to be broken. Because I hadn't enough time to check this, ....
> >
> >I've taken a look on the cvs archive to verify this. Are I'm right using the
> >cygnus_cvs_20020108_pre tag ?
> Why are you using a tag at all?  Your patches should be against the binutils
> trunk.

I have updated the patch. But the problem still is as I've said. The current ld
cvs head release does not work !!
I have build a simple lib and an app (without my patches) and the result is an
undefined, either for functions or for auto-imported data.  Test case is
Can anybody tell me which cvs version is the last stable ? I have tried to
checkout binutils with date 2001/12/31, but got compiling errors.

$ make dll.dll client.exe
gawk -f dll.awk >
g++     -c -o dll.o
g++  --shared dll.o -o dll.dll -Wl,--out-implib,libdll.a
Creating library file: libdll.a
g++     -c -o client.o
g++ -o client.exe client.o -v -Wl,--enable-auto-import  -L. -ldll #-ldll2
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-pre
fix=cyg -o client.exe /usr/lib/crt0.o -
L. -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygw
in/2.95.3-5 -L/usr/lib/gcc-lib/i686-pc-c
client.o --enable-auto-import -ldll -lstdc++ -lgcc -lcygwin -luser32 -lker
nel32 -ladvapi32 -lshell32 -lgcc
client.o(.text+0x48) undefined reference to `A::printfunc0000(void)'
client.o(.text+0x4d) undefined reference to `A::printfunc0001(void)'
client.o(.text+0x52) undefined reference to `A::printfunc0002(void)'
client.o(.text+0x57) undefined reference to `A::printfunc0003(void)'
client.o(.text+0x5c) undefined reference to `A::printfunc0004(void)'
client.o(.text+0x64) undefined reference to `var0000'
client.o(.text+0x7a) undefined reference to `var0001'
client.o(.text+0x90) undefined reference to `var0002'
client.o(.text+0xa6) undefined reference to `var0003'
client.o(.text+0xbc) undefined reference to `var0004'
collect2: ld returned 1 exit status
make: *** [client.exe] Error 1

Attachment: client.tar.bz2
Description: Binary data

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]