This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: PATCH for uninitialized junk in .dynsym
From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
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