This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS ELF ld -Ur fails
- To: Earl Chew <earl_chew at agilent dot com>
- Subject: Re: MIPS ELF ld -Ur fails
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Tue, 23 Oct 2001 11:04:49 -0700
- Cc: mark at codesourcery dot com, ian at airs dot com, binutils at sources dot redhat dot com
- References: <3BD50B99.4B658EB9@agilent.com> <20011022232702.A3893@lucon.org>
On Mon, Oct 22, 2001 at 11:27:02PM -0700, H . J . Lu wrote:
> On Mon, Oct 22, 2001 at 11:18:01PM -0700, Earl Chew wrote:
> > Ian, Mark,
> >
> > I have a patch which I'm hoping you'll be able to review.
> >
> > I've been struggling with a problem on a linker configured for
> > mips-wrs-vxworks. The problem occurs with binutils 2.10.1 and
> > to 2.11.2, but does not occur for binutils 2.7!
> >
> > Invoking the linker with:
> >
> > ld -Ur -u main a.o libb.a
> >
> > causes a memory fault.
> >
> > (I have a test case available --- it's a little large.)
> >
>
> A testcase will be very nice. If it is too large, you can put it
> somewhere so that we can download it. Binutils has been changed
> so much since 2.11.2, especially the ELF/mips linker.
I looked at the code. The problem is in elf_bfd_final_link,
elf_link_size_reloc_section is called before
bfd_section_reloc_link_order can update elf_section_data(o)->rel_count.
How should we fix it?
H.J.