Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 1995 22:29:04 -0700 (MST)
From:      Scott Mace <smace@metal-mail.neosoft.com>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        bde@freefall.cdrom.com, smace@metal-mail.neosoft.com, CVS-commiters@freefall.cdrom.com, cvs-usrbin@freefall.cdrom.com
Subject:   Re: cvs commit: src/usr.bin/symorder symorder.1 symorder.c
Message-ID:  <199501210529.WAA06447@metal.ops.neosoft.com>
In-Reply-To: <199501210330.OAA09259@godzilla.zeta.org.au> from "Bruce Evans" at Jan 21, 95 02:30:09 pm

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501210529.WAA06447>