From: Kevin Buettner <kevinb@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>, Nick Duffek <nsd@redhat.com>
Cc: kevinb@cygnus.com, gdb-patches@sources.redhat.com,
Peter.Schauer@regent.e-technik.tu-muenchen.de
Subject: Re: [RFA] xcoffread.c: handle -bbigtoc binaries
Date: Thu, 12 Apr 2001 14:53:00 -0000 [thread overview]
Message-ID: <1010412214926.ZM17757@ocotillo.lan> (raw)
In-Reply-To: <3AD61A7C.6FA3D78A@cygnus.com>
On Apr 12, 5:13pm, Andrew Cagney wrote:
> Kevin, I guess you're calling this an obvious fix?
No. I don't regard this as obvious. In fact, when I first heard of
this change (a couple of days ago), I had some concerns. But I've
been following some internal (Red Hat) discussion regarding this
change and it seems okay to me now.
I was approving Nick's patch as one of the AIX maintainers. If I've
stepped on someone's toes, I apologize. If someone feels that this
change demands more discussion, I'll ask Nick to revert it until a
consensus is reached.
> Anyway, the comment:
>
> + /* If symbol name starts with ".$" or "$", ignore it.
>
> doesn't match the code.
>
> + if (namestring[0] == '$' || namestring[0] == '@'
If you read the entire comment and the entire if-condition, I believe
it's covered...
/* If symbol name starts with ".$" or "$", ignore it.
A symbol like "@FIX1" introduces a section for -bbigtoc jump
tables, which contain anonymous linker-generated code.
Ignore those sections to avoid "pc 0x... in read in psymtab,
but not in symtab" warnings from find_pc_sect_symtab. */
if (namestring[0] == '$' || namestring[0] == '@'
|| (namestring[0] == '.' && namestring[1] == '$'))
break;
Though I admit that when I first read the patch, I was puzzled too.
Perhaps it would be clearer if the first line of the comment were
revised to read as follows...
/* If symbol name starts with ".$", "$", or "@", ignore it.
?
BTW, I should add that I appreciate Nick's additional commentary
regarding the reason for ignoring the "@" symbols. I only wish the
author of the original comment would've done the same for the ".$" and
"$" prefixes.
Kevin
prev parent reply other threads:[~2001-04-12 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-12 12:02 Nicholas Duffek
2001-04-12 12:23 ` Kevin Buettner
2001-04-12 12:55 ` Nick Duffek
2001-04-12 14:14 ` Andrew Cagney
2001-04-12 14:53 ` Kevin Buettner [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=1010412214926.ZM17757@ocotillo.lan \
--to=kevinb@cygnus.com \
--cc=Peter.Schauer@regent.e-technik.tu-muenchen.de \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nsd@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