Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 1998 15:05:39 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        archie@whistle.com, phk@critter.freebsd.dk
Cc:        bde@zeta.org.au, cvs-committers@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: getting to -Wunused
Message-ID:  <199812070405.PAA03585@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Cool.. we can make "Step 5" the removal of non-static unused functions :-)
>By the way, I neede to add "-aout":

Use `OBJFORMAT=aout kernxref.sh'.

>Index: kernxref.sh
>===================================================================
>RCS file: /home/ncvs/src/tools/tools/kernxref/kernxref.sh,v
>retrieving revision 1.9
>diff -u -r1.9 kernxref.sh
>--- kernxref.sh	1998/11/27 10:18:56	1.9
>+++ kernxref.sh	1998/12/06 18:57:57
>@@ -13,7 +13,7 @@
> # kernel.
> 
> cd /sys/compile/LINT
>-nm -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` |
>+nm -aout -gon `echo *.o /lkm/*.o | tr ' ' '\012' | egrep -v '(aicasm|genassym)'` |
>     tr : ' ' | awk '
> NF > 1	{
> 	if (length($2) == 8) {
>

Bugs in this:
- it breaks kernxref.sh some more for elf kernels.  LKMs always have a.out
  format, but the kernel may have elf format.  kernxref.sh should look at
  modules instead of LKMs, but since modules are in the default format,
  that will only work when the kernel is in the default format.
- it makes a line longer than 80 characters.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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