delorie.com/archives/browse.cgi | search |
From: | "Damian Yerrick" <web DOT poison AT pineight DOT 8m DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Linker trimming unused code/data |
Date: | Mon, 4 Oct 1999 23:06:16 -0500 |
Organization: | Rose-Hulman Institute of Technology |
Lines: | 31 |
Message-ID: | <7tbtjs$np4$1@solomon.cs.rose-hulman.edu> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 991004171251 DOT 25603D-100000 AT is> <37F91817 DOT 910DB5E4 AT hmc DOT edu> <37F957D1 DOT 43BA AT ns DOT sympatico DOT ca> |
NNTP-Posting-Host: | yerricde.laptop.rose-hulman.edu |
X-Trace: | solomon.cs.rose-hulman.edu 939096508 24356 137.112.205.146 (5 Oct 1999 04:08:28 GMT) |
X-Complaints-To: | news AT cs DOT rose-hulman DOT edu |
NNTP-Posting-Date: | 5 Oct 1999 04:08:28 GMT |
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 |
Bug report follows. > > > > > What you need to do is to divide a single module into several smaller > > > > > modules. Then the linker will only link in those modules which you > > > > > actually need in your program. Gautier researched other linkers and wrote: > > > > the `ld' linker is almost the only that can't do it itself! Eli Zaretskii suggested forwarding this to the binutils team. Nate Eldredge wrote: > > Note that some people might expect this behavior. For instance, many > > RCS-controlled projects insert a version string in each file like: > > > > static char rcsid[] = "$$RCS$43278$foo$bar$baz"; > > > > Since this is compiled in to the binary, one can tell what version of > > each source file went into a given binary. If ld removed it, this would > > break. Klaas wrote: > Of course the unused code-trimming could be implemented > via commandline switches. This request has been cc'ed to bug-gnu-utils AT gnu DOT org by Damian Yerrick http://come.to/yerrick
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |