From owner-freebsd-commit Tue Mar 28 10:38:58 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA23557 for commit-outgoing; Tue, 28 Mar 1995 10:38:58 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA23544 for cvs-share-outgoing; Tue, 28 Mar 1995 10:38:52 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA23533; Tue, 28 Mar 1995 10:38:34 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id EAA31430; Wed, 29 Mar 1995 04:33:44 +1000 Date: Wed, 29 Mar 1995 04:33:44 +1000 From: Bruce Evans Message-Id: <199503281833.EAA31430@godzilla.zeta.org.au> To: CVS-commiters@freefall.cdrom.com, cvs-share@freefall.cdrom.com, nate@freefall.cdrom.com Subject: Re: cvs commit: src/share/mk bsd.lib.mk Sender: commit-owner@FreeBSD.org Precedence: bulk > Modified: share/mk bsd.lib.mk > Log: > Do what should have been done in v1.14 > > *Really* strip out unused local symbols from shared objects. Should have been done for v1.1 in FreeBSD-1.1 :-). I checked some old libraries: libc.so.1.1 on 2.0R cdrom: Lots of useless static symbols: LC*, ___gnu_compiled_c, _rcsid, _sccsid, gcc2_compiled.. Lots of useless file sysmbols. Lots of USEFUL static symbols. Static symbols for functions and data are relatively rare in libraries (350 out of 1909 static text symbols in libc.so.2.0-current) so it would cost little to keep them. libc.so.2.0 on 2.0R cdrom: Same as above. libc.so.2.0 current: Same as above except LC* are expanded to LC*. > This was a typo on my part caused by an assumption that the profiled > libraries stripped symbols that same way as the non-profiled libraries. > > Cut-n-Paste strikes again. This (replacing -x by -X) strips the useless symbols, the USEFUL symbols, and still expands LC*. Bruce