[PATCH] MIPS gas: Fix broken relocation sorting

David Daney ddaney@avtrex.com
Tue Nov 7 22:15:00 GMT 2006

Richard Sandiford wrote:
> Thus if we were indeed converting R_MIPS_GOT16 relocations against
> local symbols into R_MIPS_GOT16 relocations against global symbols,
> (1) would be the right fix.  But like I say, the bug appears at
> first glance to be in pic_need_relax.

New version of the patch:

Tested as before with mipsel-linux cross build no regressions.

OK to commit?

If this looks better, I will restart my gcc-4.2 boot strap with this 

2006-11-06  David Daney  <ddaney@avtrex.com>

	* config/tc-mips.c (pic_need_relax): Return true for section symbols.

2006-11-06  David Daney  <ddaney@avtrex.com>

	* gas/mips/elf-rel26.s: New test.
	* gas/mips/elf-rel26.d: Ditto.
	* gas/mips/mips.exp: Run it.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gas.diff.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20061107/5fe418b1/attachment.txt>

More information about the Binutils mailing list