[PATCH 1/2] binutils: Pass target plugin file to target ar/nm/ranlib

Alan Modra amodra@gmail.com
Sat Sep 27 01:37:10 GMT 2025


On Fri, Sep 26, 2025 at 02:16:08PM +0800, H.J. Lu wrote:
> There are 2 kinds of binutils tests:
> 
> 1. Tests of binutils object files and libraries using the build tools,
> like CC, AR, NM and RANLIB.
> 2. Tests of binutils programs as the target tools, like CC_FOR_TARGET,
> AR_FOR_TARGET, NM_FOR_TARGET and RANLIB_FOR_TARGET.
> 
> Set AR_PLUGIN_OPTION_FOR_TARGET, NM_PLUGIN_OPTION_FOR_TARGET and
> RANLIB_PLUGIN_OPTION_FOR_TARGET to the target compiler plugin file for
> target ar/nm/ranlib.
> 
> PR binutils/33483
> * Makefile.in: Regenerated.
> * configure: Likewise.
> * Makefile.tpl (AR_FOR_TARGET): Add @AR_PLUGIN_OPTION_FOR_TARGET@.
> (NM_FOR_TARGET): Add @NM_PLUGIN_OPTION_FOR_TARGET@.
> (RANLIB_FOR_TARGET): Add @RANLIB_PLUGIN_OPTION_FOR_TARGET@.
> * configure.ac: Use CLANG_PLUGIN_FILE_FOR_TARGET and
> GCC_PLUGIN_OPTION_FOR_TARGET to set AR_PLUGIN_OPTION_FOR_TARGET,
> NM_PLUGIN_OPTION_FOR_TARGET and RANLIB_PLUGIN_OPTION_FOR_TARGET.
> AC_SUBST AR_PLUGIN_OPTION_FOR_TARGET, NM_PLUGIN_OPTION_FOR_TARGET
> and RANLIB_PLUGIN_OPTION_FOR_TARGET.
> 
> config/
> 
> PR binutils/33483
> * clang-plugin.m4 (CLANG_PLUGIN_FILE_FOR_TARGET): New.
> * gcc-plugin.m4 (GCC_PLUGIN_OPTION_FOR_TARGET): Likewise.
> 
> OK for master?

OK.

-- 
Alan Modra


More information about the Binutils mailing list