[PATCH] Xtensa - put fill action after widen actions

Sterling Augustine sterling@tensilica.com
Tue Feb 24 22:47:00 GMT 2009


On Xtensa, when ld relaxes literal sections which also contain text, it
can erroneously add padding bytes in the middle of the instruction
stream. It does this when there is an instruction to widen at the
location it also wants to pad.

By requiring it to pad, then widen, this patch eliminates the problem.


2009-02-24  Sterling Augustine  <sterling@tensilica.com>

	* elf32-xtensa.c (text_action_add): Separate test for action
	type.  Break if saved action is ta_widen_insn at same offset.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elf32-xtensa.c.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20090224/82fc8af4/attachment.ksh>


More information about the Binutils mailing list