Browse Source

only give warning about relocation info if -u flag is not given

ceriel 35 years ago
parent
commit
273b5e53cb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      mach/sun2/cv/cv.c
  2. 1 1
      mach/sun3/cv/cv.c

+ 1 - 1
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",

+ 1 - 1
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",