Added U flag for exit status 0 with unresolved refs
This commit is contained in:
parent
67819cfd6c
commit
626e7b5b06
4 changed files with 8 additions and 1 deletions
|
@ -20,7 +20,7 @@ main(argc, 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
|
||||
* debugging information.
|
||||
*/
|
||||
|
@ -159,6 +159,7 @@ flags(arg)
|
|||
#ifdef JOHAN
|
||||
case 'j': ++jflag; break;
|
||||
#endif
|
||||
case 'U': ++Uflag; break;
|
||||
case '-':
|
||||
case '+':
|
||||
on = (*argp == '+');
|
||||
|
@ -517,6 +518,7 @@ check_def() {
|
|||
for (g = xglobs; count--; g++)
|
||||
if (g->g_name && (g->g_status&DEF)==0)
|
||||
printf(" %s\n",glostring(g));
|
||||
if (! Uflag) nerrors++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ int r_flag = 0; /* don't dump relocation tables */
|
|||
int jflag;
|
||||
#endif
|
||||
int wflag = 0; /* don't issue warning messages */
|
||||
int Uflag = 0; /* exit status 0 on unresolved refs */
|
||||
int eof_seen;
|
||||
int mod_sizes; /* Size info in current module ok? */
|
||||
|
||||
|
|
|
@ -99,6 +99,7 @@ extern int r_flag;
|
|||
extern int jflag;
|
||||
#endif
|
||||
extern int wflag;
|
||||
extern int Uflag;
|
||||
extern int eof_seen;
|
||||
extern int mod_sizes;
|
||||
/*
|
||||
|
|
|
@ -17,6 +17,9 @@ List all procedure names together with base-address (decimal and octal),
|
|||
procedure number and module of definition.
|
||||
.IP -d
|
||||
Used for debugging em_ass itself.
|
||||
.IP -U
|
||||
With this flag, em_ass has exit status 0 even when there are unresolved
|
||||
references.
|
||||
.PD
|
||||
.PP
|
||||
em_ass assembles and links together compact EM assembly language modules
|
||||
|
|
Loading…
Reference in a new issue