[PATCH] bfd: Require the plugin target for slim LTO IR object
Alan Modra
amodra@gmail.com
Sat Aug 16 00:20:08 GMT 2025
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.
--
Alan Modra
More information about the Binutils
mailing list