Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Elena Zannoni <ezannoni@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] rs6000-tdep.c: figure out e500 machine from bfd.
Date: Wed, 21 Aug 2002 15:58:00 -0000	[thread overview]
Message-ID: <15716.6790.251258.282269@localhost.redhat.com> (raw)
In-Reply-To: <1020820233145.ZM15650@localhost.localdomain>

Kevin Buettner writes:
 > On Aug 20,  6:36pm, Elena Zannoni wrote:
 > 
 > > +  /* For e500 executables, the apuinfo section is of help here.  */
 > > +  if (info.abfd)
 > > +    {
 > > +      sect = bfd_get_section_by_name (info.abfd, ".PPC.EMB.apuinfo");
 > > +      if (sect)
 > 
 > What is the apuinfo section?  If you know what it's about (I sure
 > don't), consider expanding the comment somewhat.
 > 

Yes, sorry (I have been playing around with this code for too long,
obviously). It is a section that contains the version numbers of the
various Application Processing Units that the processor contains.  So
that one can detect what version/type of processor you need to run the
code on. For instance if the APU info says you need version 3 you know
that the code won't run on version 2. Because there may be new
instructions, etc. I think this info could in theory be used by the
linker, but I am not sure it is used right now.  Gas keeps track of
the rev number associated with each instruction, and then outputs (in
the apuinfo section) the highest it has found. Right now, though, it
doesn't do that. It just spews out a 1.

 > Is there any chance that this section could appear in non-e500
 > executables?  If so, make a note of this gotcha in the comment too.
 > 

No. Only e500.

 > Otherwise, fine.  Go ahead and commit it after expanding the comment
 > as necessary.
 > 

OK. Done.

 > Kevin


      reply	other threads:[~2002-08-21 22:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 15:38 Elena Zannoni
2002-08-20 16:31 ` Kevin Buettner
2002-08-21 15:58   ` Elena Zannoni [this message]

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=15716.6790.251258.282269@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.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