only give warning about unresolved references if -u option is not given

This commit is contained in:
ceriel 1989-10-16 14:52:03 +00:00
parent 7b969cc623
commit 85da3bcac1
2 changed files with 6 additions and 2 deletions

View file

@ -138,9 +138,11 @@ main(argc, argv)
if (BADMAGIC(outhead))
fatal("Not an ack object file.\n");
if (outhead.oh_flags & HF_LINK) {
unresolved++;
if (! unresolved) {
fprintf(stderr,"Warning: contains unresolved references.\n");
}
unresolved++;
}
else if (outhead.oh_nrelo > 0)
fprintf(stderr, "Warning: relocation information present.\n");
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )

View file

@ -138,9 +138,11 @@ main(argc, argv)
if (BADMAGIC(outhead))
fatal("Not an ack object file.\n");
if (outhead.oh_flags & HF_LINK) {
unresolved++;
if (! unresolved) {
fprintf(stderr,"Warning: contains unresolved references.\n");
}
unresolved++;
}
else if (outhead.oh_nrelo > 0)
fprintf(stderr, "Warning: relocation information present.\n");
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )