https://sourceware.org/bugzilla/show_bug.cgi?id=33470
--- Comment #24 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=10deea6e2fc1b9ec5818b5fa1bc510c63ff5b2e2 commit 10deea6e2fc1b9ec5818b5fa1bc510c63ff5b2e2 Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue Sep 23 04:24:00 2025 +0800 Binutils/GCC: Add clang LTO support to AR, NM and RANLIB Add CLANG_PLUGIN_FILE to find the clang plugin file and pass it to --plugin for ar, nm and ranlib so that binutils can be built with clang LTO. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION since GCC_PLUGIN_OPTION may return the wrong PLUGIN_OPTION with clang. PR binutils/33470 * Makefile.in: Regenerated. * Makefile.tpl (NM): Add @NM_PLUGIN_OPTION@. * configure: Regenerated. * configure.ac: Include config/clang-plugin.m4. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION to set PLUGIN_OPTION. Set and subst NM_PLUGIN_OPTION. * libtool.m4 (_LT_CMD_OLD_ARCHIVE): Use CLANG_PLUGIN_FILE and GCC_PLUGIN_OPTION. config/ PR binutils/33470 * clang-plugin.m4: New file. libbacktrace/ PR binutils/33470 * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. libiberty/ PR binutils/33470 * aclocal.m4: Regenerated. * configure: Likewise. * configure.ac: Move GCC_PLUGIN_OPTION after GCC_NO_EXECUTABLES. Run CLANG_PLUGIN_FILE before GCC_PLUGIN_OPTION to set PLUGIN_OPTION. Don't add the redundant --plugin option. zlib/ PR binutils/33470 * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> -- You are receiving this mail because: You are on the CC list for the bug.