[PATCH] bfd: Require the plugin target for slim LTO IR object

H.J. Lu hjl.tools@gmail.com
Sat Aug 16 03:33:23 GMT 2025
On Fri, Aug 15, 2025 at 5:20 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Fri, Aug 15, 2025 at 03:50:45PM -0700, H.J. Lu wrote:
> > On Fri, Aug 15, 2025 at 3:28 PM Alan Modra <amodra@gmail.com> wrote:
> > >
> > > On Fri, Aug 15, 2025 at 11:25:05AM -0700, H.J. Lu wrote:
> > > >       * format.c (bfd_check_format_matches): Require the plugin target
> > > >       for slim LTO IR object.
> > >
> > > This needs a solid explanation of exactly why it is necessary.
> > >
> >
> > We can pass NULL as the target since non-plugin targets won't match
> > slim LTO IR object.
>
> That doesn't explain anything.  I can guess the real explanation,
> which would be something along the lines of:
>
> "LLVM slim LTO IR objects won't match any target but the plugin
> target.  Make GCC slim LTO IR objects behave the same."
>
> I seriously doubt this is a good idea.
>

It can be useful for my patch after your plugin archive patch.

-- 
H.J.


More information about the Binutils mailing list