From owner-freebsd-commit Tue Mar 28 09:49:29 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA22277 for commit-outgoing; Tue, 28 Mar 1995 09:49:29 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA22263 for cvs-lib-outgoing; Tue, 28 Mar 1995 09:49:26 -0800 Received: from time.cdrom.com (time.cdrom.com [192.216.223.46]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA22257; Tue, 28 Mar 1995 09:49:23 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by time.cdrom.com (8.6.11/8.6.9) with ESMTP id JAA22412; Tue, 28 Mar 1995 09:49:08 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id DAA30539; Wed, 29 Mar 1995 03:46:17 +1000 Date: Wed, 29 Mar 1995 03:46:17 +1000 From: Bruce Evans Message-Id: <199503281746.DAA30539@godzilla.zeta.org.au> To: bde@zeta.org.au, jkh@freefall.cdrom.com, nate@trout.sri.MT.net Subject: Re: cvs commit: src/lib/libc/stdlib strhash.c Cc: CVS-commiters@time.cdrom.com, cvs-lib@time.cdrom.com Sender: commit-owner@FreeBSD.org Precedence: bulk >What good things come from the info from static functions in >non-debuggable libraries? I think we should be stripping that info. from >the shared .o's as well. All libraries are debuggable :-). >Generally speaking most people don't want to debug binaries w/out the >debugging information in (the poor unwashed never needed to use >non-symbolic debuggers :), so I propose that we strip out the static >symbols from the standard shared libraries. We don't supply libraries compiled with -g so the static symbols are more important than they should be. `ld -r -x' on libc/obj/*.so saves a whole 21K out of 535K. Many static symbols with long names are not removed. In fact, they become longer: for the object yplib.so, yplib.so.L179 becomes yplib.so.yplib.so.L179. I think there is a linker bug or two here. Shared objects are "stripped" using `ld -r -X'. The label for yplib.so was originally L179 and "stripping" turned it into yplib.so.L179 instead of removing it like the -X flag says to. Bruce