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