binutils-gdb/ld/testsuite/ld-mips-elf
Richard Sandiford c224138d88 bfd/
2007-09-18  Richard Sandiford  <richard@codesourcery.com>

	* elfxx-mips.c (mips_got_page_range): New structure.
	(mips_got_page_entry): Likewise.
	(mips_got_info): Add page_gotno and got_page_entries fields.
	(mips_elf_got_per_bfd_arg): Add max_pages field.  Delete
	primary_count and current_count fields.
	(mips_got_page_entry_hash, mips_got_page_entry_eq): New functions.
	(mips_elf_pages_for_range, mips_elf_record_got_page_entry): Likewise.
	(mips_elf_get_got_for_bfd): New function, split out from
	mips_elf_make_got_per_bfd.  Initialize the page_gotno and
	got_page_entries fields when creating a new GOT structure.
	(mips_elf_make_got_pages_per_bfd): New function.
	(mips_elf_merge_got_with): New function, split out from
	mips_elf_make_got_per_bfd.  Merge page entries as well as
	non-page entries.  Use the minimum of max_pages and the sum
	of the page_gotnos to estimate the number of page entries.
	(mips_elf_merge_gots): Use the minimum of max_pages and the
	bfd's page_gotno to estimate the number of page entries.
	Use the above functions.
	(mips_elf_multi_got): Add page entries as well as non-page entries
	to the individual per-bfd GOTs.  Initialize got_per_bfd_arg.max_pages.
	Initialize the page_gotno and got_page_entries fields when creating
	a new primary GOT.  Use the minimum of pages and page_gotno when
	adding the number of pages entries to local_gotno.
	(mips_elf_create_got_section): Initialize the page_gotno and
	got_page_entries fields of the GOT structure.
	(mips_elf_rel_relocation_p, mips_elf_read_rel_addend)
	(mips_elf_add_lo16_rel_addend, mips_elf_get_section_contents): New
	functions, split out from...
	(_bfd_mips_elf_relocate_section): ...here.
	(_bfd_mips_elf_check_relocs): Record GOT page entries too.
	(_bfd_mips_relax_section): Use mips_elf_get_section_contents.
	(_bfd_mips_elf_always_size_sections): Use the smaller of the
	loadable_size- and page_gotno-derived estimates.

ld/testsuite/
2007-09-18  Richard Sandiford  <richard@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

	* ld-mips-elf/got-page-1.d, ld-mips-elf/got-page-1.s,
	* ld-mips-elf/got-page-2.d, ld-mips-elf/got-page-2.s,
	* ld-mips-elf/got-page-3.d, ld-mips-elf/got-page-3a.s,
	* ld-mips-elf/got-page-3b.s, ld-mips-elf/got-page-3c.s,
	* ld-mips-elf/got-page-1.ld: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
	* ld-mips-elf/multi-got-1.d, ld-mips-elf/multi-got-no-shared.d,
	* ld-mips-elf/tls-hidden2-got.d, ld-mips-elf/tls-hidden2.d,
	* ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got,
	* ld-mips-elf/tls-hidden3.r, ld-mips-elf/tls-hidden4.got,
	* ld-mips-elf/tls-hidden4.r, ld-mips-elf/tls-multi-got-1.d,
	* ld-mips-elf/tls-multi-got-1.got, ld-mips-elf/tls-multi-got-1.r,
	* ld-mips-elf/tlsbin-o32.d, ld-mips-elf/tlsbin-o32.got,
	* ld-mips-elf/tlsdyn-o32-1.d, ld-mips-elf/tlsdyn-o32-1.got,
	* ld-mips-elf/tlsdyn-o32-2.d, ld-mips-elf/tlsdyn-o32-2.got,
	* ld-mips-elf/tlsdyn-o32-3.d, ld-mips-elf/tlsdyn-o32-3.got,
	* ld-mips-elf/tlsdyn-o32.d, ld-mips-elf/tlsdyn-o32.got,
	* ld-mips-elf/tlslib-o32-hidden.got, ld-mips-elf/tlslib-o32-ver.got,
	* ld-mips-elf/tlslib-o32.d, ld-mips-elf/tlslib-o32.got: Update for
	GOT allocation changes.
