delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/19/04:24:05

From: shankar AT chromatic DOT com (Shankar Unni)
Subject: Re: cygwin.dll
19 Jan 1997 04:24:05 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701190233.SAA19913.cygnus.gnu-win32@krypton.chromatic.com>
Original-To: tomb AT nccn DOT net (Aaron Tomb)
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <32E0654A.6AC1@nccn.net> from "Aaron Tomb" at Jan 17, 97 09:53:14 pm
X-Mailer: ELM [version 2.4 PL23]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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.

ELF versions of strip generally know not to strip off the shared library
interface information, because it usually lies in a different section
with a well-known name. I guess the PE version of strip also needs to be
taught to do this.

For now, your only recourse is downloading the source for cygwin.dll,
and compiling it without a -g flag. It'll still have some symbol
information, but it won't be so large.

-- 
Shankar Unni                                  shankar AT chromatic DOT com
Chromatic Research                            (408) 752-9488
-
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