From owner-freebsd-arch Thu Dec 23 5:22: 6 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 1B6C414F1B for ; Thu, 23 Dec 1999 05:22:05 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id OAA22366 for ; Thu, 23 Dec 1999 14:22:01 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id OAA38640 for freebsd-arch@freebsd.org; Thu, 23 Dec 1999 14:22:00 +0100 (MET) Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 8B5FB14E65 for ; Thu, 23 Dec 1999 05:21:50 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 71BF11CCE; Thu, 23 Dec 1999 21:21:46 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: dg@root.com Cc: Marcel Moolenaar , arch@freebsd.org Subject: Re: [Fwd: Rq for approval: new command: genassym] In-Reply-To: Message from David Greenman of "Wed, 22 Dec 1999 07:09:18 PST." <199912221509.HAA00336@implode.root.com> Date: Thu, 23 Dec 1999 21:21:46 +0800 From: Peter Wemm Message-Id: <19991223132146.71BF11CCE@overcee.netplex.com.au> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Greenman wrote: > Sounds good to me... > > -DG My concern is chicken/egg problems.. eg: how do you build a 4.0 kernel on a 3.x system in order to complete the 'installworld' which requires a kernel to be already built? It's no big deal but it's one more "special" thing. config(8) and company are in the same boat, I'd rather we did less of this than more. > >I sort of automaticly posted this to -committers... > > > >-------- Original Message -------- > >Subject: Rq for approval: new command: genassym > >Date: Wed, 22 Dec 1999 14:39:31 +0100 > >From: Marcel Moolenaar > >Organization: SCC vof > >To: committers@freebsd.org > > > >Hi, > > > >Cross-building a kernel and modules (linux and svr4 in this case) is > >still not possible because the way assembler symbols are generated. The > >problem is basicly that we need to run a program built with the > >cross-compiler, which is not always possible. To solve this I made a > >genassym tool. It works as follows: > > > >A C source file (genassym.c for example) contains a number of data > >declarations of the form: > > int assym_MY_SYMBOL_NAME = SOME_VALUE; > > > >This file is compiled. The genassym tool reads the ELF object file and > >extracts the data declarations and creates the appropriate assembler > >declarations of the form: > > #define MY_SYMBOL_NAME SOME_VALUE > > > >A genassym tool is needed to be able to cross-build an i386 world on > >Alpha (for example) because the linux and svr4 modules won't build > >otherwise. Of course we also need this when we want to cross-build a > >kernel... > > > >The tool (incl. manpage) can be downloaded: > > http://www.freebsd.org/~marcel/genassyms.tar.gz > > > >Rewritten xxx_genassym.c source files for i386, alpha, linux module and > >svr4 module can be downloaded: > > http://www.freebsd.org/~marcel/assyms.tar.gz > > > >Q: Can I add the tool to src/usr.bin and eventually change the source > >files and Makefiles? Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message