OSDN Git Service

only print "No relocations" when in verbose mode
[uclinux-h8/elf2flt.git] / elf2flt.c
index a950ff7..889ea98 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -281,6 +281,7 @@ get_symbol_offset(char *name, asection *sec, asymbol **symbol_table, long number
 
 
 
+#ifdef TARGET_nios2
 long
 get_gp_value(asymbol **symbol_table, long number_of_symbols)
 {
@@ -291,7 +292,8 @@ get_gp_value(asymbol **symbol_table, long number_of_symbols)
   }
   return -1;
 }
+#endif
+
 
 
 int32_t
@@ -2047,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);