summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-02-17 12:39:17 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-02-17 12:39:17 +0000
commita29b55fba278cb6d529f54e208e931325d2d09dc (patch)
tree09ea9ce70b4db153c47379c98ea9ac335679c46b
parentb1ad7b2e481265730a81a8e5ef62f5458cf6030a (diff)
downloadbinutils-redhat-a29b55fba278cb6d529f54e208e931325d2d09dc.tar.gz
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf-eh-frame.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 892b01520d..072cdeda25 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index 389f6f3093..deea1e3c49 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -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;
}