OSDN Git Service

* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
authoramodra <amodra>
Thu, 4 Jan 2007 13:30:38 +0000 (13:30 +0000)
committeramodra <amodra>
Thu, 4 Jan 2007 13:30:38 +0000 (13:30 +0000)
SEC_EXCLUDE on zero size .eh_frame.

bfd/ChangeLog
bfd/elf-eh-frame.c

index 82216d6..c2101ca 100644 (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
index 2aa61e1..acc75a8 100644 (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)