From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A7FE23858417 for ; Tue, 1 Mar 2022 15:42:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A7FE23858417 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 57BC7218D9 for ; Tue, 1 Mar 2022 15:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1646149319; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bI8mGZ4kVzURH85LtVau+DiJgFLRP8jw84cvth/kiCE=; b=LYtt6ie+PERa81Ig3UgeY3H1qo9Y99YgN/CIvBQxqnzcxT4JtaeE0BSgD/kboErSgMB8VJ 3IHZdKmwOrxR1Mz4bUNFovyig8RuRIfdke9Sjsblj1z8C2xrV9Z4paiIGT7AXqS5cfUi9s sL4V6xLxQGa0UE2kKmM3VRgQFhxqRvI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1646149319; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bI8mGZ4kVzURH85LtVau+DiJgFLRP8jw84cvth/kiCE=; b=cxdZw4sHloLWXgcni/AJR31Xc9pkw4nOC6CpHZ4SJq5MY6ylWhlwHQH0LEiyNUjWEnt05v 0Hvfp7YulwcYdPAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 49C9913B71 for ; Tue, 1 Mar 2022 15:41:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0d3fEMc+HmKTDAAAMHmgww (envelope-from ) for ; Tue, 01 Mar 2022 15:41:59 +0000 Message-ID: <366d051e-66f1-1abe-e0dc-de0496ab9366@suse.cz> Date: Tue, 1 Mar 2022 16:41:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] lto-plugin: update comments - remove hardwired gold To: gcc-patches@gcc.gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2022 15:42:06 -0000 Pushed to master as obvious. Right now, there are 3 linkers that can utilize the plug-in, not only gold. Martin lto-plugin/ChangeLog: * lto-plugin.c (process_offload_section): Use a linker as many comments are connected to gold linker. (process_option): Likewise. --- 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) -- 2.35.1