Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 22:29:30 +0200
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, "Bjoern A. Zeeb" <bz@FreeBSD.org>, cvs-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/conf kern.post.mk kmod.mk
Message-ID:  <864q723dqt.fsf@xps.des.no>
In-Reply-To: <20051027174042.GK68470@ip.net.ua> (Ruslan Ermilov's message of "Thu, 27 Oct 2005 20:40:42 %2B0300")
References:  <200510271424.j9REOkr8091913@repoman.freebsd.org> <Pine.BSF.4.53.0510271714530.91525@e0-0.zab2.int.zabbadoz.net> <20051027174042.GK68470@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov <ru@FreeBSD.org> writes:
> On Thu, Oct 27, 2005 at 05:15:28PM +0000, Bjoern A. Zeeb wrote:
> > On Thu, 27 Oct 2005, Ruslan Ermilov wrote:
> > >   Log:
> > >   Installing debug modules was a bad idea -- I bogusly assumed that
> > >   our kernel linker will only load PT_LOAD segments, apparently not.
> > >   Instead, produce .dbg objects from .debug objects, and install
> > >   them together with non-debug objects, as described in objcopy(1).
> > is that because of this change?
> Yes.  I sent a patch for kldxref(8) that fixes this for review to
> amd64@.  These messages are harmless otherwise.

Wouldn't it be cleaner (and potentially simpler) to fix this by making
the kernel linker skip non-PT_LOAD sections?

(I just peeked at sys/kern/link_elf.c and it looks to me like it
*already* DTRT, so what exactly is the problem?)

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no




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