x86: Add VERIFY_COPY_RELOC
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index 1fb0a2deaf1bde66ea24550a7561b434926f071c..c4cf7ae5e4a3ef36ac4b60204a4bbeb31ca46bce 100644 (file)
@@ -4253,13 +4253,7 @@ do_glob_dat:
       asection *s;
 
       /* This symbol needs a copy reloc.  Set it up.  */
-
-      if (h->dynindx == -1
-         || (h->root.type != bfd_link_hash_defined
-             && h->root.type != bfd_link_hash_defweak)
-         || htab->elf.srelbss == NULL
-         || htab->elf.sreldynrelro == NULL)
-       abort ();
+      VERIFY_COPY_RELOC (h, htab)
 
       rela.r_offset = (h->root.u.def.value
                       + h->root.u.def.section->output_section->vma
This page took 0.024451 seconds and 4 git commands to generate.