This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] bfd/elf32-i386.c forgot to initialize tls_ldm_got
- From: John Reiser <jreiser at BitWagon dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 25 Jul 2002 22:08:36 -0700
- Subject: [PATCH] bfd/elf32-i386.c forgot to initialize tls_ldm_got
- Organization: -
bfd/elf32-i386.c, both CVS and latest linux release 2.12.90.0.15,
never initializes tls_ldm_got in elf_i386_link_hash_table_create()
at line 683 and following, yet reads the .refcount in
elf_i386_size_dynamic_sections() at line 1792.
diff -u -r1.75 elf32-i386.c
--- elf32-i386.c 11 Jul 2002 05:33:28 -0000 1.75
+++ elf32-i386.c 26 Jul 2002 05:06:01 -0000
@@ -699,6 +699,9 @@
ret->srelbss = NULL;
ret->sym_sec.abfd = NULL;
+ ret->tls_ldm_got.refcount = 0;
+ ret->tls_ldm_got.offset = 0;
+
return &ret->elf.root;
}
--
John Reiser, jreiser@BitWagon.com