From owner-freebsd-arch Wed Dec 20 22:28:44 2000 From owner-freebsd-arch@FreeBSD.ORG Wed Dec 20 22:28:42 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 506DA37B400 for ; Wed, 20 Dec 2000 22:28:41 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id WAA24281 for ; Wed, 20 Dec 2000 22:28:39 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.1/8.11.0) id eBL6Sd773356; Wed, 20 Dec 2000 22:28:39 -0800 (PST) (envelope-from jdp) Date: Wed, 20 Dec 2000 22:28:39 -0800 (PST) Message-Id: <200012210628.eBL6Sd773356@vashon.polstra.com> To: arch@freebsd.org From: John Polstra Reply-To: arch@freebsd.org Subject: Re: gensetdefs using sh(1),sed(1),grep(1) and awk(1) In-Reply-To: <20001221103548.A10223@rafe.jeamland.net> References: <3A405A43.5C10697C@cup.hp.com> <3A410ACB.3CB3C32@cup.hp.com> <20001220115432.B10298@dragon.nuxi.com> <20001221103548.A10223@rafe.jeamland.net> Organization: Polstra & Co., Seattle, WA Sender: jdp@wall.polstra.com Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <20001221103548.A10223@rafe.jeamland.net>, Benno Rice wrote: > On Wed, Dec 20, 2000 at 11:54:32AM -0800, David O'Brien wrote: > > > > Yes, and I still fail to see why one cannot build a gensetdefs binary > > (ie, from C source) for the target machine manually and use that. From > > the looks of it that is what DFR did for his IA-64 work. > > Because the current gensetdefs will refuse to deal with a target endianness > that's different to the host's. Sheesh, that wouldn't be hard to fix. The C version (which I wrote, by the way) is only 375 lines total. It uses about 3 kinds of ELF headers, whose bytes could be swapped in a few lines of code each. Why anybody would want to take a perfectly good working C program that already exists and rewrite it in is a bit of a mystery to me. You folks could have fixed the existing program in about a tenth of the time you've spent ranting on this thread. IMHO piping the output of objdump into a perl script or into a shell script that calls awk, etc., is a hack. It's tolerable if you don't have anything cleaner -- but we _do_. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message