delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/19/13:39:06

From: krk AT cygnus DOT com (Kim Knuttila)
Subject: Re: cygwin.dll
19 Jan 1997 13:39:06 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701191853.KAA23415.cygnus.gnu-win32@rtl.cygnus.com>
Reply-To: krk AT cygnus DOT com
Original-To: shankar AT chromatic DOT com
Original-CC: tomb AT nccn DOT net, gnu-win32 AT cygnus DOT com
In-reply-to: <199701190233.SAA19913@krypton.chromatic.com> (message from
Shankar Unni on Sat, 18 Jan 1997 18: 33:45 -0800 (PST))
Original-Sender: owner-gnu-win32 AT cygnus DOT com

   From: Shankar Unni <shankar AT chromatic DOT com>
   Date: Sat, 18 Jan 1997 18:33:45 -0800 (PST)
   Cc: gnu-win32 AT cygnus DOT com
   X-Mailer: ELM [version 2.4 PL23]
   Content-Type: text
   Sender: owner-gnu-win32 AT cygnus DOT com
   Precedence: bulk

   Aaron Tomb said:

   > The 3MB cygwin dll contains debugging info. Stripped it is only two
   > hundred and something k. Unfortunately, I haven't managed to get it
   > working when I stripped it. It complained about not finding the dll.

   Unfortunately, strip just strips off *all* symbol information. The DLL
   mechanism is just a fairly crude structure piggybacking off the COFF
   symbol table, and it's possible that tools like strip don't know to
   leave the import and export tables alone.

Well, as far as I know, the dll mechanism is imbedded in the idata/edata 
sections and has nothing to do with the coff symbol tables at all. Strip
should work, but I've not tried it on a dll. If it doesn't, it's a bug.
The way to tell is strip a dll, and objdump it. If the idata/edata sections
are gone, then that's the bug. (and we'll fix it :-) If the sections are
there, try "-p" on objdump, which should attempt to figure out if the
edata/idata sections are properly laid out. They should be the same as 
before the strip. If they aren't, that's likely a bug (I can't think
of a good reason for them to be different) (and we'll fix it :-)

--krk.

-- 
Kim Knuttila     | Speaking for himself as always.
Cygnus Solutions |		Woof.
-
For help on using this list, 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