Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/Darwin] Recognize .plt section
@ 2018-03-05  8:54 Xavier Roirand
  2018-03-05 11:48 ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Xavier Roirand @ 2018-03-05  8:54 UTC (permalink / raw)
  To: gdb-patches; +Cc: brobecker, tgingold, Xavier Roirand

Use bfd section name .plt for __TEXT.__stubs so that gdb recognize this
section as a plt.

bfd/ChangeLog: Tristan Gingold  <gingold@adacore.com>

    * mach-o.c (text_section_names_xlat): Add entry for .plt.
---
 bfd/ChangeLog | 5 +++++
 bfd/mach-o.c  | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e2c5789bdb..9f047d2fca 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-03-02  Tristan Gingold  <gingold@adacore.com>
+
+	Pushed by Xavier Roirand <roirand@adacore.com>
+	* mach-o.c (text_section_names_xlat): Add entry for .plt.
+
 2018-03-01  Alan Modra  <amodra@gmail.com>
 
 	* elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index f26be0c73e..18bbd36ddd 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -96,6 +96,9 @@ static const mach_o_section_name_xlat text_section_names_xlat[] =
     {	".text",				"__text",
 	SEC_CODE | SEC_LOAD,			BFD_MACH_O_S_REGULAR,
 	BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS,	0},
+    {  ".plt",                                 "__stubs",
+	SEC_CODE | SEC_LOAD,                    BFD_MACH_O_S_SYMBOL_STUBS,
+	BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS,    0},
     {	".const",				"__const",
 	SEC_READONLY | SEC_DATA | SEC_LOAD,	BFD_MACH_O_S_REGULAR,
 	BFD_MACH_O_S_ATTR_NONE,			0},
-- 
2.14.3 (Apple Git-98)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA/Darwin] Recognize .plt section
  2018-03-05  8:54 [RFA/Darwin] Recognize .plt section Xavier Roirand
@ 2018-03-05 11:48 ` Yao Qi
  2018-03-05 11:59   ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2018-03-05 11:48 UTC (permalink / raw)
  To: Xavier Roirand; +Cc: gdb-patches, brobecker, tgingold

Xavier Roirand <roirand@adacore.com> writes:

Hi Xavier,
this should be posted to binutils mail list.

> +2018-03-02  Tristan Gingold  <gingold@adacore.com>
> +
> +	Pushed by Xavier Roirand <roirand@adacore.com>

Nowadays, in case of author != commiter, we don't write down the name of
committer in ChangeLog.  Any reason you do so?  I noticed that you did
this in several Tristan's patches.

> +	* mach-o.c (text_section_names_xlat): Add entry for .plt.

-- 
Yao (齐尧)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA/Darwin] Recognize .plt section
  2018-03-05 11:48 ` Yao Qi
@ 2018-03-05 11:59   ` Joel Brobecker
  2018-03-05 12:32     ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2018-03-05 11:59 UTC (permalink / raw)
  To: Yao Qi; +Cc: Xavier Roirand, gdb-patches, tgingold

> > +2018-03-02  Tristan Gingold  <gingold@adacore.com>
> > +
> > +	Pushed by Xavier Roirand <roirand@adacore.com>
> 
> Nowadays, in case of author != commiter, we don't write down the name of
> committer in ChangeLog.  Any reason you do so?  I noticed that you did
> this in several Tristan's patches.

It's something I have been doing on occasions. The idea was that
people working from source packages alone could see who did the push.
But I'm not really attached to it, so this can be skipped if people
prefer.

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA/Darwin] Recognize .plt section
  2018-03-05 11:59   ` Joel Brobecker
@ 2018-03-05 12:32     ` Pedro Alves
  0 siblings, 0 replies; 4+ messages in thread
From: Pedro Alves @ 2018-03-05 12:32 UTC (permalink / raw)
  To: Joel Brobecker, Yao Qi; +Cc: Xavier Roirand, gdb-patches, tgingold

On 03/05/2018 11:59 AM, Joel Brobecker wrote:
>>> +2018-03-02  Tristan Gingold  <gingold@adacore.com>
>>> +
>>> +	Pushed by Xavier Roirand <roirand@adacore.com>
>>
>> Nowadays, in case of author != commiter, we don't write down the name of
>> committer in ChangeLog.  Any reason you do so?  I noticed that you did
>> this in several Tristan's patches.
> 
> It's something I have been doing on occasions. The idea was that
> people working from source packages alone could see who did the push.
> But I'm not really attached to it, so this can be skipped if people
> prefer.

The GNU coding standards has section saying not to do that.  From
<https://www.gnu.org/prep/standards/standards.html>:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you install someone else’s changes, put the contributor’s name in the change
log entry rather than in the text of the entry. In other words, write this:

2002-07-14  John Doe  <jdoe@gnu.org>

        * sewing.c: Make it sew.

rather than this:

2002-07-14  Usual Maintainer  <usual@gnu.org>

        * sewing.c: Make it sew.  Patch by jdoe@gnu.org.

As for the date, that should be the date you applied the change. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks,
Pedro Alves


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-05 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05  8:54 [RFA/Darwin] Recognize .plt section Xavier Roirand
2018-03-05 11:48 ` Yao Qi
2018-03-05 11:59   ` Joel Brobecker
2018-03-05 12:32     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox