[ http://www.cygnus.com/ml/gnu-win32/1997-Jul/0047.html ] A QUICK FIX FOR THE DLL .RELOC PROBLEM William Greathouse (wgreathouse@smva.com) Wed, 02 Jul 1997 12:14:46 -0400 * Messages sorted by: [ date ][ thread ][ subject ][ author ] * Next message: Hmmmz: "Re: source code for ls.exe and chmod.exe" * Previous message: Mikey: "Re: Anyone got patches for V GUI?" This is a multi-part message in MIME format. --------------08ADE2D956636681FE1ECCDB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello All, Attached is my contribution to the DLL .reloc section problem. The invalid relocation table termination in the dll output has caused me many problems when using gnuwin32 generated dll's with other applications (particularly false 'Out of memory' errors). John Cerney's dllcheck.exe has been wonderful for detecting this problem, but I have had to rebuild as many as 40 (!) times to get a 'clean' dll. Upon looking at the generated file, I noticed that nothing changes between builds except the table termination. So, I built a quick program to detect and _fix_ the .reloc table termination problem. NOTE: This works for me, your mileage may vary. The application was built using cygnus b18 and mingw 0.1.4. As such, it has no cygwin version requirement/need. I have successfully used the "fixed" dll's with Microsloth Access and Excel. Enjoy, Bill PS. I have thoughts of extending this to properly zero fill the "empty" areas in applications/dll's to get around the "garbage in my output" problems. Anyone interested? -- William Greathouse | wgreathouse@smva.com Email SMV America, Engineering | wgg@netcom.com Email 8380 Darrow Road | (216) 425-1340 x4006 Voice Twinsburg, OH 44087 | (216) 405-7684 FAX