* elf32-tilepro.c (tilepro_elf_finish_dynamic_sections): Don't
[deliverable/binutils-gdb.git] / bfd / elf32-tilepro.c
index 62b95536478dbe4cd9ecaaeb989db4c3a0866fe5..c36da2bee24c01be46ebb1ec5fe1f9e8a7f7d9ee 100644 (file)
@@ -3909,8 +3909,9 @@ tilepro_elf_finish_dynamic_sections (bfd *output_bfd,
                  PLT_ENTRY_SIZE - PLT_HEADER_SIZE);
        }
 
-      elf_section_data (splt->output_section)->this_hdr.sh_entsize
-       = PLT_ENTRY_SIZE;
+      if (elf_section_data (splt->output_section) != NULL)
+       elf_section_data (splt->output_section)->this_hdr.sh_entsize
+         = PLT_ENTRY_SIZE;
     }
 
   if (htab->elf.sgotplt)
This page took 0.024198 seconds and 4 git commands to generate.