public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Sriraman Tallam via gcc-patches" <gcc-patches@gcc.gnu.org>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Cc: Cary Coutant <ccoutant@gmail.com>,
	Teresa Johnson <tejohnson@google.com>,
		binutils <binutils@sourceware.org>,
	Xinliang David Li <davidxl@google.com>,
		"H.J. Lu" <hjl.tools@gmail.com>
Subject: Re: plugin-api.h patch to add a new interface for linker plugins
Date: Tue, 20 Feb 2018 17:36:00 -0000	[thread overview]
Message-ID: <CAAs8Hmx65H1VYk1GumpTaew1gi6z_YFvdTDk8a=C_b1HjaXg8w@mail.gmail.com> (raw)
In-Reply-To: <CAAs8HmxJjuhLim=vrJLu5q7nWZ82xDOTChZ1LyS0ZxAhFSj+kw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

Ping.  Is this alright to apply now or should I wait for Stage 1?

* plugin-api.h (ld_plugin_get_wrap_symbols): New
  plugin interface.

Thanks
Sri

On Thu, Feb 15, 2018 at 1:52 PM, Sriraman Tallam <tmsriram@google.com> wrote:
> Ping,  this patch was approved for binutils by Cary:
> https://sourceware.org/ml/binutils/2017-12/msg00023.html
>
> Is it ok to apply this to GCC include/plugin-api.h now?  It is a
> pretty small change. Patch attached.
>
> * plugin-api.h (ld_plugin_get_wrap_symbols): New
>   plugin interface.
>
>
> Thanks
> Sri
>
> On Fri, Dec 8, 2017 at 11:02 AM, Sriraman Tallam <tmsriram@google.com> wrote:
>> Patch attached.
>>
>> * plugin-api.h (ld_plugin_get_wrap_symbols): New
>>   plugin interface.
>>
>> On Fri, Dec 8, 2017 at 11:01 AM, Sriraman Tallam <tmsriram@google.com> wrote:
>>> Hi,
>>>
>>>    This patch was approved for binutils by Cary:
>>> https://sourceware.org/ml/binutils/2017-12/msg00023.html
>>>
>>>    Is it ok to apply this to GCC include/plugin-api.h ?
>>>
>>> Thanks
>>> Sri

[-- Attachment #2: plugin_api_patch.txt --]
[-- Type: text/plain, Size: 1335 bytes --]

	* plugin-api.h (ld_plugin_get_wrap_symbols): New
	  plugin interface.

Index: include/plugin-api.h
===================================================================
--- include/plugin-api.h	(revision 255515)
+++ include/plugin-api.h	(working copy)
@@ -378,7 +378,15 @@
 enum ld_plugin_status
 (*ld_plugin_register_new_input) (ld_plugin_new_input_handler handler);
 
+/* The linker's interface for getting the list of wrapped symbols using the
+   --wrap option. This sets *NUM_SYMBOLS to number of wrapped symbols and
+   *WRAP_SYMBOL_LIST to the list of wrapped symbols. */
 
+typedef
+enum ld_plugin_status
+(*ld_plugin_get_wrap_symbols) (uint64_t *num_symbols,
+                               const char ***wrap_symbol_list);
+
 enum ld_plugin_level
 {
   LDPL_INFO,
@@ -422,7 +430,8 @@
   LDPT_GET_SYMBOLS_V3 = 28,
   LDPT_GET_INPUT_SECTION_ALIGNMENT = 29,
   LDPT_GET_INPUT_SECTION_SIZE = 30,
-  LDPT_REGISTER_NEW_INPUT_HOOK = 31
+  LDPT_REGISTER_NEW_INPUT_HOOK = 31,
+  LDPT_GET_WRAP_SYMBOLS = 32
 };
 
 /* The plugin transfer vector.  */
@@ -457,6 +466,7 @@
     ld_plugin_get_input_section_alignment tv_get_input_section_alignment;
     ld_plugin_get_input_section_size tv_get_input_section_size;
     ld_plugin_register_new_input tv_register_new_input;
+    ld_plugin_get_wrap_symbols tv_get_wrap_symbols;
   } tv_u;
 };
 

  reply	other threads:[~2018-02-20 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-08 19:01 Sriraman Tallam via gcc-patches
2017-12-08 19:02 ` Sriraman Tallam via gcc-patches
2018-02-15 21:52   ` Sriraman Tallam via gcc-patches
2018-02-20 17:36     ` Sriraman Tallam via gcc-patches [this message]
2018-02-20 23:35       ` Cary Coutant
2018-02-22 11:25         ` Nick Clifton
2018-05-01 18:37       ` Jeff Law

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='CAAs8Hmx65H1VYk1GumpTaew1gi6z_YFvdTDk8a=C_b1HjaXg8w@mail.gmail.com' \
    --to=gcc-patches@gcc.gnu.org \
    --cc=binutils@sourceware.org \
    --cc=ccoutant@gmail.com \
    --cc=davidxl@google.com \
    --cc=hjl.tools@gmail.com \
    --cc=tejohnson@google.com \
    --cc=tmsriram@google.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).