Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 10:47:55 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        "Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=" <des@des.no>
Cc:        cvs-src@freebsd.org, "Bjoern A. Zeeb" <bz@freebsd.org>, Ruslan Ermilov <ru@freebsd.org>, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/conf kern.post.mk kmod.mk
Message-ID:  <200510281047.57496.jhb@freebsd.org>
In-Reply-To: <864q723dqt.fsf@xps.des.no>
References:  <200510271424.j9REOkr8091913@repoman.freebsd.org> <20051027174042.GK68470@ip.net.ua> <864q723dqt.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 27 October 2005 04:29 pm, Dag-Erling Sm=F8rgrav wrote:
> 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?)

amd64 uses link_elf_obj.c which loads raw .o files, not .so files.

=2D-=20
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =3D  http://www.FreeBSD.org



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