ELF: Check ELF_COMMON_DEF_P for common symbols
[deliverable/binutils-gdb.git] / bfd / elf64-s390.c
index b5fd05f2630e53b67e3a32bfdb25f67a9b13539d..fbbf8d6e1def3f5435e73b890e8c1c613c910c3d 100644 (file)
@@ -3582,7 +3582,7 @@ elf_s390_finish_dynamic_symbol (bfd *output_bfd,
             RELATIVE reloc.  The entry in the global offset table
             will already have been initialized in the
             relocate_section function.  */
-         if (!h->def_regular)
+         if (!(h->def_regular || ELF_COMMON_DEF_P (h)))
            return FALSE;
          BFD_ASSERT((h->got.offset & 1) != 0);
          rela.r_info = ELF64_R_INFO (0, R_390_RELATIVE);
This page took 0.040731 seconds and 4 git commands to generate.