add N_FLAGCHECKSUM field to stabs for library names
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 26 Jul 1983 11:39:45 +0000 (03:39 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 26 Jul 1983 11:39:45 +0000 (03:39 -0800)
SCCS-vsn: usr.bin/pascal/pcexterns/pcexterns.awk 4.4

usr/src/usr.bin/pascal/pcexterns/pcexterns.awk

index cc6b116..da2504a 100644 (file)
@@ -1,15 +1,21 @@
 # Copyright (c) 1982 Regents of the University of California
 #
 # Copyright (c) 1982 Regents of the University of California
 #
-#      @(#)pcexterns.awk       4.3     (Berkeley)      %G%
+#      @(#)pcexterns.awk       4.4     (Berkeley)      %G%
 #
 # This generates .stabs for all the global routines and variables
 # in a library. The format of a stab can be found in man5/stab.5.
 #
 #
 # This generates .stabs for all the global routines and variables
 # in a library. The format of a stab can be found in man5/stab.5.
 #
+# This value must be coordinated with the one in ../src/pstab.h.
+#
+BEGIN {
+       N_FLAGCHECKSUM = 1;
+}
+#
 # Generate "source file" stab for the library name.
 #
 NR == 1        {
        name = substr($1, 1, index($1, ":") - 1);
 # Generate "source file" stab for the library name.
 #
 NR == 1        {
        name = substr($1, 1, index($1, ":") - 1);
-       printf "        .stabs  \"%s\",0x30,0,0x1,0\n", name;
+       printf "        .stabs  \"%s\",0x30,0,0x1,%d\n", name, N_FLAGCHECKSUM;
 }
 #
 # Generate "library routine" stab.
 }
 #
 # Generate "library routine" stab.