public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <ian@zembu.com>
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	[thread overview]
Message-ID: <19990615191433.9676.qmail@daffy.airs.com> (raw)
In-Reply-To: <99061521040700.00813@ns1102.munich.netsurf.de>

   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

  reply	other threads:[~1999-07-01  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01  0:00 mark
1999-07-01  0:00 ` Franz Sirl
1999-07-01  0:00   ` mark
1999-07-01  0:00     ` Franz Sirl
1999-07-01  0:00       ` Ian Lance Taylor [this message]
1999-07-01  0:00         ` Franz Sirl
1999-07-01  0:00           ` mark
1999-07-01  0:00             ` Franz Sirl
1999-07-01  0:00               ` Ian Lance Taylor
1999-07-01  0:00                 ` Ian Lance Taylor
1999-07-01  0:00               ` mark
1999-07-01  0:00                 ` Franz Sirl
1999-07-01  0:00 ` Richard Henderson
1999-07-01  0:00   ` Ian Lance Taylor
1999-07-01  0:00     ` Richard Henderson
1999-07-01  0:00       ` mark
1999-07-01  0:00       ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990615191433.9676.qmail@daffy.airs.com \
    --to=ian@zembu.com \
    --cc=Franz.Sirl-kernel@lauterbach.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=mark@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).