binutils-gdb/ld/testsuite/ld-mips-elf
Richard Sandiford 8275b357ad bfd/
* elfxx-mips.c (mips_elf_link_hash_table): Add computed_got_sizes.
	(mips_elf_record_global_got_symbol): Increment local_gotno for
	each forced-local symbol.
	(_bfd_mips_elf_check_relocs): Pass forced-local call symbols to
	mips_elf_record_global_got_symbol for VxWorks too.
	(_bfd_mips_elf_always_size_sections): Set computed_got_sizes
	to true after computing the GOT size.
	(_bfd_mips_elf_hide_symbol): Increase local_gotno whenever
	got.offset == 1.  Only adjust global_gotno if computed_got_sizes.
	For VxWorks, add a local entry when hiding a symbol that needs a
	plt but has not been marked as needing a global got entry.
	(_bfd_mips_elf_link_hash_table_create): Set computed_got_sizes to
	false.

ld/testsuite/
	* ld-mips-elf/vxworks-forced-local-1.d,
	* ld-mips-elf/vxworks-forced-local-1.s,
	* ld-mips-elf/vxworks-forced-local-1.ver: New test.
	* ld-mips-elf/mips-elf.exp: Run it.
	* ld-mips-elf/tlsdyn-o32-2.d: Adjust for removal of unnecessary
	local GOT entry.
	* ld-mips-elf/tlsdyn-o32-2.got: Likewise.
	* ld-mips-elf/tlsdyn-o32-3.d: Likewise.
	* ld-mips-elf/tlsdyn-o32-3.got: Likewise.
	* ld-mips-elf/vxworks1-lib.dd: Likewise.
	* ld-mips-elf/vxworks1-lib.rd: Likewise.
