cvs commit: src/sys/conf kern.post.mk kmod.mk

Ruslan Ermilov ru at FreeBSD.ORG
Thu Oct 27 14:10:30 PDT 2005


On Thu, Oct 27, 2005 at 10:42:34PM +0200, Pawel Jakub Dawidek wrote:
> On Thu, Oct 27, 2005 at 08:40:42PM +0300, Ruslan Ermilov wrote:
> +> On Thu, Oct 27, 2005 at 05:15:28PM +0000, Bjoern A. Zeeb wrote:
> +> > On Thu, 27 Oct 2005, Ruslan Ermilov wrote:
> +> > 
> +> > > ru          2005-10-27 14:24:46 UTC
> +> > >
> +> > >   FreeBSD src repository
> +> > >
> +> > >   Modified files:
> +> > >     sys/conf             kern.post.mk kmod.mk
> +> > >   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 at .  These messages are harmless otherwise.
> 
> I'm seeing simlar thing when I built HEAD kernel on 6.x FreeBSD and
> tried to install it (i386 machine):
> 
> kldxref /diskless/lcf/boot/kernel
> kldxref: file isn't dynamically-linked
> kldxref: file isn't dynamically-linked
> kldxref: file isn't dynamically-linked
> [...]
> 
This is harmless as well, and the following patch is under
a peer review now:

%%%
Index: ef.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/kldxref/ef.c,v
retrieving revision 1.8
diff -u -p -r1.8 ef.c
--- ef.c	28 Aug 2004 19:31:10 -0000	1.8
+++ ef.c	27 Oct 2005 18:41:44 -0000
@@ -602,7 +602,8 @@ ef_open(const char *filename, struct elf
 			printf("\n");
 		ef->ef_nsegs = nsegs;
 		if (phdyn == NULL) {
-			warnx("file isn't dynamically-linked");
+			if (verbose)
+				warnx("file isn't dynamically-linked");
 			break;
 		}
 		if (ef_read_entry(ef, phdyn->p_offset,
%%%


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20051028/ab5e3b28/attachment.bin


More information about the cvs-src mailing list