From ecda90163e2b0a6f0be96e3fc262c28820a27211 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 25 Feb 2020 03:30:33 -0800 Subject: 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. --- binutils/ChangeLog | 6 ++++++ binutils/ar.c | 2 +- binutils/nm.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3cda3fd..dbb8fe0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2020-02-25 H.J. Lu + + 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. + 2020-02-24 Nick Clifton PR 25499 diff --git a/binutils/ar.c b/binutils/ar.c index 1057db9..35dd51e 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -725,7 +725,7 @@ main (int argc, char **argv) xmalloc_set_program_name (program_name); bfd_set_error_program_name (program_name); #if BFD_SUPPORTS_PLUGINS - bfd_plugin_set_program_name (program_name); + bfd_plugin_set_program_name (program_name, 0); #endif expandargv (&argc, &argv); diff --git a/binutils/nm.c b/binutils/nm.c index 0ee3f88..5b38659 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -1701,7 +1701,7 @@ main (int argc, char **argv) xmalloc_set_program_name (program_name); bfd_set_error_program_name (program_name); #if BFD_SUPPORTS_PLUGINS - bfd_plugin_set_program_name (program_name); + bfd_plugin_set_program_name (program_name, 1); #endif START_PROGRESS (program_name, 0); -- cgit v1.1