2007-08-13 21:16:39 +00:00
..
attr-gnu-4-0.s bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-1.s bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-2.s bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-3.s bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-4.s bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-00.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-01.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-02.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-03.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-10.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-11.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-12.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-13.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-14.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-20.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-21.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-22.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-23.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-30.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-31.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-32.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-33.d bfd: 2007-06-29 16:41:32 +00:00
attr-gnu-4-41.d bfd: 2007-06-29 16:41:32 +00:00
branch-misc-1.d ld/ 2006-10-16 21:34:25 +00:00
eh-frame1-n32.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame1-n64.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame1.ld * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size. 2005-01-31 20:39:11 +00:00
eh-frame1.s * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size. 2005-01-31 20:39:11 +00:00
eh-frame2-n32.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame2-n64.d bfd/ 2006-10-17 13:41:49 +00:00
eh-frame3.d * ld-mips-elf/eh-frame3.d, ld-mips-elf/eh-frame4.d: Move comments 2005-02-02 20:19:35 +00:00
eh-frame4.d * ld-mips-elf/eh-frame3.d, ld-mips-elf/eh-frame4.d: Move comments 2005-02-02 20:19:35 +00:00
elf-rel-got-n32.d ld/testsuite/ 2006-10-18 07:13:47 +00:00
elf-rel-got-n64-linux.d ld/testsuite/ 2006-10-18 07:13:47 +00:00
elf-rel-got-n64.d * ld-mips-elf/elf-rel-got-n32.d, ld-mips-elf/elf-rel-got-n64-linux.d, 2005-01-31 22:01:02 +00:00
elf-rel-xgot-n32.d ld/testsuite/ 2006-10-18 07:13:47 +00:00
elf-rel-xgot-n64-linux.d ld/testsuite/ 2006-10-18 07:13:47 +00:00
elf-rel-xgot-n64.d * ld-mips-elf/elf-rel-got-n32.d, ld-mips-elf/elf-rel-got-n64-linux.d, 2005-01-31 22:01:02 +00:00
emit-relocs-1.d bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1.ld bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1a.s bfd/ 2006-03-14 07:47:49 +00:00
emit-relocs-1b.s bfd/ 2006-03-14 07:47:49 +00:00
hash1.s ld/ 2006-07-29 08:48:15 +00:00
hash1a.d ld/ 2006-07-29 08:48:15 +00:00
hash1b.d ld/ 2006-07-29 08:48:15 +00:00
hash1c.d ld/ 2006-07-29 08:48:15 +00:00
jalbal.d ld/ 2006-10-16 21:34:25 +00:00
jalbal.s * ld-mips-elf/jalbal.d: New test. 2004-12-09 07:14:53 +00:00
jaloverflow-2.d ld/ 2006-10-16 21:34:25 +00:00
jaloverflow-2.s * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an 2004-12-14 09:48:20 +00:00
jaloverflow.d * ld-mips-elf/jaloverflow.d: New test. 2004-12-08 20:28:08 +00:00
jaloverflow.s * ld-mips-elf/jaloverflow.d: New test. 2004-12-08 20:28:08 +00:00
jr.s bfd/ 2003-01-02 21:31:32 +00:00
mips16-1.d [ gas/testsuite/ChangeLog ] 2002-07-29 21:07:12 +00:00
mips16-1a.s [bfd/] 2002-07-26 18:56:25 +00:00
mips16-1b.s [bfd/] 2002-07-26 18:56:25 +00:00
mips16-call-global-1.s [ bfd/ChangeLog ] 2006-07-20 16:46:30 +00:00
mips16-call-global-2.s * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-call-global-3.s * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-call-global.d * ld-mips-elf/mips16-call-global-2.s, 2006-07-25 16:45:55 +00:00
mips16-hilo-n32.d bfd/: 2005-02-15 19:57:54 +00:00
mips16-hilo.d bfd/: 2005-02-15 19:57:54 +00:00
mips16-hilo.ld bfd/: 2005-02-15 19:57:54 +00:00
mips16-hilo.s bfd/: 2005-02-15 19:57:54 +00:00
mips16-intermix-1.s [ bfd/ChangeLog ] 2006-11-02 15:20:31 +00:00
mips16-intermix-2.s [ bfd/ChangeLog ] 2006-11-02 15:20:31 +00:00
mips16-intermix.d [ bfd/ChangeLog ] 2006-11-02 15:20:31 +00:00
mips16-local-stubs-1.d bfd/ 2007-06-25 10:13:57 +00:00
mips16-local-stubs-1.s bfd/ 2007-06-25 10:13:57 +00:00
mips-dyn.ld * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
mips-elf-flags.exp Update sources to GPLv3 2007-07-06 14:09:45 +00:00
mips-elf.exp bfd/ 2007-08-13 21:16:39 +00:00
mips-lib.ld * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
multi-got-1-1.s * ld-mips-elf/multi-got-1.d: New. 2003-01-28 00:01:53 +00:00
multi-got-1-2.s * ld-mips-elf/multi-got-1.d: New. 2003-01-28 00:01:53 +00:00
multi-got-1.d bfd/ 2006-10-20 07:58:17 +00:00
multi-got-no-shared-1.s bfd/ChangeLog 2005-03-05 00:01:44 +00:00
multi-got-no-shared-2.s bfd/ChangeLog 2005-03-05 00:01:44 +00:00
multi-got-no-shared.d [ bfd/ChangeLog ] 2006-06-12 11:35:45 +00:00
region1.d * ld-mips-elf/region1a.s, 2002-06-10 16:14:08 +00:00
region1.t * ld-mips-elf/region1a.s, 2002-06-10 16:14:08 +00:00
region1a.s * ld-mips-elf/region1a.s, 2002-06-10 16:14:08 +00:00
region1b.s * ld-mips-elf/region1a.s, 2002-06-10 16:14:08 +00:00
rel32-n32.d bfd/ 2006-10-20 07:57:03 +00:00
rel32-o32.d bfd/ 2006-10-20 07:57:03 +00:00
rel32.s * ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add: 2003-03-11 19:20:16 +00:00
rel64.d bfd/ 2006-10-20 07:57:03 +00:00
rel64.s * ld-mips-elf/mips-elf.exp (linux_gnu): New variable. Add: 2003-03-11 19:20:16 +00:00
relax-jalr-n32-shared.d * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure. 2003-09-21 16:40:29 +00:00
relax-jalr-n32.d * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure. 2003-09-21 16:40:29 +00:00
relax-jalr-n64-shared.d * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure. 2003-09-21 16:40:29 +00:00
relax-jalr-n64.d * ld-mips-elf/relax-jalr-n32.d: Fix little endian test failure. 2003-09-21 16:40:29 +00:00
relax-jalr.s * ld-mips-elf/relax-jalr.s: Fix testsuite breakage. 2003-06-11 22:51:59 +00:00
reloc-1-n32.d * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-1-n64.d ld/testsuite/ 2006-10-18 13:02:01 +00:00
reloc-1-rel.d * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-1a.s * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-1b.s * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-2.d * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-2.ld * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-2a.s * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-2b.s * ld-mips-elf/reloc-1[ab].s: New source files. 2003-12-18 10:25:12 +00:00
reloc-3-n32.d ld/ 2006-10-16 21:34:25 +00:00
reloc-3.d ld/ 2006-10-16 21:34:25 +00:00
reloc-4.d * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d, 2007-08-01 17:41:30 +00:00
reloc-4.s * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d, 2007-08-01 17:41:30 +00:00
reloc-5.d * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d, 2007-08-01 17:41:30 +00:00
reloc-5.s * ld-mips-elf/reloc-4.s, ld-mips-elf/reloc-4.d, 2007-08-01 17:41:30 +00:00
reloc-merge-lo16.d 2005-02-22 Eric Christopher <echristo@redhat.com> 2005-02-22 23:54:41 +00:00
reloc-merge-lo16.ld * ld-mips-elf/reloc-merge-lo16.{s,d,ld}: New test. 2004-07-08 15:43:00 +00:00
reloc-merge-lo16.s * ld-mips-elf/reloc-merge-lo16.{s,d,ld}: New test. 2004-07-08 15:43:00 +00:00
stub-dynsym-1-2fe80.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-7fff.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-8000.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-10000.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1-fff0.d bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1.ld bfd/ 2006-06-11 08:33:27 +00:00
stub-dynsym-1.s bfd/ 2006-06-11 08:33:27 +00:00
textrel-1.d bfd/ 2006-10-19 13:42:17 +00:00
textrel-1.s bfd/ChangeLog: 2005-03-24 01:30:47 +00:00
tls-hidden2-got.d bfd/ 2006-02-04 08:29:58 +00:00
tls-hidden2.d bfd/ 2006-02-04 08:29:58 +00:00
tls-hidden2a.s bfd/ 2006-02-04 08:29:58 +00:00
tls-hidden2b.s bfd/ 2006-02-04 08:29:58 +00:00
tls-hidden3.d * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.got * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.ld * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3.r bfd/ 2006-10-19 13:47:10 +00:00
tls-hidden3a.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden3b.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4.got * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4.r bfd/ 2006-10-19 13:47:10 +00:00
tls-hidden4a.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-hidden4b.s * elfxx-mips.c (mips_got_entry): Add more commentary. 2006-03-27 11:30:54 +00:00
tls-multi-got-1-1.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tls-multi-got-1-2.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tls-multi-got-1.d * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tls-multi-got-1.got bfd/ 2006-10-20 07:58:17 +00:00
tls-multi-got-1.r bfd/ 2006-10-20 07:58:17 +00:00
tlsbin-o32.d * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlsbin-o32.got * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlsbin-o32.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlsdyn-o32-1.d bfd/ 2006-10-20 07:57:03 +00:00
tlsdyn-o32-1.got bfd/ 2006-10-20 07:57:03 +00:00
tlsdyn-o32-2.d bfd/ 2007-08-13 21:16:39 +00:00
tlsdyn-o32-2.got bfd/ 2007-08-13 21:16:39 +00:00
tlsdyn-o32-2.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlsdyn-o32-3.d bfd/ 2007-08-13 21:16:39 +00:00
tlsdyn-o32-3.got bfd/ 2007-08-13 21:16:39 +00:00
tlsdyn-o32.d bfd/ 2006-10-20 07:57:03 +00:00
tlsdyn-o32.got bfd/ 2006-10-20 07:57:03 +00:00
tlsdyn-o32.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlslib-hidden.ver * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlslib-o32-hidden.got bfd/ 2006-10-20 07:57:03 +00:00
tlslib-o32-ver.got bfd/ 2006-10-20 07:57:03 +00:00
tlslib-o32.d * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlslib-o32.got bfd/ 2006-10-20 07:57:03 +00:00
tlslib-o32.s * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
tlslib.ver * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld, 2005-03-02 21:22:57 +00:00
vxworks1-lib.dd bfd/ 2007-08-13 21:16:39 +00:00
vxworks1-lib.nd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-lib.rd bfd/ 2007-08-13 21:16:39 +00:00
vxworks1-lib.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1-lib.td bfd/ 2007-04-12 19:26:09 +00:00
vxworks1-static.d Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.dd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks1.ld ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1.rd ld/testsuite/ 2007-05-15 12:22:34 +00:00
vxworks1.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2-static.sd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2.s Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks2.sd Richard Sandiford <richard@codesourcery.com> 2006-03-22 09:28:15 +00:00
vxworks-forced-local-1.d bfd/ 2007-08-13 21:16:39 +00:00
vxworks-forced-local-1.s bfd/ 2007-08-13 21:16:39 +00:00
vxworks-forced-local-1.ver bfd/ 2007-08-13 21:16:39 +00:00