Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2008 08:17:40 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-stable@freebsd.org, peter@freebsd.org
Subject:   Re: kldstat causes kernel to print odd message
Message-ID:  <200801180817.49452.doconnor@gsoft.com.au>
In-Reply-To: <200801171528.38186.jhb@freebsd.org>
References:  <200801171410.38488.doconnor@gsoft.com.au> <200801171528.38186.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2160971.GzGxA2LkL2
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Fri, 18 Jan 2008, John Baldwin wrote:
> > Can anyone explain what the underlying problem is? (I am guessing
> > some ordering issue where normally elf64_obj is called first so the
> > other is normally never called..)
>
> amd64 uses link_elf_obj.c, all the other archs use link_elf.c, hence
> the duplication.  link_elf.c is used to load kld's that are ELF
> shared objects (i.e. foo.so) where as link_elf_obj.c is used to load
> kld's that are ELF objects (i.e. foo.o).  I think you are going to
> get this everytime you do a kldload on amd64 because it will always
> try link_elf.c first due to compile order (MI files are ordered in
> the makefile before MD ones), emit the warning, and then try
> link_elf_obj.c.

OK, that was my guess - the thing is that the last release I made didn't=20
do this and I don't have any special options in the release or=20
anything.

I guess one option would be to put #ifdef amd64 around the error message=20
in link_elf.c.

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart2160971.GzGxA2LkL2
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBHj80F5ZPcIHs/zowRAtudAJ4uZkTBKNQN4j8XiaHna+F/UXCbqgCfa12v
x9EwJ1eH89o/q8zRpSDtplQ=
=uVp0
-----END PGP SIGNATURE-----

--nextPart2160971.GzGxA2LkL2--



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