Date: Thu, 17 Jun 2010 14:33:34 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: arch@FreeBSD.org Subject: Time to stop stripping binaries? Message-ID: <20100617.143334.584432776655157077.imp@bsdimp.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100617.143334.584432776655157077.imp>