* elflink.h (elf_bfd_final_link): Check if dynobj is not NULL
[deliverable/binutils-gdb.git] / bfd / elflink.h
index 00872600f1b777df35c9e735785c07b32e7714af..9a3bfd3885b88c1151d2f9c10f6bf3c8d0bb70cf 100644 (file)
@@ -5670,7 +5670,7 @@ elf_bfd_final_link (abfd, info)
        goto error_return;
     }
 
-  if (info->eh_frame_hdr)
+  if (info->eh_frame_hdr && elf_hash_table (info)->dynobj)
     {
       o = bfd_get_section_by_name (elf_hash_table (info)->dynobj,
                                   ".eh_frame_hdr");
This page took 0.024318 seconds and 4 git commands to generate.