This is the mail archive of the binutils@sources.redhat.com 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]

Re: MIPS ELF ld -Ur fails


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.


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