-/* 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).
along with this program; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-/* 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.
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
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)