From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 60A763858016; Tue, 1 Mar 2022 15:42:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60A763858016 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7435] lto-plugin: update comments - remove hardwired gold X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: ad66b03b3c84786e73e73f09be19977b8f3c4ea3 X-Git-Newrev: 4fe0e1a45e5583bddedc8edfbaa0f090a145019e Message-Id: <20220301154228.60A763858016@sourceware.org> Date: Tue, 1 Mar 2022 15:42:28 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2022 15:42:28 -0000 https://gcc.gnu.org/g:4fe0e1a45e5583bddedc8edfbaa0f090a145019e commit r12-7435-g4fe0e1a45e5583bddedc8edfbaa0f090a145019e Author: Martin Liska Date: Tue Mar 1 16:40:45 2022 +0100 lto-plugin: update comments - remove hardwired gold lto-plugin/ChangeLog: * lto-plugin.c (process_offload_section): Use a linker as many comments are connected to gold linker. (process_option): Likewise. Diff: --- lto-plugin/lto-plugin.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index c9c048d3631..593fbc91383 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -1,4 +1,4 @@ -/* LTO plugin for gold and/or GNU ld. +/* LTO plugin for linkers like gold, GNU ld or mold. Copyright (C) 2009-2022 Free Software Foundation, Inc. Contributed by Rafael Avila de Espindola (espindola@google.com). @@ -16,11 +16,11 @@ You should have received a copy of the GNU General Public License along with this program; see the file COPYING3. If not see . */ -/* The plugin has only one external function: onload. Gold passes it an array of - function that the plugin uses to communicate back to gold. +/* The plugin has only one external function: onload. A linker passes it an array of + function that the plugin uses to communicate back to the linker. - With the functions provided by gold, the plugin can be notified when - gold first analyzes a file and pass a symbol table back to gold. The plugin + With the functions provided by the linker, the plugin can be notified when + the linker first analyzes a file and pass a symbol table back to the linker. The plugin is also notified when all symbols have been read and it is time to generate machine code for the necessary symbols. @@ -1139,7 +1139,7 @@ process_offload_section (void *data, const char *name, off_t offset, off_t len) return 1; } -/* Callback used by gold to check if the plugin will claim FILE. Writes +/* Callback used by a linker to check if the plugin will claim FILE. Writes the result in CLAIMED. */ static enum ld_plugin_status @@ -1374,7 +1374,7 @@ process_option (const char *option) verbose = verbose || debug; } -/* Called by gold after loading the plugin. TV is the transfer vector. */ +/* Called by a linker after loading the plugin. TV is the transfer vector. */ enum ld_plugin_status onload (struct ld_plugin_tv *tv)