bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-m32r.c
index 3f5fbcaeaa1f7acf0a1901511c7ad8ef25bb8ef3..e3c6ffb1ca260175053f2e0d761e624787878558 100644 (file)
@@ -2773,8 +2773,7 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section,
                }
              else if (h->root.type == bfd_link_hash_undefweak)
                relocation = 0;
-              else if (info->shared
-                       && (!info->symbolic)
+              else if (info->unresolved_syms_in_objects == RM_IGNORE
                        && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
                 relocation = 0;
              else
@@ -2782,7 +2781,7 @@ m32r_elf_relocate_section (output_bfd, info, input_bfd, input_section,
                  if (! ((*info->callbacks->undefined_symbol)
                         (info, h->root.root.string, input_bfd,
                          input_section, offset,
-                          (!info->shared
+                          (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
                            || ELF_ST_VISIBILITY (h->other)))))
                    return FALSE;
                  relocation = 0;
This page took 0.03995 seconds and 4 git commands to generate.