--- a/usr/src/Makefile.master Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/Makefile.master Tue Sep 13 10:26:14 2005 -0700
@@ -55,9 +55,6 @@
# STRIP_COMMENTS toggles comment section striping. Generally the same setting
# as INTERNAL_RELEASE_BUILD.
#
-# STRIPFLAG is similar. It is set here for use in lower level Makefiles to
-# allow a single point change to affect the entire build.
-#
# __GNUC toggles the building of ON components using gcc and related tools.
# Normally set to `#', set it to `' to do gcc build.
#
@@ -88,20 +85,6 @@
STRIP_COMMENTS= $(INTERNAL_RELEASE_BUILD)
-# Historical notes: at one point, STRIPFLAG was set to '-s' for root builds,
-# and empty for non-root. It's now set empty all the time, so that builds
-# using manual invocation of "make install" will have debug data (as they did
-# when run as non-root before). The 'nightly' script overrides DEF_STRIPFLAG
-# with '-s' so that nightly builds are stripped -- since nightlies were once
-# done only as root, that preserves the known nightly behavior. The
-# non-nightly behavior can always be overridden by putting "STRIPFLAG=" in the
-# environment, on the 'make' command line, or by overriding STRIPFLAG in the
-# subsystem Makefile itself. STRIP_COMMENTS, although similar in nature, has
-# always been controlled by INTERNAL_RELEASE_BUILD (always set by nightly).
-
-DEF_STRIPFLAG=
-STRIPFLAG=$(DEF_STRIPFLAG)
-
# set __GNUC= in the environment to build 32-bit with the gcc compiler.
# The default is to use the Sun Studio 10 compiler for all processor types.
__GNUC= $(POUND_SIGN)
@@ -784,7 +767,8 @@
POST_PROCESS_A=
POST_PROCESS_SO= $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
$(ELFSIGN_OBJECT)
-POST_PROCESS= $(PROCESS_COMMENT) $@ ; $(ELFSIGN_OBJECT)
+POST_PROCESS= $(PROCESS_COMMENT) $@ ; $(STRIP_STABS) ; \
+ $(ELFSIGN_OBJECT)
#
# The PKGDEFS macro points to the source directory containing the majority
--- a/usr/src/cmd/Makefile.cmd Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/Makefile.cmd Tue Sep 13 10:26:14 2005 -0700
@@ -132,7 +132,7 @@
LDLIBS = $(LDLIBS.cmd)
LDFLAGS.cmd = \
- $(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
+ $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
$(NES_MAPFILE:%=-M%) $(PGA_MAPFILE:%=-M%)
LDFLAGS = $(LDFLAGS.cmd)
--- a/usr/src/cmd/cpc/cpustat/Makefile Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/cpc/cpustat/Makefile Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -36,12 +36,6 @@
CPPFLAGS += -D_REENTRANT -I$(SRC)/lib/libcpc/common
LDLIBS += -lcpc -lposix4 -lkstat
-#
-# CPC commands include CTF data so they must not be stripped with '-s'. This
-# overrides the "-s" switch in the default link flags.
-#
-STRIPFLAG=
-
.KEEP_STATE:
all: $(PROG)
--- a/usr/src/cmd/cpc/cputrack/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/cpc/cputrack/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -40,12 +40,6 @@
LINTFLAGS += -u
LINTFLAGS64 += -u
-#
-# CPC commands include CTF data so they must not be stripped with '-s'. This
-# overrides the "-s" switch in the default link flags.
-#
-STRIPFLAG=
-
.KEEP_STATE:
all: $(PROG)
--- a/usr/src/cmd/dtrace/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/dtrace/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -36,7 +36,6 @@
CFLAGS64 += $(CCVERBOSE)
LDLIBS += -ldtrace -lproc -lctf
-STRIPFLAG =
FILEMODE = 0555
GROUP = bin
--- a/usr/src/cmd/fm/eversholt/eftinfo/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/eversholt/eftinfo/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -32,11 +32,6 @@
OBJS = $(LOCALOBJS) $(COMMONOBJS)
SRCS = $(LOCALOBJS:.o=.c) $(COMMONSRCS)
-#
-# Reset STRIPFLAG to the empty string. rdasim is intentionally
-# installed with symbol tables to aid debugging.
-#
-STRIPFLAG=
CPPFLAGS += -I../common
CFLAGS += $(CTF_FLAGS)
LDLIBS += -lumem
--- a/usr/src/cmd/fm/eversholt/esc/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/eversholt/esc/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -36,11 +36,6 @@
OBJS = $(LOCALOBJS) $(COMMONOBJS)
SRCS = $(LOCALOBJS:.o=.c) $(COMMONSRCS)
-#
-# Reset STRIPFLAG to the empty string. esc is intentionally
-# installed with symbol tables to aid compiler debugging.
-#
-STRIPFLAG=
CPPFLAGS += -I../common
CFLAGS += -DESC $(CTF_FLAGS)
LDLIBS += -lumem
--- a/usr/src/cmd/fm/fmadm/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/fmadm/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -47,7 +47,6 @@
LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_adm
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
-STRIPFLAG =
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
--- a/usr/src/cmd/fm/fmd/Makefile.fmd Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/fmd/Makefile.fmd Tue Sep 13 10:26:14 2005 -0700
@@ -131,12 +131,6 @@
lint_prog := LINTFLAGS += -xerroff=E_FUNC_RET_ALWAYS_IGNOR2
-#
-# Reset STRIPFLAG to the empty string. FMD is intentionally installed with
-# a symbol table in order to help agent and diagnosis engine developers.
-#
-STRIPFLAG =
-
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
--- a/usr/src/cmd/fm/fmdump/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/fmdump/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -41,7 +41,6 @@
LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_log -lnvpair
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
-STRIPFLAG =
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
--- a/usr/src/cmd/fm/fmstat/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/fmstat/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -42,7 +42,6 @@
LDLIBS += -L$(ROOT)/usr/lib/fm -lfmd_adm
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
-STRIPFLAG =
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
--- a/usr/src/cmd/fm/modules/Makefile.plugin Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/modules/Makefile.plugin Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -66,12 +66,6 @@
LDFLAGS += $(ZTEXT) $(ZCOMBRELOC) $(ZDEFS) $(ZIGNORE) -M$(APIMAP)
LDLIBS += -lnvpair -lrt -lc
-#
-# Reset STRIPFLAG to the empty string. FMA modules are intentionally installed
-# with symbol tables in order to help module developers.
-#
-STRIPFLAG =
-
all: $(PROG)
.NO_PARALLEL:
--- a/usr/src/cmd/fm/schemes/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/schemes/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -51,9 +51,3 @@
CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I.
LDFLAGS += $(ZTEXT) $(ZCOMBRELOC) $(ZDEFS) $(ZIGNORE) -M$(MAPFILE)
LDLIBS += -lnvpair -lc
-
-#
-# Reset STRIPFLAG to the empty string. FMA modules are intentionally installed
-# with symbol tables in order to help module developers.
-#
-STRIPFLAG =
--- a/usr/src/cmd/fm/topo/plugins/Makefile.plugin Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/topo/plugins/Makefile.plugin Tue Sep 13 10:26:14 2005 -0700
@@ -58,12 +58,6 @@
LDFLAGS += -z text -z combreloc -z defs -z ignore -R/usr/lib/fm
LDLIBS += -L$(ROOTLIB)/fm -ltopo -lc
-#
-# Reset STRIPFLAG to the empty string. FMA modules are intentionally installed
-# with symbol tables in order to help module developers.
-#
-STRIPFLAG =
-
all: $(PROG)
.NO_PARALLEL:
--- a/usr/src/cmd/fm/topo/prtopo/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fm/topo/prtopo/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -34,11 +34,6 @@
LINTSRCS = $(OBJS:%.o=../common/%.c)
LINTFLAGS = -mnux
-#
-# Reset STRIPFLAG to the empty string. esc is intentionally
-# installed with symbol tables to aid compiler debugging.
-#
-STRIPFLAG=
CPPFLAGS += -I../common
CFLAGS += $(CTF_FLAGS)
--- a/usr/src/cmd/fs.d/hsfs/ident/Makefile Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/fs.d/hsfs/ident/Makefile Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Makefile for HSFS ident function.
@@ -48,7 +48,6 @@
SRCS= ${LIBPROG:%.so.$(IDENT_VERS)=%.c}
-STRIPFLAG =
CPPFLAGS += -DIDENT_VERS=${IDENT_VERS}
LDFLAGS += $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC)
LIBS= -lc
--- a/usr/src/cmd/intrstat/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/intrstat/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -36,7 +36,6 @@
CFLAGS64 += $(CCVERBOSE)
LDLIBS += -ldtrace -lrt
-STRIPFLAG =
FILEMODE = 0555
GROUP = bin
--- a/usr/src/cmd/mdb/Makefile.kmdb Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/mdb/Makefile.kmdb Tue Sep 13 10:26:14 2005 -0700
@@ -83,12 +83,6 @@
xterm \
xterms
-#
-# Reset STRIPFLAG to the empty string. MDB is intentionally installed
-# with a symbol table in order to help module developers.
-#
-STRIPFLAG =
-
LINTFLAGS += -n -errtags=yes
# The prom interfaces (the prom_* files) are compiled with -D_KERNEL, which
--- a/usr/src/cmd/mdb/Makefile.libstand Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/mdb/Makefile.libstand Tue Sep 13 10:26:14 2005 -0700
@@ -69,12 +69,6 @@
ASFLAGS += -P -D_ASM
-#
-# Reset STRIPFLAG to the empty string. MDB is intentionally installed
-# with a symbol table in order to help module developers.
-#
-STRIPFLAG =
-
LINTFLAGS += -n -errtags=yes
CLINTFILES = $(SRCS:%.c=%.ln)
LINTFILES = $(CLINTFILES:%.s=%.ln)
--- a/usr/src/cmd/mdb/Makefile.mdb Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/mdb/Makefile.mdb Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -88,12 +88,6 @@
LDLIBS += -ltermcap -lkvm -lproc -lrtld_db -lctf -lumem \
$(ZLAZYLOAD) -lscf $(ZNOLAZYLOAD)
-#
-# Reset STRIPFLAG to the empty string. MDB is intentionally installed
-# with a symbol table in order to help module developers.
-#
-STRIPFLAG =
-
LINTFLAGS += -n -errtags=yes
LINTFILES = $(SRCS:%.c=%.ln)
--- a/usr/src/cmd/mdb/Makefile.module Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/mdb/Makefile.module Tue Sep 13 10:26:14 2005 -0700
@@ -132,11 +132,6 @@
#
MODSRCS_DIR = ../../../common/modules/genunix
-#
-# Reset STRIPFLAG to the empty string. MDB modules are intentionally installed
-# with symbol tables in order to help module developers.
-#
-STRIPFLAG =
GROUP = sys
all: $$(TARGETS)
--- a/usr/src/cmd/svc/Makefile.ctf Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/svc/Makefile.ctf Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -31,5 +31,3 @@
CFLAGS += $(CTF_FLAGS)
CFLAGS64 += $(CTF_FLAGS)
NATIVE_CFLAGS += $(CTF_FLAGS)
-STRIPFLAG = # CTF requires the symbol table
-
--- a/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/Makefile Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/wbem/provider/c/filesystems/wbem_nfs/lib/Makefile Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -110,8 +110,6 @@
LINTFLAGS += -um
LINTLIBS = $(LDLIBS.cmd)
-STRIPFLAG =
-
LDFLAGS += -Mmapfile $(GSHARED) -R/usr/sadm/lib/wbem \
$(ZCOMBRELOC) $(ZTEXT) $(ZDEFS) $(SOFLAGS)
--- a/usr/src/cmd/wbem/provider/c/wbem_disk/lib/Makefile Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/cmd/wbem/provider/c/wbem_disk/lib/Makefile Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -123,8 +123,6 @@
LINTFLAGS += -um
LINTLIBS = $(LDLIBS.cmd)
-STRIPFLAG =
-
LDFLAGS += -Mmapfile $(GSHARED) -R/usr/sadm/lib/wbem \
$(ZCOMBRELOC) $(ZTEXT) $(ZDEFS) $(SOFLAGS)
--- a/usr/src/tools/Makefile.tools Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/Makefile.tools Tue Sep 13 10:26:14 2005 -0700
@@ -20,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -52,7 +52,7 @@
CPPFLAGS= -D_TS_ERRNO
ELFSIGN_O= $(TRUE)
LDLIBS=
-LDFLAGS= $(STRIPFLAG) $(NES_MAPFILE:%=-M%)
+LDFLAGS= $(NES_MAPFILE:%=-M%)
ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%)
ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%)
--- a/usr/src/tools/ctf/cvt/Makefile.com Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/ctf/cvt/Makefile.com Tue Sep 13 10:26:14 2005 -0700
@@ -20,15 +20,13 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
include ../../Makefile.ctf
-STRIPFLAG=
-
.KEEP_STATE:
.PARALLEL:
--- a/usr/src/tools/cw/Makefile Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/cw/Makefile Tue Sep 13 10:26:14 2005 -0700
@@ -44,7 +44,7 @@
-std=gnu89 -nodefaultlibs
$(__GNUC)LDLIBS += -lc
-$(__GNUC)LDFLAGS= $(STRIPFLAG) $(NES_MAPFILE:%=-Wl,-M%)
+$(__GNUC)LDFLAGS= $(NES_MAPFILE:%=-Wl,-M%)
CPPFLAGS += -DDEFAULT_CC_DIR='"$(SPRO_VROOT)/bin"'
CPPFLAGS += -DDEFAULT_GCC_DIR='"$(GNU_ROOT)/bin"'
--- a/usr/src/tools/scripts/check_rtime.1 Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/scripts/check_rtime.1 Tue Sep 13 10:26:14 2005 -0700
@@ -22,7 +22,7 @@
.\"
.\" CDDL HEADER END
.\"
-.TH check_rtime 1 "8 May 2001"
+.TH check_rtime 1 "30 Aug 2005"
.SH NAME
.I check_rtime
\- check ELF runtime attributes
@@ -37,8 +37,8 @@
for consistency with common build rules.
These checks involve running \fBldd(1)\fP and
\fBelfdump(1)\fP against a family of dynamic objects.
-Dynamic objects can be defined explicitly as a \fIfile\fP
-or will be located under the directory \fIdir\fP.
+A dynamic object can be defined explicitly as a \fIfile\fP
+or multiple dynamic objects can be located under the directory \fIdir\fP.
.LP
.I check_rtime
is typically called from \fBnightly(1)\fP when the \fB-r\fP
@@ -182,41 +182,24 @@
for release builds. The existence of debugging information is displayed as:
.sp
.RS 6
-foo: debugging sections should be deleted \\
-.br
- <no -s or strip -x?>
+foo: debugging sections should be deleted <no strip -x?>
.RE
.TP
\(bu
-Shared objects should retain their full \fI.symtab\fP symbol table.
+All objects should retain their full \fI.symtab\fP symbol table.
Although this consumes disk space, it provides for more extensive stack
tracing when debugging user applications.
-Any shared object a user application may use,
-which includes private shared objects that provide the implementation
-backend to public shared objects, should retain their symbol table.
.sp
-Hard coding a \fI-s\fP flag with \fB$(DYNFLAGS)\fP is the typical
+Hard coding a \fI-s\fP flag with \fB$(LDFLAGS)\fP or
+\fB$(DYNFLAGS)\fP is the typical
reason for symbol tables being removed.
-Shared objects that do not contain a symbol table are displayed as:
+Objects that do not contain a symbol table are displayed as:
.sp
.RS 6
foo.so.1: symbol table should not be stripped <remove -s?>
.RE
.TP
\(bu
-Dynamic executables should not retain their full \fI.symtab\fP symbol table.
-Doing so requires too much disk space, and provides little value.
-.sp
-Not inheriting the correct \fB$(LDFLAGS)\fP from \fIcmd/Makefile.cmd\fP
-is the typical reason for not removing full symbol tables. Note, removal
-of full symbol tables is only enabled for release builds.
-Dynamic executables that contain a symbol table are displayed as:
-.sp
-.RS 6
-foo: symbol table should be stripped <-s?>
-.RE
-.TP
-\(bu
Applications should have a non-executable stack defined to make
them less vulnerable to buffer overflow attacks.
.sp
@@ -332,8 +315,7 @@
more appropriate for sorting and diffing with previous build results.
.TP
.B \-s
-Determine whether \fI.stabs\fP sections and/or \fI.symtab\fP
-symbol tables exist.
+Determine whether \fI.stabs\fP sections exist.
.LP
.SH ALTERNATIVE DEPENDENCY MAPPING
As
--- a/usr/src/tools/scripts/check_rtime.pl Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/scripts/check_rtime.pl Tue Sep 13 10:26:14 2005 -0700
@@ -59,7 +59,7 @@
# Define all global variables (required for strict)
use vars qw($SkipDirs $SkipFiles $SkipTextrelFiles);
use vars qw($SkipUndefDirs $SkipUndefFiles $SkipUnusedDirs $SkipUnusedFiles);
-use vars qw($SkipStripDirs $SkipNoStripFiles $SkipStabFiles $SkipNoExStkFiles);
+use vars qw($SkipStabFiles $SkipNoExStkFiles);
use vars qw($UnusedNoise $Prog $Mach $Isalist $Env $Ena64 $Tmpdir $Error);
use vars qw($UnusedFiles $UnusedPaths $LddNoU $Crle32 $Crle64 $Conf32 $Conf64);
use vars qw($SkipInterps $OldDeps %opt);
@@ -166,19 +166,6 @@
)$
}x;
-# Define any files that can be stripped.
-$SkipStripDirs = qr{
- /abi/
-}x;
-
-# Define any files that must not be stripped.
-$SkipNoStripFiles = qr{ ^(?:
- adb |
- mdb |
- unix
- )$
-}x;
-
# Define any files that should contain debugging information.
$SkipStabFiles = qr{ ^(?:
abi_.* |
@@ -847,36 +834,17 @@
}
}
OutMsg($Ttl++, $RelPath,
- "\tdebugging sections should be deleted\t<no -s or strip -x?>");
+ "\tdebugging sections should be deleted\t<no strip -x?>");
}
DONESTAB:
- # Shared objects should have a full symbol table to provide complete
+ # All objects should have a full symbol table to provide complete
# debugging stack traces.
- if ($opt{s} && $Dll && $Strip) {
- if (!$opt{a}) {
- if ($RelPath =~ $SkipStripDirs) {
- goto DONESTRIP;
- }
- }
+ if ($Strip) {
OutMsg($Ttl++, $RelPath,
"\tsymbol table should not be stripped\t<remove -s?>");
}
-
- # No other dynamic object should have a .symtab symbol table.
- if ($opt{s} && ($Dll == 0) && ($Strip == 0)) {
- if (!$opt{a}) {
- if ($File =~ $SkipNoStripFiles) {
- goto DONESTRIP;
- }
- }
- OutMsg($Ttl++, $RelPath,
- "\tsymbol table should be stripped\t<no -s?>");
- }
-
-DONESTRIP:
-
}
--- a/usr/src/tools/scripts/nightly.sh Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/tools/scripts/nightly.sh Tue Sep 13 10:26:14 2005 -0700
@@ -1158,13 +1158,10 @@
PROTOCMPTERSE="protocmp.terse -gu"
fi
POUND_SIGN="#"
-DEF_STRIPFLAG="-s"
# we export POUND_SIGN to speed up the build process -- prevents evaluation of
# the Makefile.master definitions.
-# we export DEF_STRIPFLAG to strip debug data from nightly builds; the default
-# behavior is to include all debug data.
-export o_FLAG POUND_SIGN DEF_STRIPFLAG
+export o_FLAG POUND_SIGN
if [ "$d_FLAG" = "y" ]; then
maketype="distributed"
--- a/usr/src/ucbcmd/Makefile.ucbcmd Tue Sep 13 07:37:29 2005 -0700
+++ b/usr/src/ucbcmd/Makefile.ucbcmd Tue Sep 13 10:26:14 2005 -0700
@@ -40,8 +40,6 @@
MKDIR= mkdir
TOUCH= touch
-LDFLAGS += $(STRIPFLAG)
-
FILEMODE= 0555
LIBFILEMODE= 0444
ROOTBIN= $(ROOT)/usr/ucb
@@ -71,11 +69,11 @@
LDLIBS = $(LDLIBS.cmd)
LDFLAGS.cmd = \
- $(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
+ $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
$(NES_MAPFILE:%=-M%) \
$(PGA_MAPFILE:%=-M%)
-LDFLAGS = $(STRIPFLAG) $(LDFLAGS.cmd)
+LDFLAGS = $(LDFLAGS.cmd)
SETRUNPATH= LD_RUN_PATH=/usr/ucblib