bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DLL linking bug for big DLL on Windows.


From: Andrew Begel
Subject: DLL linking bug for big DLL on Windows.
Date: Fri, 30 Nov 2001 15:57:32 -0800

I use MinGW's g++ 2.95.3 compiler with binutils 2.11.90 from 9/15/01.
When I try to link a really big C++ DLL on my Windows 2000 box (really
big = 15,000,000 byte DLL (with debug symbols)), I get a link error
after the autolink messages:

g++ -Wl,--enable-auto-import  -DPROFILE   -Wl,--wrap,__builtin_new
-Wl,--wrap,__
builtin_delete -Wl,--wrap,__builtin_vec_new
-Wl,--wrap,__builtin_vec_delete  -o
OBJ.i686-pc-mingw32/java-glrfrob.exe
OBJ.i686-pc-mingw32/java-parser-tables.o OB
J.i686-pc-mingw32/java-grammar.o OBJ.i686-pc-mingw32/java.def.o
../../langs/comm
on/OBJ.i686-pc-mingw32/glrfrob.o ../../alloc/OBJ.i686-pc-mingw32/alloc.o
-L../..
/lk/OBJ.i686-pc-mingw32 -llk.dll -L../../common/OBJ.i686-pc-mingw32
-lcommon.dll
  -Le:\\usr\\misc\\lib -L/mingw/lib -lgc

Warning: resolving __16AbstractLanguage$tc_whitespace by linking to
__imp___16Ab
stractLanguage$tc_whitespace (auto-import)
Warning: resolving __16AbstractLanguage$tc_comment by linking to
__imp___16Abstr
actLanguage$tc_comment (auto-import)
Warning: resolving __16AbstractLanguage$tc_keyword by linking to
__imp___16Abstr
actLanguage$tc_keyword (auto-import)
Warning: resolving __16AbstractLanguage$tc_name by linking to
__imp___16Abstract
Language$tc_name (auto-import)
Warning: resolving __16AbstractLanguage$tc_punctuation by linking to
__imp___16A
bstractLanguage$tc_punctuation (auto-import)
Warning: resolving __16AbstractLanguage$tc_operator by linking to
__imp___16Abst
ractLanguage$tc_operator (auto-import)
Warning: resolving __16AbstractLanguage$tc_default by linking to
__imp___16Abstr
actLanguage$tc_default (auto-import)
Warning: resolving _system_vg by linking to __imp__system_vg
(auto-import)
Warning: resolving __16AbstractLanguage$tc_literal by linking to
__imp___16Abstr
actLanguage$tc_literal (auto-import)
Warning: resolving __16AbstractLanguage$tc_string by linking to
__imp___16Abstra
ctLanguage$tc_string (auto-import)
Warning: resolving __12PooledString$emptyString by linking to
__imp___12PooledSt
ring$emptyString (auto-import)
Warning: resolving __4Node$__attr_records by linking to
__imp___4Node$__attr_rec
ords (auto-import)
Warning: resolving __4Node$__attr_names by linking to
__imp___4Node$__attr_names
 (auto-import)
Warning: resolving __4Term$__attr_records by linking to
__imp___4Term$__attr_rec
ords (auto-import)
Warning: resolving __4Term$__attr_names by linking to
__imp___4Term$__attr_names
 (auto-import)
Warning: resolving __10ParentNode$__attr_records by linking to
__imp___10ParentN
ode$__attr_records (auto-import)
Warning: resolving __10ParentNode$__attr_names by linking to
__imp___10ParentNod
e$__attr_names (auto-import)
Warning: resolving __9AmbigNode$__attr_records by linking to
__imp___9AmbigNode$
__attr_records (auto-import)
Warning: resolving __9AmbigNode$__attr_names by linking to
__imp___9AmbigNode$__
attr_names (auto-import)
Warning: resolving __Q25VDatat5VType2ZcQ25VData14CollectionType2$prot by
linking
 to __imp___Q25VDatat5VType2ZcQ25VData14CollectionType2$prot
(auto-import)
Warning: resolving __Q25VDatat5VType2ZPvQ25VData14CollectionType1$prot
by linkin
g to __imp___Q25VDatat5VType2ZPvQ25VData14CollectionType1$prot
(auto-import)
Warning: resolving __Q25VDatat5VType2ZbQ25VData14CollectionType0$prot by
linking
 to __imp___Q25VDatat5VType2ZbQ25VData14CollectionType0$prot
(auto-import)
Warning: resolving __Q25VDatat5VType2ZcQ25VData14CollectionType3$prot by
linking
 to __imp___Q25VDatat5VType2ZcQ25VData14CollectionType3$prot
(auto-import)
Warning: resolving __Q25VDatat5VType2ZiQ25VData14CollectionType0$prot by
linking
 to __imp___Q25VDatat5VType2ZiQ25VData14CollectionType0$prot
(auto-import)
Warning: resolving __Q25VDatat5VType2ZcQ25VData14CollectionType3$type by
linking
 to __imp___Q25VDatat5VType2ZcQ25VData14CollectionType3$type
(auto-import)
Warning: resolving __Q25VDatat5VType2ZiQ25VData14CollectionType0$type by
linking
 to __imp___Q25VDatat5VType2ZiQ25VData14CollectionType0$type
(auto-import)
Warning: resolving __Q25VDatat5VType2ZbQ25VData14CollectionType0$type by
linking
 to __imp___Q25VDatat5VType2ZbQ25VData14CollectionType0$type
(auto-import)
Warning: resolving __Q25VDatat5VType2ZPvQ25VData14CollectionType1$type
by linkin
g to __imp___Q25VDatat5VType2ZPvQ25VData14CollectionType1$type
(auto-import)
Warning: resolving __Q25VDatat5VType2ZcQ25VData14CollectionType2$type by
linking
 to __imp___Q25VDatat5VType2ZcQ25VData14CollectionType2$type
(auto-import)
Warning: resolving __13VPooledString$SharingCutoff by linking to
__imp___13VPool
edString$SharingCutoff (auto-import)
Warning: resolving __4Node$dummy_alternatives by linking to
__imp___4Node$dummy_
alternatives (auto-import)
Error: 0-bit reloc in dll

and then it fails. What does this error mean? My ld process takes up
about 100 MB active memory and pumps up the VM Size to around 750 MB.
Perhaps there's too much memory being used by my link process and
Windows won't give it any more? After this error occurs, the process
doesn't just die. Active memory use drops to 30-40MB and then it spend
another minute or two chugging, and then finally exits with error 1.

The only change I made recently was to add a whole bunch more methods to
all my autogenerated classes, so they probably got bigger.

Anyone know what could be wrong here?

Thanks,

Andrew Begel
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]