*** empty log message ***
authorceriel <none@none>
Thu, 5 Feb 1987 14:11:46 +0000 (14:11 +0000)
committerceriel <none@none>
Thu, 5 Feb 1987 14:11:46 +0000 (14:11 +0000)
util/led/Makefile
util/led/const.h
util/led/main.c

index 916fa5e..d1f2f16 100644 (file)
@@ -29,6 +29,8 @@ led:  $(OFILES)
 
 install:led
        cp led $(LIBDIR)/em_led
+       cp led.6 $(EM)/man/led.6
+       cp ack.out.5 $(EM)/man/ack.out.5
 
 cmp:   led
        cmp led $(LIBDIR)/em_led
index 7252e9c..445122f 100644 (file)
@@ -10,6 +10,7 @@ typedef int           bool;
 
 #define RFLAG          0x01            /* -r flag given.               */
 #define SFLAG          0x02            /* -s flag given.               */
+#define CFLAG          0x04            /* -c flag given.               */
 
 #define PLAIN          0               /* Input file is a normal file. */
 #define ARCHIVE                1               /* Input file is an archive.    */
index a372d85..3b7e237 100644 (file)
@@ -131,6 +131,13 @@ first_pass(argv)
                                fatal("usage: -b<section number>:<base>");
                        setbase(sectno, number(++argp));
                        break;
+               case 'c':
+                       /*
+                        * Might be used in combination with 'r', to produce
+                        * relocatable output, but handle commons now.
+                        */
+                       flagword |= CFLAG;
+                       break;
 #ifndef NDEBUG
                case 'd':
                        DEB = 1;
@@ -413,10 +420,11 @@ complete_sections()
                outsect[sectindex].os_foff = foff;
                foff += outsect[sectindex].os_flen;
 
-               if (flagword & RFLAG)
+               if ((flagword & RFLAG) && !(flagword & CFLAG))
                        continue;
 
                outsect[sectindex].os_size += sect_comm[sectindex];
+               if (flagword & RFLAG)
                outsect[sectindex].os_lign =
                        tstbit(sectindex, lignmap) ? sect_lign[sectindex] : 1;
                if (tstbit(sectindex, basemap)) {