From: Alan Modra Date: Thu, 17 Feb 2005 12:39:17 +0000 (+0000) Subject: * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1808e34136fdb061532afe5ef8d9e28a8fcbc0f8;p=binutils-gdb.git * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 892b01520d1..072cdeda253 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-02-17 Alan Modra + + * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning. + 2005-02-16 Alan Modra * 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 389f6f30933..deea1e3c497 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; }