This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR ld/4424: Can't link in Linux object files on FreeBSD


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.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]