From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Linker trimming unused code/data Date: Thu, 30 Sep 1999 13:18:50 -0500 Organization: Rose-Hulman Institute of Technology Lines: 24 Message-ID: <7t09lu$i96$1@solomon.cs.rose-hulman.edu> References: NNTP-Posting-Host: 137.112.103.81 X-Trace: solomon.cs.rose-hulman.edu 938715646 18726 137.112.103.81 (30 Sep 1999 18:20:46 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 30 Sep 1999 18:20:46 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 990930154612 DOT 21365D-100000 AT is... > > On Thu, 30 Sep 1999, Gautier wrote: > > > Is there a way to make ld trim unused code/data ? > > It _seems_ not to do such deletions... > > What unused data did you see? > > Did you try linking with the -s switch, or running `strip' on the program > after it is linked? If not, please try that. And if strip doesn't make it small enough, try UPX instead. It strips debugging symbols _and_ compresses your code. http://www.nexus.hu/upx/ Damian Yerrick http://come.to/yerrick