From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 28 04:23:07 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAC8B106566C for ; Wed, 28 Sep 2011 04:23:07 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 66F258FC13 for ; Wed, 28 Sep 2011 04:23:06 +0000 (UTC) Received: by wyj26 with SMTP id 26so6483350wyj.13 for ; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TJgv5o/wL3ODI3iUyW7ULnqQ+8U3aULgpDMeQ1ZcI6Q=; b=PsRRK0ZpK6KyRwqNaIHnu39i5AMa2q13bLSrzLUU6J9XaO0d3mYkCiFpZm3BmVUNoA PTkZGD/cEhlK4LTfF7fLtr4lAm44pEpePw4hXh7zHi75XhqxC7RT4aEwP5Q/TFtEytE7 KuGQhiYZZPA+stI4Oo3OhV5SFXpNSUrF1FM7U= MIME-Version: 1.0 Received: by 10.227.36.197 with SMTP id u5mr9644401wbd.36.1317183786259; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Tue, 27 Sep 2011 21:23:06 -0700 (PDT) Date: Wed, 28 Sep 2011 00:23:06 -0400 Message-ID: From: Arnaud Lacombe To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Hackers Subject: Installation of kernel symbols file in a separate directory [Was: Re: Experiences with FreeBSD 9.0-BETA2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 04:23:07 -0000 Hi, [Moving the discussion on -hackers@] On Tue, Sep 27, 2011 at 6:02 PM, Arnaud Lacombe wrote: > Hi, > > On Tue, Sep 27, 2011 at 5:01 PM, Peter Jeremy wrote= : >> On 2011-Sep-26 19:48:23 -0400, Benjamin Kaduk wrote: >>>On Mon, 26 Sep 2011, Arnaud Lacombe wrote: >>>> The problem with /boot on a dedicated partition is the the kernel, >>>> since at least 8.x, is installed by default with a vast majority of >>>> crap. That's all the .symbols, that 99% of FreeBSD users will never >>>> uses. >>> >>>My recollection is that this is because kensmith forgot to take >>>'makeoptions DEBUG=3D-g' out of GENERIC when branching stable/8, and no = one >> >> Not quite - 'DEBUG=3D-g' was a deliberate move to make it easier for >> developers to talk users through faultfinding kernel issues. >> >> The correct fix is to install the .symbols files somewhere other than >> /boot/kernel - unfortunately, no-one has developed the necessary >> changes to the kernel installation. >> > I did too, will put patches online soon. > available here: https://github.com/lacombar/freebsd/commit/c1d5c4857361028dc40941273dd2ab95= 76c687fd This patch adds a KODIR_SYMBOLS variables which is to the kernel and modules .symbols files what the KODIR variable is to the kernel and modules files. By default ${KODIR_SYMBOLS} =3D ${KODIR}. =A0- Arnaud