aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-17 12:39:17 +0000
committerAlan Modra <amodra@gmail.com>2005-02-17 12:39:17 +0000
commit1808e34136fdb061532afe5ef8d9e28a8fcbc0f8 (patch)
treecb61332d269d662ca88aa22c46f74bf8a2d5fd9e /bfd/elf-eh-frame.c
parent26b810ce0ecf8fed7d271047f20183ff16034846 (diff)
downloadgdb-1808e34136fdb061532afe5ef8d9e28a8fcbc0f8.zip
gdb-1808e34136fdb061532afe5ef8d9e28a8fcbc0f8.tar.gz
gdb-1808e34136fdb061532afe5ef8d9e28a8fcbc0f8.tar.bz2
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index 389f6f3..deea1e3 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;
}