Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 1999 15:37:42 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        arch@freebsd.org
Subject:   [Fwd: Rq for approval: new command: genassym]
Message-ID:  <3860E236.811FE085@scc.nl>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3860E236.811FE085>