From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: Franz.Sirl-kernel@lauterbach.com Cc: mark@codesourcery.com, binutils@sourceware.cygnus.com Subject: Re: PATCH for uninitialized junk in .dynsym Date: Thu, 01 Jul 1999 00:00:00 -0000 Message-id: <19990615191433.9676.qmail@daffy.airs.com> References: <19990615091217D.mitchell@codesourcery.com> <99061521040700.00813@ns1102.munich.netsurf.de> <99061521040700.00813@ns1102.munich.netsurf.de> X-SW-Source: 1999-q2/msg00263.html From: Franz Sirl Date: Tue, 15 Jun 1999 20:42:50 +0200 Hmm, how can I see in gdb on which symbol it is working? It asserts in the following code ppc_elf_finish_dynamic_sections() while checking dindx, which always seems to be 0 then and it seems to happen in all kind of sections. for (s = output_bfd->sections; s != NULL; s = s->next) { int indx, dindx; sym.st_value = s->vma; indx = elf_section_data (s)->this_idx; dindx = elf_section_data (s)->dynindx; if (dindx != -1) { BFD_ASSERT(indx > 0); BFD_ASSERT(dindx > 0); if (dindx > maxdindx) maxdindx = dindx; sym.st_shndx = indx; bfd_elf32_swap_symbol_out (output_bfd, &sym, (PTR) (((Elf32_External_Sym *) sdynsym->contents) + dindx)); } } The dynindx field should be being set for all the sections in ppc_elf_size_dynamic_sections Is that happening? If it is happening, where is the dynindx field being cleared? Ian