From owner-cvs-usrbin Fri Jan 20 21:29:26 1995 Return-Path: cvs-usrbin-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id VAA17538 for cvs-usrbin-outgoing; Fri, 20 Jan 1995 21:29:26 -0800 Received: from Starbase.NeoSoft.COM (root@starbase.NeoSoft.COM [198.64.6.26]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id VAA17529; Fri, 20 Jan 1995 21:29:20 -0800 Received: from metal.ops.neosoft.com (root@glenn-slip52.nmt.edu [129.138.5.152]) by Starbase.NeoSoft.COM (8.6.9/8.6.9) with ESMTP id XAA13999; Fri, 20 Jan 1995 23:29:08 -0600 X-Provider: NeoSoft, Inc.: Internet Service Provider (713) 684-5969 Received: (from smace@localhost) by metal.ops.neosoft.com (8.6.9/8.6.9) id WAA06447; Fri, 20 Jan 1995 22:29:04 -0700 From: Scott Mace Message-Id: <199501210529.WAA06447@metal.ops.neosoft.com> Subject: Re: cvs commit: src/usr.bin/symorder symorder.1 symorder.c To: bde@zeta.org.au (Bruce Evans) Date: Fri, 20 Jan 1995 22:29:04 -0700 (MST) Cc: bde@freefall.cdrom.com, smace@metal-mail.neosoft.com, CVS-commiters@freefall.cdrom.com, cvs-usrbin@freefall.cdrom.com In-Reply-To: <199501210330.OAA09259@godzilla.zeta.org.au> from "Bruce Evans" at Jan 21, 95 02:30:09 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 850 Sender: cvs-usrbin-owner@FreeBSD.org Precedence: bulk THis fixes the problem.... Thanks, Scott > > >Whenever I try and build a kernel with debugging (config -g) I get the > >following when trying to re-arrange the symbol table > > >symorder: kernel: corrupted symbol table: Inappropriate file type or format > > Oops. Try this fix. I'll commit it later. > > Makefile.i386 may require changes too. What does gdb do if the *g*compiled* > symbols are missing? It may not mater for the things that gdb can do with > kernel images. > > Bruce > > *** symorder.c~ Tue Jan 17 00:00:10 1995 > --- symorder.c Sat Jan 21 14:20:49 1995 > *************** > *** 292,295 **** > --- 288,293 ---- > register int x; > > + if (p->n_type & N_STAB || p->n_un.n_strx == 0) > + return (0); > if (p->n_un.n_strx < sizeof(int) || p->n_un.n_strx >= strtabsize) > badfmt("corrupted symbol table"); >