bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-frv.c
index de7a1132160cfdd7e6a8d583f61879d67cee28a4..eedc55d6e7dfc8bae17c3341e71e5386e6c6e84d 100644 (file)
@@ -1958,16 +1958,16 @@ elf32_frv_relocate_section (output_bfd, info, input_bfd, input_section,
            {
              relocation = 0;
            }
-         else if (   ! info->executable
-                  && ! info->symbolic
-                  && info->unresolved_syms_in_objects == RM_IGNORE
+         else if (info->unresolved_syms_in_objects == RM_IGNORE
                   && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
            relocation = 0;
          else
            {
              if (! ((*info->callbacks->undefined_symbol)
                     (info, h->root.root.string, input_bfd,
-                     input_section, rel->r_offset, TRUE)))
+                     input_section, rel->r_offset,
+                     (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
+                      || ELF_ST_VISIBILITY (h->other)))))
                return FALSE;
              relocation = 0;
            }
This page took 0.024353 seconds and 4 git commands to generate.