Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2010 12:54:36 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        freebsd-stable@freebsd.org, doconnor@gsoft.com.au
Subject:   Re: Kernel symbol file alternate location
Message-ID:  <20100806095436.GL22295@deviant.kiev.zoral.com.ua>
In-Reply-To: <201008060729.o767TVFZ023996@lurza.secnetix.de>
References:  <50BEF58B-A155-4C46-B512-C94E0FD95D3E@gsoft.com.au> <201008060729.o767TVFZ023996@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZR2l4dEWubZVuJJE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 06, 2010 at 09:29:31AM +0200, Oliver Fromme wrote:
> Daniel O'Connor wrote:
>  > On 06/08/2010, at 2:38, Oliver Fromme wrote:
>  > > > I think this is the main reason / has had to grow - the actual ker=
nel
>  > > > is relatively small so even a 256Mb / could hold several, but with
>  > > > the symbol files it is not possible.
>  > >=20
>  > > I think a very simple solution would be to install the symbol
>  > > files elsewhere (probably configurable via make.conf), and
>  > > install symlinks in the kernel directory.  If you do this,
>  > > tools using the symbol files won't have to be changed.
>  > >=20
>  > > This would probably be a fairly trivial change to the install-
>  > > kernel target, I guess.  I don't have patches, though.
>  >=20
>  > Yeah, I don't think it's hard to move them, however I'm worried what
>  > it will break :)
>  >
>  > The only thing I can see that would have to change would be kgdb so
>  > it tells gdb where to find the symbols.
>=20
> That's why I suggested to place symlinks in the kernel
> directory.  No change to kgdb necessary.
>=20
> It might even be possible to not install the symbol files
> at all, but keep them under /usr/obj, so the installkernel
> target would have to do nothing more than create symlinks.
> This could be controlled by a make.conf variable, like
> SYMLINK_SYMBOLS=3DYES ("NO" would be the existing behaviour
> of installing the actual symbol files in /boot/kernel).

If you keep /usr/obj around, you do not need symbol files at all,
and INSTALL_NODEBUG?=3Dtrue in make.conf is enough. You can always
use kernel.debug and modules with debugging symbols from build
directory for kgdb.

--ZR2l4dEWubZVuJJE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkxb29sACgkQC3+MBN1Mb4j4awCgsJfPGRBFmYvbJGuCK+axtb/v
CvMAn0DU63RZ2D5QmNU5GSZWXwplFXeO
=jhgd
-----END PGP SIGNATURE-----

--ZR2l4dEWubZVuJJE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100806095436.GL22295>