From: Xavier Roirand <roirand@adacore.com>
To: gdb-patches@sourceware.org
Cc: brobecker@adacore.com, tgingold@free.fr,
Xavier Roirand <roirand@adacore.com>
Subject: [RFA/Darwin] Recognize .plt section
Date: Mon, 05 Mar 2018 08:54:00 -0000 [thread overview]
Message-ID: <1520240062-15255-1-git-send-email-roirand@adacore.com> (raw)
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)
next reply other threads:[~2018-03-05 8:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-05 8:54 Xavier Roirand [this message]
2018-03-05 11:48 ` Yao Qi
2018-03-05 11:59 ` Joel Brobecker
2018-03-05 12:32 ` Pedro Alves
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=1520240062-15255-1-git-send-email-roirand@adacore.com \
--to=roirand@adacore.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=tgingold@free.fr \
/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