binutils-gdb/ld/testsuite
Jakub Jelinek b9734f3572 bfd/
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
	(elf32_sparc_rev32_howto): New variable.
	(sparc_reloc_map): Add TLS relocs.
	(elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
	Handle REV32.
	(sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
	New functions.
	(struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
	struct elf32_sparc_link_hash_table):
	New structures.
	(elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
	elf32_sparc_hash_table): Define.
	(link_hash_newfunc, elf32_sparc_link_hash_table_create,
	create_got_section, elf32_sparc_create_dynamic_sections,
	elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
	functions.
	(elf32_sparc_check_relocs): Handle TLS relocs.  Add dynamic reloc
	reference counting.
	(elf32_sparc_gc_sweep_hook): Likewise.
	(elf32_sparc_adjust_dynamic_symbol): Likewise.
	(elf32_sparc_size_dynamic_sections): Likewise.
	(elf32_sparc_relocate_section): Likewise.
	(allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
	New functions.
	(elf32_sparc_object_p): Allocate backend private object data.
	(bfd_elf32_bfd_link_hash_table_create,
	elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
	elf_backend_can_refcount): Define.
	(elf_backend_create_dynamic_sections): Define to
	elf32_sparc_create_dynamic_sections.
	* reloc.c: Add SPARC TLS relocs.
	* bfd-in2.h, libbfd.h: Rebuilt.
	* elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
	(sparc_reloc_map): Likewise.
gas/
	* config/tc-sparc.c (sparc_ip): Handle TLS % operators.
	(tc_gen_reloc): Handle TLS relocs.
	(sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
	* config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
	relocs.
	* config/obj-elf.c (obj_elf_section_word): Handle tls.
	(obj_elf_type): Handle tls_object.
include/
	* elf/sparc.h: Add TLS relocs.  Move R_SPARC_REV32 to 252.
ld/testsuite/
	* ld-sparc/sparc.exp: New.
	* ld-sparc/tlsg32.s: New test.
	* ld-sparc/tlsg32.sd: Likewise.
	* ld-sparc/tlsg64.s: Likewise.
	* ld-sparc/tlsg64.sd: Likewise.
	* ld-sparc/tlslib.s: Likewise.
	* ld-sparc/tlsnopic.s: Likewise.
	* ld-sparc/tlspic.s: Likewise.
	* ld-sparc/tlssunbin32.dd: Likewise.
	* ld-sparc/tlssunbin32.rd: Likewise.
	* ld-sparc/tlssunbin32.s: Likewise.
	* ld-sparc/tlssunbin32.sd: Likewise.
	* ld-sparc/tlssunbin32.td: Likewise.
	* ld-sparc/tlssunbin64.dd: Likewise.
	* ld-sparc/tlssunbin64.rd: Likewise.
	* ld-sparc/tlssunbin64.s: Likewise.
	* ld-sparc/tlssunbin64.sd: Likewise.
	* ld-sparc/tlssunbin64.td: Likewise.
	* ld-sparc/tlssunbinpic32.s: Likewise.
	* ld-sparc/tlssunbinpic64.s: Likewise.
	* ld-sparc/tlssunnopic32.dd: Likewise.
	* ld-sparc/tlssunnopic32.rd: Likewise.
	* ld-sparc/tlssunnopic32.s: Likewise.
	* ld-sparc/tlssunnopic32.sd: Likewise.
	* ld-sparc/tlssunnopic64.dd: Likewise.
	* ld-sparc/tlssunnopic64.rd: Likewise.
	* ld-sparc/tlssunnopic64.s: Likewise.
	* ld-sparc/tlssunnopic64.sd: Likewise.
	* ld-sparc/tlssunpic32.dd: Likewise.
	* ld-sparc/tlssunpic32.rd: Likewise.
	* ld-sparc/tlssunpic32.s: Likewise.
	* ld-sparc/tlssunpic32.sd: Likewise.
	* ld-sparc/tlssunpic32.td: Likewise.
	* ld-sparc/tlssunpic64.dd: Likewise.
	* ld-sparc/tlssunpic64.rd: Likewise.
	* ld-sparc/tlssunpic64.s: Likewise.
	* ld-sparc/tlssunpic64.sd: Likewise.
	* ld-sparc/tlssunpic64.td: Likewise.
2003-01-24 23:44:45 +00:00
..
config
ld-alpha * ld-alpha/tlsbin.sd: Cope with truncated address in data dumps. 2003-01-23 22:37:21 +00:00
ld-auto-import Test the auto importing direct from a dll functionality. 2002-12-18 16:05:10 +00:00
ld-bootstrap * ld-bootstrap/bootstrap.exp: Test --relax. 2002-05-30 21:39:41 +00:00
ld-cdtest
ld-checks
ld-cris * ld-cris/expdyn6.d, ld-cris/weakref2.d, ld-cris/expdyn7.d, 2002-11-07 13:25:48 +00:00
ld-d10v Tests for d10v. 2002-06-17 14:05:53 +00:00
ld-discard 2002-10-12 H.J. Lu (hjl@gnu.org) 2002-10-12 15:40:13 +00:00
ld-elf * ld-elf/elf.exp: Remove sec64k test. 2002-11-21 21:37:06 +00:00
ld-elfvers 2002-10-03 H.J. Lu <hjl@gnu.org> 2002-10-04 07:40:42 +00:00
ld-elfvsb * ld-elfvsb/define.s: Avoid use of @ in .type directive. 2002-11-09 12:27:50 +00:00
ld-elfweak * ld-discard/discard.exp, ld-scripts/phdrs.exp, ld-scripts/phdrs2.exp, 2002-07-30 07:41:15 +00:00
ld-empic
ld-fastcall Only run tests for PE type x86 targets. 2002-11-07 08:36:04 +00:00
ld-h8300 Fix h8300 relaxation. 2002-11-15 11:18:49 +00:00
ld-i386 * symbols.c (S_SET_THREAD_LOCAL): New function. 2002-11-28 14:15:55 +00:00
ld-ia64 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle 2003-01-17 23:27:57 +00:00
ld-linkonce 2002-10-12 H.J. Lu (hjl@gnu.org) 2002-10-12 15:40:13 +00:00
ld-m68hc11 Fix PR savannah/1417: 2002-12-01 13:25:05 +00:00
ld-mips-elf * ld-mips-elf/mips-elf-flags.exp: Add -mips4 to a -mgp64 test. 2003-01-03 11:04:26 +00:00
ld-mmix * ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d, 2002-11-10 09:29:07 +00:00
ld-powerpc Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure that 2002-12-03 18:24:33 +00:00
ld-s390 * ld-s390/s390.exp: New file. 2003-01-24 17:20:25 +00:00
ld-scripts TIC4X testcase commit 2002-11-18 08:28:44 +00:00
ld-selective 2002-10-12 H.J. Lu (hjl@gnu.org) 2002-10-12 15:40:13 +00:00
ld-sh * elf32-sh.c (sh_elf_relocate_section): Don't complain about 2002-11-28 08:37:15 +00:00
ld-shared * ld-discard/discard.exp, ld-scripts/phdrs.exp, ld-scripts/phdrs2.exp, 2002-07-30 07:41:15 +00:00
ld-sparc bfd/ 2003-01-24 23:44:45 +00:00
ld-srec * ld-srec/srec.exp (run_srec_test): Pass --traditional-format to ld. 2003-01-20 12:57:59 +00:00
ld-undefined * ld-undefined/undefined.exp: Adjust function test. 2002-09-21 14:14:00 +00:00
ld-versados
ld-x86-64 bfd/ 2002-10-01 09:15:34 +00:00
lib * lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets. 2002-12-10 15:54:23 +00:00
ChangeLog bfd/ 2003-01-24 23:44:45 +00:00