Subject: Re: CFLAGS
To: David Laight <david@l8s.co.uk>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 11/10/2007 15:08:07
On Sat, 10 Nov 2007 14:48:30 +0000
David Laight <david@l8s.co.uk> wrote:
> On Fri, Nov 09, 2007 at 03:57:58PM +0000, Steven M. Bellovin wrote:
> > On Fri, 9 Nov 2007 14:16:19 +0000
> > Matthias Scheler <tron@zhadum.org.uk> wrote:
> >
> > > On Thu, Nov 08, 2007 at 08:21:00PM +0100, Pavel Cahyna wrote:
> > > > > And use the following kernel config option, if you want the
> > > > > debug information:
> > > > > makeoptions DEBUG="-g"
> > > >
> > > > ... which creates a big netbsd.gdb with debugging information
> > > > and a small netbsd without them.
> > >
> > > Don't forget keep the "netbsd.gdb" around which will be very handy
> > > when having a look at a kernel crash dump later.
> > >
> > Perhaps 'make install' in the kernel build directory should copy
> > both /netbsd and /netbsd.gdb to /, and savecore should copy both
> > to /var/crash.
>
> Which actually bets the question of the sanity of having two files.
> (Yes, you may want to strip some non-loadable info for small systems,
> but in general you don't need to worry that much.)
>
Agreed. If there's no run-time hit from the version with symbols, why
strip them by default?
--Steve Bellovin, http://www.cs.columbia.edu/~smb