]> Git Repo - binutils.git/blobdiff - bfd/elf64-x86-64.c
* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
[binutils.git] / bfd / elf64-x86-64.c
index 7b06ef4a71aa74f95a687d468f0f814db5dbc775..8511a1643c25a83c6eb002ba31136108facfb28a 100644 (file)
@@ -1247,6 +1247,13 @@ elf64_x86_64_adjust_dynamic_symbol (struct bfd_link_info *info,
        }
     }
 
+  if (h->size == 0)
+    {
+      (*_bfd_error_handler) (_("dynamic variable `%s' is zero size"),
+                            h->root.root.string);
+      return TRUE;
+    }
+
   /* We must allocate the symbol in our .dynbss section, which will
      become part of the .bss section of the executable.         There will be
      an entry for this symbol in the .dynsym section.  The dynamic
This page took 0.024691 seconds and 4 git commands to generate.