binutils-gdb/ld/testsuite
David S. Miller abd242a908 Fix sparc TLS call relaxation when the delay slot sets up %o0.
bfd/

	PR binutils/13301
	* elfxx-sparc.c (sparc_elf_find_reloc_at_ofs): New function.
	(_bfd_sparc_elf_relocate_section): Always move the __tls_get_addr
	call delay slot instruction forward 4 bytes when performing
	relaxation.

gold/

	PR binutils/13301
	* sparc.cc (Target_sparc::Relocate::reloc_adjust_addr_): New
	member to track relocation locations that have moved during TLS
	reloc optimizations.
	(Target_sparc::Relocate::Relocate): Initialize to NULL.
	(Target_sparc::Relocate::relocate): Adjust view down by 4
	bytes if it matches reloc_adjust_addr_.
	(Target_sparc::Relocate::relocate_tls): Always move the
	__tls_get_addr call delay slot instruction forward 4 bytes when
	performing relaxation.

ld/testsuite/

	* ld-sparc/tlssunbin32.dd: Update for TLS call relaxation fix
	for PR 13301.
	* ld-sparc/tlssunbin64.dd: Likewise.
	* ld-sparc/tlssunpic32.dd: Likewise.
	* ld-sparc/tlssunpic64.dd: Likewise.
2011-10-19 00:32:25 +00:00
..
config
ld-alpha
ld-arm Jie Zhang <jie@codesourcery.com> 2011-10-18 14:41:55 +00:00
ld-auto-import
ld-bootstrap
ld-cdtest
ld-checks
ld-cris * ld-cris/pic-gc-72.d: Adjust for dropping unused undefined 2011-10-14 06:51:48 +00:00
ld-crx
ld-cygwin
ld-d10v
ld-discard
ld-elf Preserve the maximum alignment/size for common symbols. 2011-10-08 16:51:11 +00:00
ld-elfcomm
ld-elfvers
ld-elfvsb
ld-elfweak
ld-fastcall
ld-frv
ld-gc
ld-h8300
ld-i386
ld-ia64
ld-ifunc Use .got.plt for IFUNC symbols if there are no GOT relocations. 2011-09-12 18:17:36 +00:00
ld-libs
ld-linkonce
ld-m68hc11
ld-m68k
ld-mep
ld-mips-elf
ld-misc
ld-mmix
ld-mn10300
ld-pe
ld-pie
ld-plugin PR ld/13329 2011-10-06 10:07:17 +00:00
ld-powerpc ld/ 2011-10-10 09:05:41 +00:00
ld-s390
ld-scripts * readelf.c (get_machine_dlags): Add support for RX's PID mode. 2011-10-05 14:13:31 +00:00
ld-selective
ld-sh
ld-shared
ld-sparc Fix sparc TLS call relaxation when the delay slot sets up %o0. 2011-10-19 00:32:25 +00:00
ld-spu
ld-srec
ld-tic6x
ld-tilegx
ld-tilepro
ld-undefined
ld-unique
ld-v850
ld-versados
ld-vxworks
ld-x86-64 Use .got.plt for IFUNC symbols if there are no GOT relocations. 2011-09-12 18:17:36 +00:00
ld-xc16x
ld-xstormy16
ld-xtensa
lib
ChangeLog Fix sparc TLS call relaxation when the delay slot sets up %o0. 2011-10-19 00:32:25 +00:00
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-9303