delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/02/12:13:11

From: wgreathouse AT smva DOT com (William Greathouse)
Subject: A quick fix for the DLL .reloc problem
2 Jul 1997 12:13:11 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33BA7E76.17182607.cygnus.gnu-win32@smva.com>
Mime-Version: 1.0
>Received: from iago by mailserv.smva.com (AIX 3.2/UCB 5.64/4.03)
id AA22239; Wed, 2 Jul 1997 12: 10:02 -0400
X-Mailer: Mozilla 4.0b5 [en] (Win95; I)
Original-To: gnu-win32 <gnu-win32 AT cygnus DOT com>, j-cerney1 AT ti DOT com
X-Priority: 3 (Normal)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT smva DOT com  Email
SMV America, Engineering          | wgg AT netcom DOT com        Email
8380 Darrow Road                  | (216) 425-1340 x4006  Voice
Twinsburg, OH  44087              | (216) 405-7684        FAX
--------------08ADE2D956636681FE1ECCDB
Content-Type: application/octet-stream; name="dllfix.exe"
Content-Transfer-Encoding: base64
Content-Disposition: attach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gCxAGZwcmludGYAAAC1AGZyZWFkALYA
ZnJlZQAAugBmc2VlawC8AGZ0ZWxsAL4AZndyaXRlAAAAAOcAbWFsbG9jAAAAAO8AbWVtc2V0
AAAAAPIAcGVycm9yAAAAAPsAcmVhbGxvYwAAABQBc3RybmNtcAAAADcAX2ZwcmVzZXQAAEUA
X2lvYgAAYwBFeGl0UHJvY2VzcwAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAA
AEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAABjcnRkbGwuZGxs
AJAUQAAAa2VybmVsMzIuZGxsAI12ANILAADRCwAAoAsAAJ4LAACVCwAAXAsAAFsLAAAZCwAA
1QoAAJwKAACBCgAAfgoAAEQKAAANCgAACgoAAAgKAAAHCgAA1AkAANIJAADCCQAAtgkAAKAJ
AACICQAAkgkAAJEJAACQCQAAeQkAAFIJAABRCQAAIwkAAO8IAACtCAAArAgAAIwIAACLCAAA
awgAAGkIAABoCAAARwgAAEUIAAA1CAAAKAgAAB0IAAAcCAAADQgAAAoIAADYBwAAygcAAMcH
AADGBwAArAcAAKkHAACIBwAAcgcAAG4HAAA6BwAALQcAACkHAAAIBwAA0QYAALQGAACwBgAA
bwYAAGIGAABeBgAAQgYAAEEGAAAfBgAAGwYAAOUFAADIBQAAwwUAAH0FAABvBQAAagUAAEwF
AABLBQAASgUAAC0FAAAoBQAA3AQAAL4EAAC4BAAAcgQAAGMEAABdBAAANAQAAC4EAAD+AwAA
rgMAAGEDAABbAwAAVgMAAFEDAAArAwAAJgMAANMCAACyAgAArAIAAG0CAABeAgAAWAIAACYC
AAAgAgAA+wEAAAkJCQkJCQkJ
--------------08ADE2D956636681FE1ECCDB--


-
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019