Return void from linker callbacks
[deliverable/binutils-gdb.git] / bfd / elf32-arc.c
index 1e012e29a0cb93463b8bf7042d12830b52e79f72..08949c7f5c630a65b677c0ad4dedbcb0e3c81865 100644 (file)
@@ -1462,25 +1462,19 @@ elf_arc_relocate_section (bfd *            output_bfd,
                {
                  /* Fail if it is linking for PIE and the symbol is
                     undefined.  */
-                 if (bfd_link_executable (info)
-                     && !(*info->callbacks->undefined_symbol)
-                       (info, h->root.root.string, input_bfd, input_section,
-                        rel->r_offset, TRUE))
-                   {
-                     return FALSE;
-                   }
+                 if (bfd_link_executable (info))
+                   (*info->callbacks->undefined_symbol)
+                     (info, h->root.root.string, input_bfd, input_section,
+                      rel->r_offset, TRUE);
                  reloc_data.sym_value = h->plt.offset;
                  reloc_data.sym_section = htab->splt;
 
                  reloc_data.should_relocate = TRUE;
                }
-             else if (!bfd_link_pic (info)
-                      && !(*info->callbacks->undefined_symbol)
-                      (info, h->root.root.string, input_bfd, input_section,
-                       rel->r_offset, TRUE))
-               {
-                 return FALSE;
-               }
+             else if (!bfd_link_pic (info))
+               (*info->callbacks->undefined_symbol)
+                 (info, h->root.root.string, input_bfd, input_section,
+                  rel->r_offset, TRUE);
            }
 
          if (h->got.glist != NULL)
This page took 0.026091 seconds and 4 git commands to generate.