https://sourceware.org/bugzilla/show_bug.cgi?id=33078

--- Comment #3 from Sam James <sam at gentoo dot org> ---
#if BFD_SUPPORTS_PLUGINS
      /* Copy LTO IR file as unknown object.  */
      if (bfd_plugin_target_p (ibfd->xvec))
        ok_object = false;
      else
#endif
      if (ok_object)
        {
          ok = copy_object (this_element, output_element, input_arch);

          if (!ok && bfd_get_arch (this_element) == bfd_arch_unknown)
            /* Try again as an unknown object file.  */
            ok_object = false;
        }

      if (!ok_object)
        ok = copy_unknown_object (this_element, output_element);

If built with plugin support, we always set ok_object = false if
bfd_plugin_target_p, but bfd_plugin_target_p doesn't seem to care about whether
it's an LTO IR file or not.

Should we:
a) check ibfd->lto_type != lto_non_object, or
b) check if the plugin claims the object?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to