From: Alan Modra Date: Thu, 4 Jan 2007 13:30:39 +0000 (+0000) Subject: * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b327f31f6db30f09102c0212eb526c7d83b09daa;p=binutils-gdb.git * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set SEC_EXCLUDE on zero size .eh_frame. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 82216d69382..c2101cabd44 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-01-04 Jie Zhang + + * 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 * bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 2aa61e14e21..acc75a8569e 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -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)