Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 21:21:46 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        dg@root.com
Cc:        Marcel Moolenaar <marcel@scc.nl>, arch@freebsd.org
Subject:   Re: [Fwd: Rq for approval: new command: genassym] 
Message-ID:  <19991223132146.71BF11CCE@overcee.netplex.com.au>
In-Reply-To: Message from David Greenman <dg@root.com>  of "Wed, 22 Dec 1999 07:09:18 PST." <199912221509.HAA00336@implode.root.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <marcel@scc.nl>
> >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




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