fix Xtensa linker optimization for "absolute" literals

Bob Wilson bwilson@tensilica.com
Mon Oct 3 21:49:00 GMT 2005


I'm committing this patch from David Heine to fix a performance problem in the 
linker's optimization of Xtensa literals.  The "absolute-mode" literals are not 
PC-relative, but the code had been checking the range of the literal offset from 
the PC anyway.  Redundant literals not placed close to the code were not being 
merged.  Built and tested with an xtensa-elf target.

2005-10-03  David Heine  <dlheine@tensilica.com>

	* elf32-xtensa.c (relocations_reach): Skip range check for
	absolute literals.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-xtensa-abslit.diff
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20051003/a2d6a996/attachment.bin>


More information about the Binutils mailing list