2007-11-14 20:46:15 +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
eh-frame1.s
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
eh-frame4.d
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
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
emit-relocs-1.d
emit-relocs-1.ld
emit-relocs-1a.s
emit-relocs-1b.s
got-page-1.d bfd/ 2007-11-14 20:46:15 +00:00
got-page-1.ld bfd/ 2007-11-14 20:46:15 +00:00
got-page-1.s bfd/ 2007-11-14 20:46:15 +00:00
got-page-2.d bfd/ 2007-11-14 20:46:15 +00:00
got-page-2.s bfd/ 2007-11-14 20:46:15 +00:00
got-page-3.d bfd/ 2007-11-14 20:46:15 +00:00
got-page-3a.s bfd/ 2007-11-14 20:46:15 +00:00
got-page-3b.s bfd/ 2007-11-14 20:46:15 +00:00
got-page-3c.s bfd/ 2007-11-14 20:46:15 +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
jaloverflow-2.d ld/ 2006-10-16 21:34:25 +00:00
jaloverflow-2.s
jaloverflow.d
jaloverflow.s
jr.s
mips16-1.d
mips16-1a.s
mips16-1b.s
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
mips16-hilo.d
mips16-hilo.ld
mips16-hilo.s
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
mips-elf-flags.exp Update sources to GPLv3 2007-07-06 14:09:45 +00:00
mips-elf.exp bfd/ 2007-11-14 20:46:15 +00:00
mips-lib.ld
multi-got-1-1.s
multi-got-1-2.s
multi-got-1.d bfd/ 2007-11-14 20:46:15 +00:00
multi-got-hidden-1.d * ld-mips-elf/multi-got-hidden-1.d, 2007-10-12 17:07:04 +00:00
multi-got-hidden-1.s * ld-mips-elf/multi-got-hidden-1.d, 2007-10-12 17:07:04 +00:00
multi-got-hidden-2.d * ld-mips-elf/multi-got-hidden-1.d, 2007-10-12 17:07:04 +00:00
multi-got-hidden-2.s * ld-mips-elf/multi-got-hidden-1.d, 2007-10-12 17:07:04 +00:00
multi-got-no-shared-1.s
multi-got-no-shared-2.s
multi-got-no-shared.d bfd/ 2007-11-14 20:46:15 +00:00
region1.d
region1.t
region1a.s
region1b.s
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
rel64.d bfd/ 2006-10-20 07:57:03 +00:00
rel64.s
relax-jalr-n32-shared.d
relax-jalr-n32.d
relax-jalr-n64-shared.d
relax-jalr-n64.d
relax-jalr.s
reloc-1-n32.d
reloc-1-n64.d ld/testsuite/ 2006-10-18 13:02:01 +00:00
reloc-1-rel.d
reloc-1a.s
reloc-1b.s
reloc-2.d
reloc-2.ld
reloc-2a.s
reloc-2b.s
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
reloc-merge-lo16.ld
reloc-merge-lo16.s
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
tls-hidden2-got.d bfd/ 2007-11-14 20:46:15 +00:00
tls-hidden2.d bfd/ 2007-11-14 20:46:15 +00:00
tls-hidden2a.s
tls-hidden2b.s
tls-hidden3.d bfd/ 2007-11-14 20:46:15 +00:00
tls-hidden3.got bfd/ 2007-11-14 20:46:15 +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/ 2007-11-14 20:46:15 +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 bfd/ 2007-11-14 20:46:15 +00:00
tls-hidden4.r bfd/ 2007-11-14 20:46:15 +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
tls-multi-got-1-2.s
tls-multi-got-1.d bfd/ 2007-11-14 20:46:15 +00:00
tls-multi-got-1.got bfd/ 2007-11-14 20:46:15 +00:00
tls-multi-got-1.r bfd/ 2007-11-14 20:46:15 +00:00
tlsbin-o32.d bfd/ 2007-11-14 20:46:15 +00:00
tlsbin-o32.got bfd/ 2007-11-14 20:46:15 +00:00
tlsbin-o32.s
tlsdyn-o32-1.d bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-1.got bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-2.d bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-2.got bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-2.s
tlsdyn-o32-3.d bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-3.got bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32.d bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32.got bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32.s
tlslib-hidden.ver
tlslib-o32-hidden.got bfd/ 2007-11-14 20:46:15 +00:00
tlslib-o32-ver.got bfd/ 2007-11-14 20:46:15 +00:00
tlslib-o32.d bfd/ 2007-11-14 20:46:15 +00:00
tlslib-o32.got bfd/ 2007-11-14 20:46:15 +00:00
tlslib-o32.s
tlslib.ver
vxworks1-lib.dd bfd/ 2007-08-13 21:16:39 +00:00
vxworks1-lib.nd
vxworks1-lib.rd bfd/ 2007-08-13 21:16:39 +00:00
vxworks1-lib.s
vxworks1-lib.td bfd/ 2007-04-12 19:26:09 +00:00
vxworks1-static.d ld/testsuite/ 2007-08-17 13:22:44 +00:00
vxworks1.dd
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
vxworks2-static.sd
vxworks2.s
vxworks2.sd
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