diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Configure | 2 | ||||
-rw-r--r-- | scripts/ksymoops/README | 7 | ||||
-rw-r--r-- | scripts/makelst | 21 | ||||
-rw-r--r-- | scripts/mkdep.c | 30 | ||||
-rw-r--r-- | scripts/ver_linux | 2 |
5 files changed, 42 insertions, 20 deletions
diff --git a/scripts/Configure b/scripts/Configure index 4cc31e42b..56c618697 100644 --- a/scripts/Configure +++ b/scripts/Configure @@ -570,7 +570,7 @@ echo "*** Check the top-level Makefile for additional configuration." if [ ! -f .hdepend -o "$CONFIG_MODVERSIONS" = "y" ] ; then echo "*** Next, you must run 'make dep'." else - echo "*** Next, you may run 'make zImage', 'make zdisk', or 'make zlilo'." + echo "*** Next, you may run 'make bzImage', 'make bzdisk', or 'make install'." fi echo diff --git a/scripts/ksymoops/README b/scripts/ksymoops/README index c463b4c71..f6cb06e3f 100644 --- a/scripts/ksymoops/README +++ b/scripts/ksymoops/README @@ -1,7 +1,8 @@ ksymoops has been removed from the kernel. It was always meant to be a free standing utility, not linked to any particular kernel version. -The latest version can be found in ftp://ftp.ocs.com.au/pub/ksymoops, -together with patches to other utilities in order to give more accurate -Oops debugging. +The latest version can be found in +ftp://ftp.<country>.kernel.org/pub/linux/utils/kernel/ksymoops together +with patches to other utilities in order to give more accurate Oops +debugging. Keith Owens <kaos@ocs.com.au> Sat Jun 19 10:30:34 EST 1999 diff --git a/scripts/makelst b/scripts/makelst new file mode 100644 index 000000000..f341229df --- /dev/null +++ b/scripts/makelst @@ -0,0 +1,21 @@ +#!/bin/bash +# A script to dump mixed source code & assembly +# with correct relocations from System.map +# Requires the following lines in Rules.make. +# +#%.lst: %.c +# $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -g -c -o $*.o $< +# $(TOPDIR)/scripts/makelst $* $(TOPDIR) $(OBJDUMP) +# +# Copyright (C) 2000 IBM Corporation +# Author(s): DJ Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) +# + +t1=`$3 --syms $2/$1.o | grep .text | grep " F " | head -n 1` +t2=`echo $t1 | gawk '{ print $6 }'` +t3=`grep $t2 $2/System.map` +t4=`echo $t3 | gawk '{ print $1 }'` +t5=`echo $t1 | gawk '{ print $1 }'` +t6=`echo $t4 - $t5 | sed s/a/A/g | sed s/b/B/g | sed s/c/C/g | sed s/d/D/g | sed s/e/E/g | sed s/f/F/g` +t7=`( echo ibase=16 ; echo $t6 ) | bc` +$3 --source --adjust-vma=$t7 $2/$1.o > $2/$1.lst diff --git a/scripts/mkdep.c b/scripts/mkdep.c index b11406cdb..34bc174cc 100644 --- a/scripts/mkdep.c +++ b/scripts/mkdep.c @@ -81,15 +81,9 @@ do_depname(void) */ void grow_config(int len) { - if (str_config == NULL) { - len_config = 0; - size_config = 4096; - str_config = malloc(4096); - if (str_config == NULL) - { perror("malloc"); exit(1); } - } - while (len_config + len > size_config) { + if (size_config == 0) + size_config = 2048; str_config = realloc(str_config, size_config *= 2); if (str_config == NULL) { perror("malloc config"); exit(1); } @@ -157,15 +151,9 @@ int len_precious = 0; */ void grow_precious(int len) { - if (str_precious == NULL) { - len_precious = 0; - size_precious = 4096; - str_precious = malloc(4096); - if (str_precious == NULL) - { perror("malloc precious"); exit(1); } - } - while (len_precious + len > size_precious) { + if (size_precious == 0) + size_precious = 2048; str_precious = realloc(str_precious, size_precious *= 2); if (str_precious == NULL) { perror("malloc"); exit(1); } @@ -294,6 +282,7 @@ void use_config(const char * name, int len) * The state machine looks for (approximately) these Perl regular expressions: * * m|\/\*.*?\*\/| + * m|\/\/.*| * m|'.*?'| * m|".*?"| * m|#\s*include\s*"(.*?)"| @@ -326,9 +315,18 @@ __start: CASE('C', cee); goto start; +/* // */ +slash_slash: + GETNEXT + CASE('\n', start); + NOTCASE('\\', slash_slash); + GETNEXT + goto slash_slash; + /* / */ slash: GETNEXT + CASE('/', slash_slash); NOTCASE('*', __start); slash_star_dot_star: GETNEXT diff --git a/scripts/ver_linux b/scripts/ver_linux index 20ebfd390..4682d0c7e 100644 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -10,6 +10,8 @@ echo '-- unusual then possibly you have very old versions)' uname -a insmod -V 2>&1 | awk 'NR==1 {print "Kernel modules ",$NF}' echo "Gnu C " `gcc --version` +make --version 2>&1 | awk -F, '{print $1}' | awk \ + '/GNU Make/{print "Gnu Make ",$NF}' ld -v 2>&1 | awk -F\) '{print $1}' | awk \ '/BFD/{print "Binutils ",$NF}' ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed -e 's/\.so$//' \ |