Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 1999 07:09:18 -0800
From:      David Greenman <dg@root.com>
To:        Marcel Moolenaar <marcel@scc.nl>
Cc:        arch@freebsd.org
Subject:   Re: [Fwd: Rq for approval: new command: genassym] 
Message-ID:  <199912221509.HAA00336@implode.root.com>
In-Reply-To: Your message of "Wed, 22 Dec 1999 15:37:42 %2B0100." <3860E236.811FE085@scc.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
   Sounds good to me...

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
Creator of high-performance Internet servers - http://www.terasolutions.com
Pave the road of life with opportunities.

>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?
>
>Thanks,
>
>-- 
>Marcel Moolenaar                        mailto:marcel@scc.nl
>SCC Internetworking & Databases           http://www.scc.nl/
>The FreeBSD project                mailto:marcel@FreeBSD.org
>
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-arch" in the body of the message




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?199912221509.HAA00336>