* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
authorAlan Modra <amodra@gmail.com>
Thu, 17 Feb 2005 12:39:17 +0000 (12:39 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Feb 2005 12:39:17 +0000 (12:39 +0000)
bfd/ChangeLog
bfd/elf-eh-frame.c

index 892b01520d1f026803123a411a683d8e08d80760..072cdeda2539e4b022b4aedd34eb1f5ac441e667 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
+
 2005-02-16  Alan Modra  <amodra@bigpond.net.au>
 
        * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
index 389f6f30933996dba2318ed0ebac9b1dd50e9c6d..deea1e3c49739f3830b667304cd7b9b44f7a04cf 100644 (file)
@@ -482,6 +482,7 @@ _bfd_elf_discard_section_eh_frame
         on whether to output or discard last encountered CIE (if any).  */
       if ((bfd_size_type) (buf - ehbuf) == sec->size)
        {
+         hdr.length = 0;
          hdr.id = (unsigned int) -1;
          end = buf;
        }