]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/ChangeLog
Don't call lto-wrapper for ar and ranlib
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 25 Feb 2020 11:30:33 +0000 (03:30 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 25 Feb 2020 11:31:40 +0000 (03:31 -0800)
commitecda90163e2b0a6f0be96e3fc262c28820a27211
tree7d5371a80bf0df07028f0f107a4d70927040e089
parent265b467340e5334a682e47a0e1b69a80c4428349
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.
bfd/ChangeLog
bfd/plugin.c
bfd/plugin.h
binutils/ChangeLog
binutils/ar.c
binutils/nm.c