This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix mislinking of .MIPS.content* and .MIPS.events*
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: binutils at sources dot redhat dot com, ro at techfak dot uni-bielefeld dot de
- Date: Sat, 14 Feb 2004 12:16:06 +0100
- Subject: Re: Fix mislinking of .MIPS.content* and .MIPS.events*
- References: <87vfmaorqp.fsf@redhat.com>
Richard Sandiford wrote:
[snip]
> (3) The linker doesn't really know how to combine .MIPS.event*
> and .MIPS.content* sections properly anyway.
>
> Now gcc is more aggressive than the native compiler in using special
> sections like .data.rel.local. And if gcc is using the native
> assembler, these sections will get their own .MIPS.content*
> description. This means that the combination of (1) and (2)
> will cause an irix bootstrap failure if:
>
> (a) the compiler used to bootstrap gcc is a version of gcc
> that used the native assembler and linker and
>
> (b) the compiler being bootstrapped uses GNU as and ld.
>
> In this case, the files in libiberty.a will include sections like
> .MIPS.content.data.rel.local, which GNU ld mishandles.
>
> Given (3), I think the correct fix is just to discard these sections.
> OK to install?
Ok.
Thiemo