delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/30/13:22:14

Message-ID: <37F38E65.49FED91C@maths.unine.ch>
Date: Thu, 30 Sep 1999 17:23:01 +0100
From: Gautier <gautier DOT demontmollin AT maths DOT unine DOT ch>
X-Mailer: Mozilla 4.07C-SGI [en] (X11; I; IRIX64 6.5 IP30)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linker trimming unused code/data
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990930154612 DOT 21365D-100000 AT is>
NNTP-Posting-Host: hilbert.unine.ch
Lines: 12
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

(short version of e-mail exchange)
> What unused data did you see?
Unused strings constants.

> Did you try linking with the -s switch, or running `strip' on the program
> after it is linked?  If not, please try that.
Neither `ld -s' nor `strip' do trim the unused strings in my test.
F.i.: the Borland Pascal linker does it, hence it trims the unused code
that refers to them too. Of course it has a rich information about
modularity.

Gautier

- Raw text -


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