From: igor DOT boukanov AT fi DOT uib DOT no (Igor Boukanov) Subject: 3 stage linking to build proper relocatable dll? 14 Aug 1998 20:26:46 -0700 Message-ID: <35D43CB3.65ABA239.cygnus.gnu-win32@fi.uib.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com At the article http://www.cygnus.com/ml/gnu-win32/1998-Jun/0205.html Andrew Mickish (mickish AT cmu DOT edu) wrote: >2) There is a complicated linking procedure involving ld and intermediate >files: > > ld --base-file hello.base --dll -o hello.dll HelloWorldImp.o init.o > $(LIB) -e _dll_entry AT 12 > dlltool --as=as --dllname hello.dll --def hello.def --base-file > hello.base --output-exp hello.exp > ld --base-file hello.base hello.exp --dll -o hello.dll HelloWorldImp.o > init.o $(LIB) -e _dll_entry AT 12 > dlltool --as=as --dllname hello.dll --def hello.def --base-file > hello.base --output-exp hello.exp > ld hello.exp --dll -o hello.dll HelloWorldImp.o init.o $(LIB) -e > _dll_entry AT 12 This is THREE stage linking and if I simply use a two stage process to build a relocatable DLL according to http://www.cygnus.com/misc/gnu-win32/building-reloc-dlls.txt that DLL can not be loaded via LoadLibrary into a huge application like JDK Java VM. So the question is: is this need for the third stage a linker bug or a necessary feature? Regards, Igor Boukanov. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".