In this issue:
Re: kldxref
Re: kldxref
HEADS UP [ja...@FreeBSD.org: cvs commit: src/sys/sparc64/sparc64 exception.S interrupt.S mp_exception.S]
sparc64 tinderbox failure
Re: kldxref
sparc64 tinderbox failure
sparc64 tinderbox failure
----------------------------------------------------------------------
Date: Sat, 28 Dec 2002 17:54:27 +0100 (CET)
From: Harti Brandt <bra...@fokus.gmd.de>
Subject: Re: kldxref
On Fri, 27 Dec 2002, Jake Burkholder wrote:
JB>Apparently, On Fri, Dec 27, 2002 at 01:44:04PM +0100,
JB> Harti Brandt said words to the effect of;
JB>
JB>>
JB>> Hi,
JB>>
JB>> is there any chance of fixing the kldxref problem? It seems to prevent
JB>> loading of modules via dependencies which is needed to resolve
JB>> inter-module symbol dependencies.
JB>>
JB>
JB>What's breaking kldxref is that it reads in kld object files and tries
JB>to read initialized variables from the data section before the files
JB>have been relocated. This only happens to work on other platforms, its
JB>not part of the elf spec and not guaranteed to work at all. The way to
JB>fix it is that everywhere that reads in a kld and accesses the module
JB>metadata data structures has to process the relocations first, so that
JB>the variables get their values poked in. This is not especially hard
JB>to fix, its just not high on my list of fun things to do.
If you give me a hint what to do and where to look, I try to fix it,
because at the moment kldload does not work for the more interesting cases
(ethernet drivers that need mii and netgraph) and I need this because I'm
trying to get NgATM running on sparc.
harti
- --
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
bra...@fokus.gmd.de, bra...@fokus.fhg.de
------------------------------
Date: Sat, 28 Dec 2002 09:11:57 -0800
From: Kris Kennaway <kr...@obsecurity.org>
Subject: Re: kldxref
- --lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Dec 28, 2002 at 05:54:27PM +0100, Harti Brandt wrote:
> If you give me a hint what to do and where to look, I try to fix it,
> because at the moment kldload does not work for the more interesting cases
> (ethernet drivers that need mii and netgraph) and I need this because I'm
> trying to get NgATM running on sparc.
Not that I want to dissuade you from fixing kldxref, but you can just
kldload the modules by hand, or compile them statically into your
kernel.
Kris
- --lrZ03NoBR/3+SXJZ
Content-Type: application/pgp-signature
Content-Disposition: inline
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE+DdtcWry0BWjoQKURAsETAJwK/DyxHGoMuzsq3ieVFzo7ZyeAvACfZRC9
1/fJztnvoEr8JpoMmj7Va+4=
=ZH9p
- -----END PGP SIGNATURE-----
- --lrZ03NoBR/3+SXJZ--
------------------------------
Date: Sat, 28 Dec 2002 19:48:55 -0500
From: Jake Burkholder <ja...@locore.ca>
Subject: HEADS UP [ja...@FreeBSD.org: cvs commit: src/sys/sparc64/sparc64 exception.S interrupt.S mp_exception.S]
If you are updating from -current before Nov. 6th please be sure to use
make buildkernel after buildworld so that the new assembler is used to
build the kernel. These mnemonics are not recognized by gcc from before
that date.
Jake
- ----- Forwarded message from Jake Burkholder <ja...@FreeBSD.org> -----
jake 2002/12/28 16:23:48 PST
Modified files:
sys/sparc64/sparc64 exception.S interrupt.S mp_exception.S
Log:
Use the meaningful mnemonics for ancillary state registers now that gas
is invoked properly to understand them.
%asr19 -> %gsr
%asr20 -> %set_softint
%asr21 -> %clear_softint
Revision Changes Path
1.57 +5 -6 src/sys/sparc64/sparc64/exception.S
1.3 +1 -1 src/sys/sparc64/sparc64/interrupt.S
1.8 +1 -1 src/sys/sparc64/sparc64/mp_exception.S
- ----- End forwarded message -----
------------------------------
Date: Sun, 29 Dec 2002 09:19:44 GMT
From: Mike Barcroft <mi...@sparc64.style9.org>
Subject: sparc64 tinderbox failure
- --------------------------------------------------------------
>>> Rebuilding the temporary build tree
- --------------------------------------------------------------
>>> stage 1: bootstrap tools
- --------------------------------------------------------------
>>> stage 2: cleaning up the object tree
- --------------------------------------------------------------
>>> stage 2: rebuilding the object tree
- --------------------------------------------------------------
>>> stage 2: build tools
- --------------------------------------------------------------
>>> stage 3: cross tools
- --------------------------------------------------------------
>>> stage 4: populating /tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include
- --------------------------------------------------------------
>>> stage 4: building libraries
- --------------------------------------------------------------
>>> stage 4: make dependencies
- --------------------------------------------------------------
>>> stage 4: building everything..
- --------------------------------------------------------------
===> sbin/swapon
cc1: warnings being treated as errors
/tinderbox/sparc64/src/sbin/swapon/swapon.c: In function `swaplist':
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 2)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 4)
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin/swapon.
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
------------------------------
Date: Sun, 29 Dec 2002 13:19:59 +0100 (CET)
From: Harti Brandt <bra...@fokus.gmd.de>
Subject: Re: kldxref
On Sat, 28 Dec 2002, Kris Kennaway wrote:
KK>On Sat, Dec 28, 2002 at 05:54:27PM +0100, Harti Brandt wrote:
KK>
KK>> If you give me a hint what to do and where to look, I try to fix it,
KK>> because at the moment kldload does not work for the more interesting cases
KK>> (ethernet drivers that need mii and netgraph) and I need this because I'm
KK>> trying to get NgATM running on sparc.
KK>
KK>Not that I want to dissuade you from fixing kldxref, but you can just
KK>kldload the modules by hand, or compile them statically into your
KK>kernel.
Netgraph cannot be loaded by hand because of the private namespace between
dependend modules (a symbol not explicit exported but global in a module
can be seen only by other modules if loaded via a dependency). Compiling
into the kernel is hardly an option if you are going to fix things taking
into account compile times on sparc.
harti
- --
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
bra...@fokus.gmd.de, bra...@fokus.fhg.de
------------------------------
Date: Sun, 29 Dec 2002 15:20:06 GMT
From: Mike Barcroft <mi...@sparc64.style9.org>
Subject: sparc64 tinderbox failure
- --------------------------------------------------------------
>>> Rebuilding the temporary build tree
- --------------------------------------------------------------
>>> stage 1: bootstrap tools
- --------------------------------------------------------------
>>> stage 2: cleaning up the object tree
- --------------------------------------------------------------
>>> stage 2: rebuilding the object tree
- --------------------------------------------------------------
>>> stage 2: build tools
- --------------------------------------------------------------
>>> stage 3: cross tools
- --------------------------------------------------------------
>>> stage 4: populating /tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include
- --------------------------------------------------------------
>>> stage 4: building libraries
- --------------------------------------------------------------
>>> stage 4: make dependencies
- --------------------------------------------------------------
>>> stage 4: building everything..
- --------------------------------------------------------------
===> sbin/swapon
cc1: warnings being treated as errors
/tinderbox/sparc64/src/sbin/swapon/swapon.c: In function `swaplist':
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 2)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 4)
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin/swapon.
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
------------------------------
Date: Sun, 29 Dec 2002 21:20:40 GMT
From: Mike Barcroft <mi...@sparc64.style9.org>
Subject: sparc64 tinderbox failure
- --------------------------------------------------------------
>>> Rebuilding the temporary build tree
- --------------------------------------------------------------
>>> stage 1: bootstrap tools
- --------------------------------------------------------------
>>> stage 2: cleaning up the object tree
- --------------------------------------------------------------
>>> stage 2: rebuilding the object tree
- --------------------------------------------------------------
>>> stage 2: build tools
- --------------------------------------------------------------
>>> stage 3: cross tools
- --------------------------------------------------------------
>>> stage 4: populating /tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include
- --------------------------------------------------------------
>>> stage 4: building libraries
- --------------------------------------------------------------
>>> stage 4: make dependencies
- --------------------------------------------------------------
>>> stage 4: building everything..
- --------------------------------------------------------------
===> sbin/swapon
cc1: warnings being treated as errors
/tinderbox/sparc64/src/sbin/swapon/swapon.c: In function `swaplist':
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:246: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 3)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:265: warning: field width is not type int (arg 5)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 2)
/tinderbox/sparc64/src/sbin/swapon/swapon.c:274: warning: field width is not type int (arg 4)
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin/swapon.
*** Error code 1
Stop in /tinderbox/sparc64/src/sbin.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
*** Error code 1
Stop in /tinderbox/sparc64/src.
------------------------------
End of freebsd-sparc-digest V5 #205
***********************************
To Unsubscribe: send mail to majo...@FreeBSD.org
with unsubscribe freebsd-sparc-digest in the body of the message