binutils-gdb/ld/testsuite
Richard Sandiford 5108fc1bc9 bfd/
* elfxx-mips.c (mips_elf_link_hash_table): Add function_stub_size.
	(STUB_ORI): New macro.
	(STUB_LI16U): Fix formatting.
	(MIPS_FUNCTION_STUB_SIZE): Delete.
	(MIPS_FUNCTION_STUB_MAX_SIZE): Likewise.
	(MIPS_FUNCTION_STUB_NORMAL_SIZE): New macro.
	(MIPS_FUNCTION_STUB_BIG_SIZE): Likewise.
	(_bfd_mips_elf_adjust_dynamic_symbol): Use htab->function_stub_size
	instead of MIPS_FUNCTION_STUB_SIZE.
	(count_section_dynsyms): New function, split out from
	_bfd_mips_elf_final_link.
	(_bfd_mips_elf_always_size_sections): Get a worst-case estimate
	of the number of dynamic symbols needed and use it to set up
	function_stub_size.  Use function_stub_size rather than
	MIPS_FUNCTION_STUB_SIZE to determine the size of the stub section.
	Use 16-byte stubs for 0x10000 dynamic symbols.
	(_bfd_mips_elf_size_dynamic_sections): Use htab->function_stub_size
	instead of MIPS_FUNCTION_STUB_SIZE.  Fix formatting.
	(_bfd_mips_elf_finish_dynamic_symbol): Likewise.  Change the
	size of the stub buffer from MIPS_FUNCTION_STUB_MAX_SIZE to
	MIPS_FUNCTION_STUB_BIG_SIZE.  Tweak the check for unhandled dynindxes.
	Use MIPS_FUNCTION_STUB_BIG_SIZE rather than a hard-coded 20.
	Use STUB_ORI rather than STUB_LI16U for big stubs.
	(_bfd_mips_elf_link_hash_table_create): Initialize function_stub_size.
	(_bfd_mips_elf_final_link): Use count_section_dynsyms.

ld/testsuite/
	* ld-mips-elf/stub-dynsym-1.s,
	* ld-mips-elf/stub-dynsym-1.ld,
	* ld-mips-elf/stub-dynsym-1-7fff.d,
	* ld-mips-elf/stub-dynsym-1-8000.d,
	* ld-mips-elf/stub-dynsym-1-fff0.d,
	* ld-mips-elf/stub-dynsym-1-10000.d,
	* ld-mips-elf/stub-dynsym-1-2fe80.d: New test.
	* ld-mips-elf/mips-elf.exp: Run it.
2006-06-11 08:33:27 +00:00
..
config
ld-alpha bfd/ 2006-06-02 00:32:00 +00:00
ld-arm 2006-05-24 Paul Brook <paul@codesourcery.com> 2006-05-24 17:10:02 +00:00
ld-auto-import
ld-bootstrap binutils/testsuite/ 2005-11-15 08:32:02 +00:00
ld-cdtest 2006-05-02 H.J. Lu <hongjiu.lu@intel.com> 2006-05-02 13:35:45 +00:00
ld-checks Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00
ld-cris bfd/ 2006-06-02 00:32:00 +00:00
ld-crx
ld-cygwin
ld-d10v * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
ld-discard
ld-elf * ld-elf/sec64k.exp: Add "main" symbol. Use dc.a for addresses. 2006-06-05 12:53:50 +00:00
ld-elfcomm
ld-elfvers * ld-elfvers/vers.exp (objdump_versionstuff): Allow versions in 2006-06-06 04:30:21 +00:00
ld-elfvsb
ld-elfweak * ld-elfweak/size2.d, ld-elfweak/size2a.s, ld-elfweak/size2b.s: 2006-05-17 11:30:24 +00:00
ld-fastcall
ld-frv Adjust for dynamic sym changes. 2005-08-15 15:39:48 +00:00
ld-h8300
ld-i386 bfd/ 2006-06-02 00:32:00 +00:00
ld-ia64 bfd/ 2006-06-02 00:32:00 +00:00
ld-linkonce
ld-m68hc11
ld-m68k bfd/ 2006-03-25 10:24:27 +00:00
ld-maxq
ld-mips-elf bfd/ 2006-06-11 08:33:27 +00:00
ld-mmix bfd/ 2006-06-02 00:32:00 +00:00
ld-pe
ld-pie 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> 2006-02-23 22:23:26 +00:00
ld-powerpc * ld-powerpc/tlsexe.r: Update for removal of some section syms. 2006-06-02 07:53:30 +00:00
ld-s390 * ld-powerpc/tlsexe.r: Update for removal of some section syms. 2006-06-02 07:53:30 +00:00
ld-scripts * ld-scripts/empty-orphan.d: Update again. 2006-05-19 11:50:31 +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
ld-sparc bfd/ 2006-06-02 00:32:00 +00:00
ld-srec 2006-05-02 H.J. Lu <hongjiu.lu@intel.com> 2006-05-02 13:35:45 +00:00
ld-undefined * ld-d10v/default_layout.d: Adjust for section removal. 2005-08-18 07:51:08 +00:00
ld-v850
ld-versados
ld-x86-64 bfd/ 2006-06-02 00:32:00 +00:00
ld-xc16x Add support for the Infineon XC16X. 2006-02-17 14:36:28 +00:00
ld-xstormy16
ld-xtensa
lib * lib/ld-lib.exp: Comment cleanups. 2006-04-05 01:51:15 +00:00
ChangeLog bfd/ 2006-06-11 08:33:27 +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