Better handking for unresolved symbols
[deliverable/binutils-gdb.git] / bfd / elf64-sh64.c
index 2abf3c135a27c77dda80ab5cb948865730deb8b2..e0bc8df7e5d0fd9e3f1e6e01ca9808ac18c4fb34 100644 (file)
@@ -1610,6 +1610,8 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
        }
       else
        {
+         /* ??? Could we use the RELOC_FOR_GLOBAL_SYMBOL macro here ?  */
+
          /* Section symbols are never (?) placed in the hash table, so
             we can just ignore hash relocations when creating a
             relocatable object file.  */
@@ -1699,7 +1701,9 @@ sh_elf64_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
            }
          else if (h->root.type == bfd_link_hash_undefweak)
            relocation = 0;
-         else if (info->shared && !info->symbolic && !info->no_undefined)
+         else if (info->shared
+                  && !info->symbolic
+                  && info->unresolved_syms_in_objects == RM_IGNORE)
            relocation = 0;
          else
            {
This page took 0.034147 seconds and 4 git commands to generate.