*** empty log message ***

This commit is contained in:
ceriel 1987-02-05 14:11:46 +00:00
parent 49b619cec2
commit 10f6d88ba1
3 changed files with 12 additions and 1 deletions

View 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

View 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. */

View 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)) {