Always create dynsym section with dynamic sections
[deliverable/binutils-gdb.git] / bfd / elflink.c
index c7672edf8ab58197a1d10e3c54ef58f2c20e8d0d..89a6dea761407612cd4a2ffa0956918554093c9a 100644 (file)
@@ -875,9 +875,9 @@ _bfd_elf_link_renumber_dynsyms (bfd *output_bfd,
                          &dynsymcount);
 
   /* There is an unused NULL entry at the head of the table which
-     we must account for in our count.  Unless there weren't any
-     symbols, which means we'll have no table at all.  */
-  if (dynsymcount != 0)
+     we must account for in our count.  We always create the dynsym
+     section, even if it is empty, with dynamic sections.  */
+  if (elf_hash_table (info)->dynamic_sections_created)
     ++dynsymcount;
 
   elf_hash_table (info)->dynsymcount = dynsymcount;
This page took 0.028264 seconds and 4 git commands to generate.