binutils-gdb/ld/testsuite
Richard Sandiford 910600e9c7 bfd/
* config.bfd (sparc-*-vxworks*): New stanza.
	* configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
	(bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
	* configure: Regenerate.
	* elf32-sparc.c: Include elf-vxworks.h.
	(elf32_sparc_vxworks_link_hash_table_create: New.
	(elf32_sparc_vxworks_final_write_processing): New.
	(TARGET_BIG_SYM): Override for VxWorks.
	(TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
	(bfd_elf32_bfd_link_hash_table_create): Likewise.
	(elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
	(elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
	(elf_backend_link_output_symbol_hook): Likewise.
	(elf_backend_emit_relocs): Likewise.
	(elf_backend_final_write_processing, elf32_bed): Likewise.
	* elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
	(sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
	(sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
	(_bfd_sparc_elf_link_hash_table_create): Don't initialize
	build_plt_entry here.
	(create_got_section): Initialize sgotplt for VxWorks.
	(_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
	plt_header_size and plt_entry_size, with new VxWorks-specific settings.
	Call elf_vxworks_create_dynamic_sections for VxWorks.
	(allocate_dynrelocs): Use plt_header_size and plt_entry_size.
	Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
	(_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
	for VxWorks.  Check for the .got.plt section.
	(sparc_vxworks_build_plt_entry): New function.
	(_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
	Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
	absolute on VxWorks.
	(sparc32_finish_dyn): Add special handling for DT_RELASZ
	and DT_PLTGOT on VxWorks.
	(sparc_vxworks_finish_exec_plt): New.
	(sparc_vxworks_finish_shared_plt): New.
	(_bfd_sparc_elf_finish_dynamic_sections): Call them.
	Use plt_header_size and plt_entry_size.
	* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
	srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
	* Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
	(elf32-sparc.lo): Likewise.
	* Makefile.in: Regenerate.
	* targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
	(_bfd_target_vector): Add a pointer to it.

gas/
	* config/tc-sparc.c (sparc_target_format): Handle TE_VXWORKS.
	(GOTT_BASE, GOTT_INDEX): New.
	(tc_gen_reloc): Don't alter relocations against GOTT_BASE and
	GOTT_INDEX when generating VxWorks PIC.
	* configure.tgt (sparc*-*-vxworks*): Remove this special case;
	use the generic *-*-vxworks* stanza instead.

gas/testsuite/
	* gas/sparc/vxworks-pic.s, gas/sparc/vxworks-pic.d: New test.
	* gas/sparc/sparc.exp: Run it.  Remove sparc*-*-vxworks* XFAILs.

ld/
	* configure.tgt (sparc*-*-vxworks*): New stanza.
	* emulparams/elf32_sparc_vxworks.sh: New file.
	* Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_vxworks.o.
	(eelf32_sparc_vxworks.c): New rule.
	* Makefile.in: Regenerate.

ld/testsuite/
	* ld-sparc/vxworks1.dd, ld-sparc/vxworks1.ld, ld-sparc/vxworks1-lib.dd,
	* ld-sparc/vxworks1-lib.nd, ld-sparc/vxworks1-lib.rd,
	* ld-sparc/vxworks1-lib.s, ld-sparc/vxworks1.rd, ld-sparc/vxworks1.s,
	* ld-sparc/vxworks1-static.d, ld-sparc/vxworks2.s,
	* ld-sparc/vxworks2.sd, ld-sparc/vxworks2-static.sd: New tests.
	* ld-sparc/sparc.exp: Run them.
2006-04-05 12:41:59 +00:00
..
config * config/default.exp (CC): Use find_gcc. 2005-05-27 17:27:03 +00:00
ld-alpha bfd/ 2005-08-17 10:04:33 +00:00
ld-arm bfd/ 2006-03-07 08:39:21 +00:00
ld-auto-import Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-bootstrap binutils/testsuite/ 2005-11-15 08:32:02 +00:00
ld-cdtest Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-checks Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
ld-cris * ld-cris/noov.d: Restrict to cris-*-*elf*. 2005-11-11 00:29:14 +00:00
ld-crx Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-cygwin Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-d10v * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
ld-discard Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-elf 2005-12-19 H.J. Lu <hongjiu.lu@intel.com> 2005-12-19 15:07:28 +00:00
ld-elfcomm Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-elfvers * ld.texino: Describe double-quoted string syntax for version 2005-10-13 17:29:57 +00:00
ld-elfvsb Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-elfweak * ld-elfweak/size2a.s: Extend test to check size for two weaks. 2005-07-27 00:08:40 +00:00
ld-fastcall Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-frv Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
ld-h8300 Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-i386 ld/ 2006-03-03 09:32:01 +00:00
ld-ia64 bfd/ 2005-10-24 01:40:58 +00:00
ld-linkonce Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-m68hc11 Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-m68k bfd/ 2006-03-25 10:24:27 +00:00
ld-maxq Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-mips-elf * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
ld-mmix * ld-mmix/sec-1.d: Adjust for section order changes. 2006-01-03 07:03:26 +00:00
ld-pe Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-pie 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> 2006-02-23 22:23:26 +00:00
ld-powerpc bfd/ChangeLog: 2006-03-17 06:44:37 +00:00
ld-s390 Updo the last change to binutils and ld/testsuite. 2006-02-02 22:53:46 +00:00
ld-scripts Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
ld-selective * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
ld-sh Updo the last change to binutils and ld/testsuite. 2006-02-02 22:53:46 +00:00
ld-shared Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-sparc bfd/ 2006-04-05 12:41:59 +00:00
ld-srec Remove a29k support. 2005-08-18 03:51:51 +00:00
ld-undefined * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
ld-v850 include/elf/ 2004-12-16 16:56:04 +00:00
ld-versados Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-x86-64 Updo the last change to binutils and ld/testsuite. 2006-02-02 22:53:46 +00:00
ld-xc16x Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
ld-xstormy16 Update FSF addresses 2005-05-12 07:32:09 +00:00
ld-xtensa Update FSF addresses 2005-05-12 07:32:09 +00:00
lib * lib/ld-lib.exp: Comment cleanups. 2006-04-05 01:51:15 +00:00
ChangeLog bfd/ 2006-04-05 12:41:59 +00:00
ChangeLog-2004 split changelogs 2006-01-16 23:15:07 +00:00
ChangeLog-2005 split changelogs 2006-01-16 23:15:07 +00:00
ChangeLog-9303 Split ChangeLog files. 2004-01-02 11:16:21 +00:00