This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Improved elf linker error message
Alan Modra wrote:
> On Tue, May 14, 2002 at 09:54:02AM -0700, Ian Lance Taylor wrote:
> > Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:
> >
> > > > Would it be possible to change elf_link_output_relocs() to have a
> > > > non-void return type, and check for an error return?
> > >
> > > Like this?
> >
> > Looks reasonable to me. Thanks.
>
> BTW, the annoying case where this problem occurs is when someone
> builds an archive containing a mix of elf32 and elf64 objects.
I don't see what the relocation handling in elf_link_input_bfd()
has to do with archives. I want to catch the case when somebody tries
to link together MIPS o32, n32 ad n64 files.
> We
> ought to detect this a little earlier and give an informative error
> message, or not assume that archive contents are all the same as the
> first archive element.
IIRC some time ago there was a patch to detect this for MIPS only,
but I found my patch to be useful for my MIPS NewABI development.
At least it will not harm and work as fallback if something goes wrong.
Ok to apply it?
Thiemo