Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 00:08:38 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.ORG>
Cc:        cvs-src@FreeBSD.ORG, "Bjoern A. Zeeb" <bz@FreeBSD.ORG>, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/conf kern.post.mk kmod.mk
Message-ID:  <20051027210838.GZ68470@ip.net.ua>
In-Reply-To: <20051027204234.GA3596@garage.freebsd.pl>
References:  <200510271424.j9REOkr8091913@repoman.freebsd.org> <Pine.BSF.4.53.0510271714530.91525@e0-0.zab2.int.zabbadoz.net> <20051027174042.GK68470@ip.net.ua> <20051027204234.GA3596@garage.freebsd.pl>

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

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

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:
> +> >=20
> +> > > 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 no=
t.
> +> > >   Instead, produce .dbg objects from .debug objects, and install
> +> > >   them together with non-debug objects, as described in objcopy(1).
> +> >=20
> +> > is that because of this change?
> +> >=20
> +> Yes.  I sent a patch for kldxref(8) that fixes this for review to
> +> amd64@.  These messages are harmless otherwise.
>=20
> I'm seeing simlar thing when I built HEAD kernel on 6.x FreeBSD and
> tried to install it (i386 machine):
>=20
> kldxref /diskless/lcf/boot/kernel
> kldxref: file isn't dynamically-linked
> kldxref: file isn't dynamically-linked
> kldxref: file isn't dynamically-linked
> [...]
>=20
This is harmless as well, and the following patch is under
a peer review now:

%%%
Index: ef.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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 =3D nsegs;
 		if (phdyn =3D=3D 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,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

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

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

iD8DBQFDYUHWqRfpzJluFF4RAjyMAJ0XCF39OwM8mb9cK34MSQU5QAtdGACdHzPZ
piGCmlKscfiVrL15fa3hSIM=
=LHOw
-----END PGP SIGNATURE-----

--MziYxCZO8WOaTd4I--



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