From: Tom Tromey <tromey@redhat.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: Richard Sandiford <rdsandiford@googlemail.com>,
Catherine Moore <clm@codesourcery.com>,
<binutils@sourceware.org>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/2] MIPS: Compressed PLT/stubs support
Date: Thu, 21 Feb 2013 21:06:00 -0000 [thread overview]
Message-ID: <87wqu19y1x.fsf@fleche.redhat.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1302072108300.6762@tp.orcam.me.uk> (Maciej W. Rozycki's message of "Tue, 19 Feb 2013 20:44:10 +0000")
>>>>> "Maciej" == Maciej W Rozycki <macro@codesourcery.com> writes:
Maciej> + NOTE: macro-20130129: The MIPS backend uses the 8 LSBs of
I prefer not putting usernames and dates into the comments.
That is readily found in the history -- but also more commonly just not
needed.
Maciej> if (type != ST_SYNTHETIC)
Maciej> elf_sym = (elf_symbol_type *) sym;
Maciej> - else
Maciej> + else if (((sym->udata.i | 0xff) ^ 0xff) != 0)
Maciej> elf_sym = (elf_symbol_type *) sym->udata.p;
Maciej> + else
Maciej> + elf_sym = NULL;
This seems iffy to me. I suppose what gives me pause is the possibility
that this condition will trigger on some other port that does something
odd in BFD.
I'm not really an expert here -- I'd appreciate other comments.
Maciej> -/* In SVR4, we recognize a trampoline by it's section name.
Maciej> - That is, if the pc is in a section named ".plt" then we are in
Maciej> - a trampoline. */
Maciej> +/* In SVR4, we recognize a trampoline by it's section name. That is,
Maciej> + if the pc is in a section named ".plt" then we are in a trampoline.
Maciej> + We let targets request an alternative name, this is currently used
Maciej> + by the MIPS backend to handle the SVR4 lazy resolution stubs that
Maciej> + binutils put into ".MIPS.stubs" instead. */
IMO comments like this tend to get stale over time.
It is better, I think, to describe the function's interface and purpose,
and leave it to future developers to grep for uses of it, should they
need to know.
Tom
next prev parent reply other threads:[~2013-02-21 21:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 20:44 Maciej W. Rozycki
2013-02-19 20:45 ` [PATCH 2/2] MIPS: Compressed PLT/stubs support test cases Maciej W. Rozycki
2013-02-20 21:53 ` [PATCH 1/2] MIPS: Compressed PLT/stubs support Richard Sandiford
2013-03-09 4:04 ` Maciej W. Rozycki
2013-03-09 9:58 ` Richard Sandiford
2013-06-08 0:22 ` Maciej W. Rozycki
2013-06-08 16:04 ` Richard Sandiford
2013-06-10 17:13 ` Maciej W. Rozycki
2013-06-10 18:08 ` Richard Sandiford
2013-06-10 19:34 ` Maciej W. Rozycki
2013-06-25 0:40 ` Maciej W. Rozycki
2013-03-11 13:53 ` Joel Brobecker
2013-06-26 15:02 ` Maciej W. Rozycki
2013-02-21 21:06 ` Tom Tromey [this message]
2013-02-22 0:58 ` Alan Modra
2013-02-22 6:06 ` Alan Modra
2013-02-22 20:09 ` Tom Tromey
2013-03-09 4:06 ` Maciej W. Rozycki
2013-06-20 16:20 ` [PING^2][PATCH] in_plt_section: support alternate stub section names (was: [PATCH 1/2] MIPS: Compressed PLT/stubs support) Maciej W. Rozycki
2013-06-20 16:50 ` [PING^2][PATCH] in_plt_section: support alternate stub section names Pedro Alves
2013-06-21 11:43 ` Maciej W. Rozycki
2013-06-21 15:34 ` Pedro Alves
2013-06-22 2:24 ` Maciej W. Rozycki
2013-06-24 12:40 ` Pedro Alves
2013-06-24 23:34 ` Maciej W. Rozycki
2013-06-25 9:57 ` Pedro Alves
2013-06-07 13:25 ` [PATCH] in_plt_section: support alternate stub section names (was: [PATCH 1/2] MIPS: Compressed PLT/stubs support) Maciej W. Rozycki
2013-06-13 12:43 ` [PING][PATCH] " Maciej W. Rozycki
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=87wqu19y1x.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=binutils@sourceware.org \
--cc=clm@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=macro@codesourcery.com \
--cc=rdsandiford@googlemail.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