]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elflink.c
PR22300, Abort in elf32_hppa_relocate_section building polyml
[thirdparty/binutils-gdb.git] / bfd / elflink.c
index 20057f55f1678c4a75e8cfb3e6e2940337b52a37..9f2d63b2805e4ddfe1fb5272c83b49574021b0c6 100644 (file)
@@ -1162,11 +1162,6 @@ _bfd_elf_merge_symbol (bfd *abfd,
   if (pold_weak)
     *pold_weak = oldweak;
 
-  /* This code is for coping with dynamic objects, and is only useful
-     if we are doing an ELF link.  */
-  if (!(*bed->relocs_compatible) (abfd->xvec, info->output_bfd->xvec))
-    return TRUE;
-
   /* We have to check it for every instance since the first few may be
      references and not all compilers emit symbol type for undefined
      symbols.  */