Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 1995 14:30:09 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@freefall.cdrom.com, smace@metal-mail.neosoft.com
Cc:        CVS-commiters@freefall.cdrom.com, cvs-usrbin@freefall.cdrom.com
Subject:   Re: cvs commit: src/usr.bin/symorder symorder.1 symorder.c
Message-ID:  <199501210330.OAA09259@godzilla.zeta.org.au>

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