PATCH for uninitialized junk in .dynsym

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Thu Jul 1 00:00:00 GMT 1999


Am Die, 15 Jun 1999 schrieb Ian Lance Taylor:
>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?


Hmm, in elflink.h elf_link_remove_section_and_adjust_dynindices() is called 2
times,once around line 2651:

      verdefs = asvinfo.verdefs;

      if (verdefs == NULL)
        elf_link_remove_section_and_adjust_dynindices (output_bfd,
                                                       info,
                                                       s);
      else


then again around line 2846:

        if (elf_tdata (output_bfd)->verref == NULL)
          elf_link_remove_section_and_adjust_dynindices (output_bfd,
                                                         info,
                                                         s);
        else


After the 2nd some dynindx I checked are zero.

Am I on the right track here?

Franz.


More information about the Binutils mailing list