Added U flag for exit status 0 with unresolved refs

This commit is contained in:
ceriel 1990-02-09 12:44:37 +00:00
parent 67819cfd6c
commit 626e7b5b06
4 changed files with 8 additions and 1 deletions

View file

@ -20,7 +20,7 @@ main(argc, argv)
char **argv; char **argv;
{ {
/* /*
* Usage: ass [-[d][p][m][u]] [-s(s/m/l/x)] [ [file] [flag] ] ... * Usage: ass [-[d][p][m][u][U]] [-s(s/m/l/x)] [ [file] [flag] ] ...
* The d flag can be repeated several times, resulting in more * The d flag can be repeated several times, resulting in more
* debugging information. * debugging information.
*/ */
@ -159,6 +159,7 @@ flags(arg)
#ifdef JOHAN #ifdef JOHAN
case 'j': ++jflag; break; case 'j': ++jflag; break;
#endif #endif
case 'U': ++Uflag; break;
case '-': case '-':
case '+': case '+':
on = (*argp == '+'); on = (*argp == '+');
@ -517,6 +518,7 @@ check_def() {
for (g = xglobs; count--; g++) for (g = xglobs; count--; g++)
if (g->g_name && (g->g_status&DEF)==0) if (g->g_name && (g->g_status&DEF)==0)
printf(" %s\n",glostring(g)); printf(" %s\n",glostring(g));
if (! Uflag) nerrors++;
} }
} }

View file

@ -104,6 +104,7 @@ int r_flag = 0; /* don't dump relocation tables */
int jflag; int jflag;
#endif #endif
int wflag = 0; /* don't issue warning messages */ int wflag = 0; /* don't issue warning messages */
int Uflag = 0; /* exit status 0 on unresolved refs */
int eof_seen; int eof_seen;
int mod_sizes; /* Size info in current module ok? */ int mod_sizes; /* Size info in current module ok? */

View file

@ -99,6 +99,7 @@ extern int r_flag;
extern int jflag; extern int jflag;
#endif #endif
extern int wflag; extern int wflag;
extern int Uflag;
extern int eof_seen; extern int eof_seen;
extern int mod_sizes; extern int mod_sizes;
/* /*

View file

@ -17,6 +17,9 @@ List all procedure names together with base-address (decimal and octal),
procedure number and module of definition. procedure number and module of definition.
.IP -d .IP -d
Used for debugging em_ass itself. Used for debugging em_ass itself.
.IP -U
With this flag, em_ass has exit status 0 even when there are unresolved
references.
.PD .PD
.PP .PP
em_ass assembles and links together compact EM assembly language modules em_ass assembles and links together compact EM assembly language modules