From owner-freebsd-hackers Sun Sep 13 15:07:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09997 for freebsd-hackers-outgoing; Sun, 13 Sep 1998 15:07:51 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA09978 for ; Sun, 13 Sep 1998 15:07:48 -0700 (PDT) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.1/8.8.5) with SMTP id QAA11908; Sun, 13 Sep 1998 16:59:51 -0400 (EDT) Date: Sun, 13 Sep 1998 16:59:50 -0400 (EDT) From: Chuck Robey To: Kent A Vander Velden cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unused functions In-Reply-To: <199809132056.PAA01179@isua3.iastate.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 13 Sep 1998, Kent A Vander Velden wrote: > > Is the code associated with unused functions of a used archive ever removed > from the executable that uses the archive? After linking I see with 'nm' > there are many functions in the executable that are never called. This is > making my executable rather large since the archive is huge. Would elf > help in anyway with this? Do you realize that many of the libc functions need each other as dependencies? Many functions just don't work alone. At least for shared executeables, they don't exist in your executeable until you actually execute it, anyways, so they don't bloat your executeable at all. They get linked in during the startup task of locating and loading the executeable into memory, before it really starts to work. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message