* elflink.h (elf_bfd_final_link): Check if dynobj is not NULL
[deliverable/binutils-gdb.git] / bfd / elf-eh-frame.c
index d39e549369b240ea193846761bd8a7f834d2277f..cc653f7c81ed430de2ac5b1f9bc640b0957760f6 100644 (file)
@@ -1149,6 +1149,9 @@ _bfd_elf_write_section_eh_frame_hdr (abfd, sec)
              == ELF_INFO_TYPE_EH_FRAME_HDR);
   hdr_info = (struct eh_frame_hdr_info *)
             elf_section_data (sec)->sec_info;
+  if (hdr_info->strip)
+    return true;
+
   size = EH_FRAME_HDR_SIZE;
   if (hdr_info->array && hdr_info->array_count == hdr_info->fde_count)
     size += 4 + hdr_info->fde_count * 8;
This page took 0.04277 seconds and 4 git commands to generate.