]> git.wh0rd.org Git - elf2flt.git/commitdiff
only print "No relocations" when in verbose mode
authorDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 06:17:42 +0000 (06:17 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 06:17:42 +0000 (06:17 +0000)
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
elf2flt.c

index 9ff02995b850b16f615d06a335bad85a448ce4e7..889ea98ffc71d006eea7bc57632d2ce5d9bea9c0 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -2049,7 +2049,7 @@ int main(int argc, char *argv[])
     output_relocs(abs_bfd, symbol_table, number_of_symbols, &reloc_len,
                  text, text_len, text_vma, data, data_len, data_vma, rel_bfd);
 
-  if (reloc == NULL)
+  if (reloc == NULL && verbose)
     printf("No relocations in code!\n");
 
   text_offs = real_address_bits(text_vma);