Time to stop stripping binaries?
M. Warner Losh
imp at bsdimp.com
Thu Jun 17 20:38:16 UTC 2010
Greetings,
Now that disks are big, can we stop stripping binaries by default?
I've worked up a patch that lets you set WITH_BINARY_SYMBOLS or
WITHOUT_BINARY_SYMBOLS as you see fit. We should commit it regardless
of the outcome of this discussion (well, defaulting to yes or no
depending on the outcome).
Why symbols: it makes core dumps easier to debug.
Why no symbols: makes the system footprint bigger.
Since there's good arguments both ways, I thought I'd make this a
knob.
Comments?
Warner
Index: bsd.own.mk
===================================================================
--- bsd.own.mk (revision 209268)
+++ bsd.own.mk (working copy)
@@ -303,6 +303,7 @@
ATM \
AUDIT \
AUTHPF \
+ BINARY_SYMBOLS \
BIND \
BIND_DNSSEC \
BIND_ETC \
Index: bsd.lib.mk
===================================================================
--- bsd.lib.mk (revision 209268)
+++ bsd.lib.mk (working copy)
@@ -46,7 +46,7 @@
.endif
.endif
-.if !defined(DEBUG_FLAGS)
+.if !defined(DEBUG_FLAGS) || ${MK_BINARY_SYMBOLS} == "no"
STRIP?= -s
.endif
Index: bsd.prog.mk
===================================================================
--- bsd.prog.mk (revision 209268)
+++ bsd.prog.mk (working copy)
@@ -33,7 +33,7 @@
CFLAGS+=${CRUNCH_CFLAGS}
.endif
-.if !defined(DEBUG_FLAGS)
+.if !defined(DEBUG_FLAGS) || ${MK_BINARY_SYMBOLS} == "no"
STRIP?= -s
.endif
More information about the freebsd-arch
mailing list