From owner-freebsd-arch Wed Dec 22 6:38: 8 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 1779B14DB9 for ; Wed, 22 Dec 1999 06:38: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 PAA07007 for ; Wed, 22 Dec 1999 15:38:02 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id PAA32956 for freebsd-arch@freebsd.org; Wed, 22 Dec 1999 15:38:02 +0100 (MET) Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 083D814DB9 for ; Wed, 22 Dec 1999 06:37:47 -0800 (PST) (envelope-from marcel@scc.nl) Received: from [212.238.132.94] (helo=scones.sup.scc.nl) by post.mail.nl.demon.net with esmtp (Exim 2.12 #1) id 120mtd-0003Z3-00 for arch@FreeBSD.org; Wed, 22 Dec 1999 14:37:45 +0000 Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id PAA20454 for ; Wed, 22 Dec 1999 15:37:43 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <3860E236.811FE085@scc.nl> Date: Wed, 22 Dec 1999 15:37:42 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: arch@freebsd.org Subject: [Fwd: Rq for approval: new command: genassym] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? 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