Unify the behaviour of ld.bfd and ld.gold with respect to warning about unresolved...
[deliverable/binutils-gdb.git] / bfd / coff-rs6000.c
index bf87596a4fe6da609c3a66f65d49e4063173ce3c..51fab9f0536309bcc8b952e6e0b5d9eabd4f5d57 100644 (file)
@@ -3389,7 +3389,8 @@ xcoff_ppc_relocate_section (bfd *output_bfd,
                  (info, h->root.root.string,
                   input_bfd, input_section,
                   rel->r_vaddr - input_section->vma,
-                  info->unresolved_syms_in_objects == RM_GENERATE_ERROR);
+                  info->unresolved_syms_in_objects == RM_DIAGNOSE &&
+                      !info->warn_unresolved_syms);
 
              if (h->root.type == bfd_link_hash_defined
                  || h->root.type == bfd_link_hash_defweak)
This page took 0.028076 seconds and 4 git commands to generate.