SEC_EXCLUDE on zero size .eh_frame.
@ -1,3 +1,8 @@
2007-01-04 Jie Zhang <jie.zhang@analog.com>
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
2006-12-31 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc
@ -927,8 +927,6 @@ _bfd_elf_discard_section_eh_frame
/* Resize the sec as needed. */
sec->rawsize = sec->size;
sec->size = offset;
if (sec->size == 0)
sec->flags |= SEC_EXCLUDE;
free (ehbuf);
if (ecies)