This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] bfd/elf32-i386.c forgot to initialize tls_ldm_got


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]