[PATCH, MIPS] When calculating a relocation using an undefined weak symbol don't check for overflow.

Andrew Bennett Andrew.Bennett@imgtec.com
Tue Dec 2 13:40:00 GMT 2014


> > bfd/
> > 	* elfxx-mips.c (mips_elf_calculate_relocation): Only check for overflow
> > 	on non-weak undefined symbols.
> >
> > ld/testsuite/
> > 	* ld-mips-elf/mips-elf.exp: Add in undefined weak overflow tests for
> > 	o32, n32 and n64.
> > 	* ld-mips-elf/undefweak-overflow.s: New test.
> > 	* ld-mips-elf/undefweak-overflow.d: New test.
> > 	* ld-mips-elf/undefweak-overflow-n64.d: New test.
> > 	* ld-mips-elf/undefweak-overflow-n64.d: New test.
> 
> OK, thanks, and sorry for the slow reply.

That's ok.  I have now committed the patch.

Tristan: Would it be ok to backport the patch onto the binutils 2.25 branch?

Many thanks,



Andrew



More information about the Binutils mailing list