From: ceriel Date: Mon, 23 Oct 1989 10:51:46 +0000 (+0000) Subject: only give warning about relocation info if -u flag is not given X-Git-Tag: release-5-5~2181 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ead414d725f306c3ec91faa9e2ffea52d50c0277;p=ack.git only give warning about relocation info if -u flag is not given --- diff --git a/mach/sun2/cv/cv.c b/mach/sun2/cv/cv.c index 359958a14..a62b3fd23 100644 --- a/mach/sun2/cv/cv.c +++ b/mach/sun2/cv/cv.c @@ -143,7 +143,7 @@ main(argc, argv) } unresolved++; } - else if (outhead.oh_nrelo > 0) + else if (outhead.oh_nrelo > 0 && !unresolved) fprintf(stderr, "Warning: relocation information present.\n"); if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT ) fatal("Input file must have %d sections, not %ld\n", diff --git a/mach/sun3/cv/cv.c b/mach/sun3/cv/cv.c index 359958a14..a62b3fd23 100644 --- a/mach/sun3/cv/cv.c +++ b/mach/sun3/cv/cv.c @@ -143,7 +143,7 @@ main(argc, argv) } unresolved++; } - else if (outhead.oh_nrelo > 0) + else if (outhead.oh_nrelo > 0 && !unresolved) fprintf(stderr, "Warning: relocation information present.\n"); if ( outhead.oh_nsect!=LSECT && outhead.oh_nsect!=NSECT ) fatal("Input file must have %d sections, not %ld\n",