summaryrefslogtreecommitdiff
path: root/bfd/plugin.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-02-25 03:30:33 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-02-25 03:31:40 -0800
commitecda90163e2b0a6f0be96e3fc262c28820a27211 (patch)
tree7d5371a80bf0df07028f0f107a4d70927040e089 /bfd/plugin.h
parent265b467340e5334a682e47a0e1b69a80c4428349 (diff)
Don't call lto-wrapper for ar and ranlib
Since ar and ranlib don't need to know symbol types to work properly, we should avoid calling lto-wrapper for them to speed them up. bfd/ PR binutils/25584 * plugin.c (need_lto_wrapper_p): New. (bfd_plugin_set_program_name): Add an int argument to set need_lto_wrapper_p. (get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't set. * plugin.h (bfd_plugin_set_program_name): Add an int argument. binutils/ PR binutils/25584 * ar.c (main): Pass 0 to bfd_plugin_set_program_name. * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
Diffstat (limited to 'bfd/plugin.h')
-rw-r--r--bfd/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/plugin.h b/bfd/plugin.h
index 05c3573933..b2d5e50137 100644
--- a/bfd/plugin.h
+++ b/bfd/plugin.h
@@ -21,7 +21,7 @@
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
-void bfd_plugin_set_program_name (const char *);
+void bfd_plugin_set_program_name (const char *, int);
int bfd_plugin_open_input (bfd *, struct ld_plugin_input_file *);
void bfd_plugin_set_plugin (const char *);
bfd_boolean bfd_plugin_target_p (const bfd_target *);