public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/lto-plugin-supports-get_symbols_v3)] lto-plugin: add support for feature detection Date: Wed, 4 May 2022 12:41:39 +0000 (GMT) [thread overview] Message-ID: <20220504124139.661DB3857359@sourceware.org> (raw) https://gcc.gnu.org/g:7b5acd79a749e50bc825a49b283d4f9e82a5e1b5 commit 7b5acd79a749e50bc825a49b283d4f9e82a5e1b5 Author: Martin Liska <mliska@suse.cz> Date: Tue Mar 1 12:27:45 2022 +0100 lto-plugin: add support for feature detection lto-plugin/ChangeLog: * lto-plugin.c (supports_get_symbols_v3): Add symbol and initialize it to true; lto-plugin/ChangeLog: * lto-plugin.map: Add supports_get_symbols_v3 symbol. Diff: --- lto-plugin/lto-plugin.c | 5 +++++ lto-plugin/lto-plugin.map | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 47378435612..6aac5867066 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -1554,3 +1554,8 @@ onload (struct ld_plugin_tv *tv) return LDPS_OK; } + +/* Presence of the following symbols is used for dynamic detection of plug-in features + from linker side. */ + +bool supports_get_symbols_v3 = true; diff --git a/lto-plugin/lto-plugin.map b/lto-plugin/lto-plugin.map index 3d60e71cc2d..42dc50a819c 100644 --- a/lto-plugin/lto-plugin.map +++ b/lto-plugin/lto-plugin.map @@ -1,3 +1,6 @@ { - global: onload; local: *; + global: onload; + supports_get_symbols_v3; + + local: *; };
next reply other threads:[~2022-05-04 12:41 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-04 12:41 Martin Liska [this message] -- strict thread matches above, loose matches on Subject: below -- 2022-05-04 12:17 Martin Liska
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=20220504124139.661DB3857359@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).