This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/4424: Can't link in Linux object files on FreeBSD
On Wed, Oct 17, 2007 at 08:51:11AM +0930, Alan Modra wrote:
> On Tue, Oct 16, 2007 at 10:55:54AM -0700, H.J. Lu wrote:
> > @@ -1053,6 +1053,10 @@ struct elf_backend_data
> > /* Return TRUE if type is a function symbol type. */
> > bfd_boolean (*is_function_type) (unsigned int type);
> >
> > + /* Used by alpha, sparc, i386 and x86-64 linkers to link again object
> > + files with different EI_OSABI. PR 4424. */
> > + struct elf_backend_data *relocs_compatible;
> > +
>
> This is only slightly better than a flag. Please make this a pointer
> to the predicate function. If it's a function, a backend can make
> arbitrary decisions about object file compatibility.
>
I will add a pointer to the predicate function. But this field is
still needed to compare 2 backends.
H.J.