]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: Pass true to ld_plugin_object_p
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 9 Sep 2024 00:27:00 +0000 (17:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 10 Sep 2024 02:16:17 +0000 (19:16 -0700)
commitc839a44c39161c9932d58c28c2949ab3bb94ea6f
tree9a04ea05c20fbf744f9257cdb5612b96a1bff4f1
parentf66673c62e3ffc44d4b82fb95fa4ff33c2b7fb38
bfd: Pass true to ld_plugin_object_p

Since linker calls bfd_plugin_object_p, which calls ld_plugin_object_p,
only for command-line input objects, pass true to ld_plugin_object_p so
that the same input IR file won't be included twice if the new LTO hook,
LDPT_REGISTER_CLAIM_FILE_HOOK_V2 isn't used.

PR ld/32153
* plugin.c (bfd_plugin_object_p): Pass true to ld_plugin_object_p.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/plugin.c