only give warning about unresolved references if -u option is not given
This commit is contained in:
parent
7b969cc623
commit
85da3bcac1
|
@ -138,9 +138,11 @@ main(argc, argv)
|
||||||
if (BADMAGIC(outhead))
|
if (BADMAGIC(outhead))
|
||||||
fatal("Not an ack object file.\n");
|
fatal("Not an ack object file.\n");
|
||||||
if (outhead.oh_flags & HF_LINK) {
|
if (outhead.oh_flags & HF_LINK) {
|
||||||
unresolved++;
|
if (! unresolved) {
|
||||||
fprintf(stderr,"Warning: contains unresolved references.\n");
|
fprintf(stderr,"Warning: contains unresolved references.\n");
|
||||||
}
|
}
|
||||||
|
unresolved++;
|
||||||
|
}
|
||||||
else if (outhead.oh_nrelo > 0)
|
else if (outhead.oh_nrelo > 0)
|
||||||
fprintf(stderr, "Warning: relocation information present.\n");
|
fprintf(stderr, "Warning: relocation information present.\n");
|
||||||
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )
|
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )
|
||||||
|
|
|
@ -138,9 +138,11 @@ main(argc, argv)
|
||||||
if (BADMAGIC(outhead))
|
if (BADMAGIC(outhead))
|
||||||
fatal("Not an ack object file.\n");
|
fatal("Not an ack object file.\n");
|
||||||
if (outhead.oh_flags & HF_LINK) {
|
if (outhead.oh_flags & HF_LINK) {
|
||||||
unresolved++;
|
if (! unresolved) {
|
||||||
fprintf(stderr,"Warning: contains unresolved references.\n");
|
fprintf(stderr,"Warning: contains unresolved references.\n");
|
||||||
}
|
}
|
||||||
|
unresolved++;
|
||||||
|
}
|
||||||
else if (outhead.oh_nrelo > 0)
|
else if (outhead.oh_nrelo > 0)
|
||||||
fprintf(stderr, "Warning: relocation information present.\n");
|
fprintf(stderr, "Warning: relocation information present.\n");
|
||||||
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )
|
if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT )
|
||||||
|
|
Loading…
Reference in a new issue