This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[COMMIT][ARM] Obvious fix to missing initializer bug in stub_hash_newfunc.
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: binutils at sourceware dot org
- Date: Mon, 27 Jul 2009 16:07:27 -0700
- Subject: [COMMIT][ARM] Obvious fix to missing initializer bug in stub_hash_newfunc.
Hi
I just committed this to trunk for a SEGV fault caused by
uninitialized output_name field in a new stub hash entry.
-Doug
2009-07-27 Doug Kwan <dougkwan@google.com>
* elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.205
diff -u -p -r1.205 elf32-arm.c
--- bfd/elf32-arm.c 10 Jul 2009 16:56:15 -0000 1.205
+++ bfd/elf32-arm.c 27 Jul 2009 22:11:41 -0000
@@ -2724,6 +2724,7 @@ stub_hash_newfunc (struct bfd_hash_entry
eh->stub_template_size = 0;
eh->h = NULL;
eh->id_sec = NULL;
+ eh->output_name = NULL;
}
return entry;