* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set

SEC_EXCLUDE on zero size .eh_frame.
This commit is contained in:
Alan Modra 2007-01-04 13:30:39 +00:00
parent f9e182823d
commit b327f31f6d
2 changed files with 5 additions and 2 deletions

View File

@ -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
SEC_EXCLUDE on zero size .eh_frame.
2006-12-31 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc

View File

@ -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)