old-cross-binutils/ld/testsuite/ld-mips-elf
Richard Sandiford 634835aefb bfd/
* elfxx-mips.c (GGA_NORMAL, GGA_RELOC_ONLY, GGA_NONE): New macros.
	(mips_elf_link_hash_entry): Add a "global_got_area" field.
	(mips_elf_link_hash_newfunc): Initialize it.
	(mips_elf_sort_hash_table_f): Use h->global_got_area instead of
	h->root.got.offset.  Do not handle forced_local symbols specially.
	(mips_elf_record_global_got_symbol): Set h->global_got_area
	instead of h->root.got.offset.
	(mips_elf_recreate_got): Assert that h->global_got_area == GGA_NONE
	for indirect and warning symbols.
	(mips_elf_count_forced_local_got_symbols): Change the argument
	from a "elf_link_hash_entry" to "mips_elf_link_hash_entry".
	Use and set h->global_got_area instead of h->root.got.offset.
	Set it to GGA_NONE for all forced-local symbols.
	(mips_elf_set_global_got_offset): Set h->global_got_area
	instead of h->root.got.offset.  Use g->global_got_area instead
	of a combination of dynindx, forced_local and tls_type.
	(mips_elf_multi_got): Remove disabled code.  Pass GGA_* values to
	mips_elf_set_global_got_offset.
	(mips_elf_lay_out_got): Use mips_elf_link_hash_traverse instead
	of elf_link_hash_traverse.
	(_bfd_mips_elf_copy_indirect_symbol): Copy the indirect symbol's
	global_got_area to the direct symbol if the latter's value is higher.
	Set the indirect symbol's area to GGA_NONE.

ld/testsuite/
	* ld-mips-elf/got-vers-1a.s, ld-mips-elf/got-vers-1b.s,
	ld-mips-elf/got-vers-1.ver, ld-mips-elf/got-vers-1.dd,
	ld-mips-elf/got-vers-1.sd, ld-mips-elf/got-vers-1.rd: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2008-08-07 19:58:38 +00:00
..
attr-gnu-4-00.d
attr-gnu-4-0.s
attr-gnu-4-01.d
attr-gnu-4-1.s
attr-gnu-4-02.d
attr-gnu-4-2.s
attr-gnu-4-03.d
attr-gnu-4-3.s
attr-gnu-4-04.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-4.s
attr-gnu-4-05.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-5.s [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-10.d
attr-gnu-4-11.d
attr-gnu-4-12.d
attr-gnu-4-13.d
attr-gnu-4-14.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-15.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-20.d
attr-gnu-4-21.d
attr-gnu-4-22.d
attr-gnu-4-23.d
attr-gnu-4-24.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-25.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-30.d
attr-gnu-4-31.d
attr-gnu-4-32.d
attr-gnu-4-33.d
attr-gnu-4-34.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-35.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-40.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-41.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-42.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-43.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-44.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-45.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
attr-gnu-4-51.d [ld/testsuite/ChangeLog] 2007-11-17 13:38:57 +00:00
branch-misc-1.d
dyn-sec64.d * ld-mips-elf/dyn-sec64.d, ld-mips-elf/dyn-sec64.s, 2008-03-21 16:29:26 +00:00
dyn-sec64.ld * ld-mips-elf/dyn-sec64.d, ld-mips-elf/dyn-sec64.s, 2008-03-21 16:29:26 +00:00
dyn-sec64.s * ld-mips-elf/dyn-sec64.d, ld-mips-elf/dyn-sec64.s, 2008-03-21 16:29:26 +00:00
eh-frame1-n32.d ld/testsuite/ 2008-03-17 18:52:04 +00:00
eh-frame1-n64.d ld/testsuite/ 2008-03-17 18:52:04 +00:00
eh-frame1.ld
eh-frame1.s
eh-frame2-n32.d ld/testsuite/ 2008-03-17 18:52:04 +00:00
eh-frame2-n64.d ld/testsuite/ 2008-03-17 18:52:04 +00:00
eh-frame3.d
eh-frame4.d
elf-rel-got-n32.d
elf-rel-got-n64-linux.d bfd/ 2008-03-20 10:52:14 +00:00
elf-rel-got-n64.d bfd/ 2008-03-20 10:52:14 +00:00
elf-rel-xgot-n32.d
elf-rel-xgot-n64-linux.d bfd/ 2008-03-20 10:52:14 +00:00
elf-rel-xgot-n64.d bfd/ 2008-03-20 10:52:14 +00:00
emit-relocs-1.d
emit-relocs-1.ld
emit-relocs-1a.s
emit-relocs-1b.s
got-dump-1.d binutils/ 2008-03-20 10:53:11 +00:00
got-dump-1.ld binutils/ 2008-03-20 10:53:11 +00:00
got-dump-1.s binutils/ 2008-03-20 10:53:11 +00:00
got-dump-2.d binutils/ 2008-03-20 10:53:11 +00:00
got-dump-2.ld binutils/ 2008-03-20 10:53:11 +00:00
got-dump-2.s binutils/ 2008-03-20 10:53:11 +00:00
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
got-vers-1.dd bfd/ 2008-08-07 19:58:38 +00:00
got-vers-1.rd bfd/ 2008-08-07 19:58:38 +00:00
got-vers-1.sd bfd/ 2008-08-07 19:58:38 +00:00
got-vers-1.ver bfd/ 2008-08-07 19:58:38 +00:00
got-vers-1a.s bfd/ 2008-08-07 19:58:38 +00:00
got-vers-1b.s bfd/ 2008-08-07 19:58:38 +00:00
hash1.s
hash1a.d
hash1b.d
hash1c.d
jalbal.d
jalbal.s
jaloverflow-2.d
jaloverflow-2.s
jaloverflow.d
jaloverflow.s
jr.s
mips-dyn.ld
mips-elf-flags.exp Update sources to GPLv3 2007-07-06 14:09:45 +00:00
mips-elf.exp bfd/ 2008-08-07 19:58:38 +00:00
mips-lib.ld
mips16-1.d
mips16-1a.s
mips16-1b.s
mips16-call-global-1.s
mips16-call-global-2.s
mips16-call-global-3.s
mips16-call-global.d
mips16-hilo-n32.d
mips16-hilo.d
mips16-hilo.ld
mips16-hilo.s
mips16-intermix-1.s
mips16-intermix-2.s
mips16-intermix.d bfd/ 2008-08-06 19:44:47 +00:00
mips16-local-stubs-1.d bfd/ 2008-08-06 19:44:47 +00:00
mips16-local-stubs-1.s
mips16-pic-1-dummy.s bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1.dd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1.gd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1.inc bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1.ld bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1a.s bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-1b.s bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2.ad bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2.dd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2.gd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2.nd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2.rd bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2a.s bfd/ 2008-08-06 19:44:47 +00:00
mips16-pic-2b.s bfd/ 2008-08-06 19:44:47 +00:00
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
no-shared-1-n32.d bfd/ 2008-07-10 19:06:54 +00:00
no-shared-1-n64.d bfd/ 2008-07-10 19:06:54 +00:00
no-shared-1-n64.s bfd/ 2008-07-10 19:06:54 +00:00
no-shared-1-o32.d bfd/ 2008-07-10 19:06:54 +00:00
no-shared-1-o32.s bfd/ 2008-07-10 19:06:54 +00:00
no-shared-1.ld bfd/ 2008-07-10 19:06:54 +00:00
region1.d
region1.t
region1a.s
region1b.s
rel32-n32.d
rel32-o32.d
rel32.s
rel64.d
rel64.s
relax-jalr-n32-shared.d bfd/ 2008-08-06 19:49:06 +00:00
relax-jalr-n32.d
relax-jalr-n64-shared.d bfd/ 2008-08-06 19:49:06 +00:00
relax-jalr-n64.d
relax-jalr.s
reloc-1-n32.d
reloc-1-n64.d
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
reloc-3.d
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-estimate-1.d bfd/ 2008-08-07 19:50:05 +00:00
reloc-estimate-1.ld bfd/ 2008-08-07 19:50:05 +00:00
reloc-estimate-1a.s bfd/ 2008-08-07 19:50:05 +00:00
reloc-estimate-1b.s bfd/ 2008-08-07 19:50:05 +00:00
reloc-merge-lo16.d
reloc-merge-lo16.ld
reloc-merge-lo16.s
stub-dynsym-1-2fe80.d
stub-dynsym-1-7fff.d
stub-dynsym-1-8000.d
stub-dynsym-1-10000.d
stub-dynsym-1-fff0.d
stub-dynsym-1.ld
stub-dynsym-1.s
textrel-1.d
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 bfd/ 2008-08-06 19:49:06 +00:00
tls-hidden3.r bfd/ 2007-11-14 20:46:15 +00:00
tls-hidden3a.s
tls-hidden3b.s
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
tls-hidden4b.s
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/ 2008-08-06 19:49:06 +00:00
tls-multi-got-1.r bfd/ 2008-08-06 19:49:06 +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/ 2008-08-06 19:49:06 +00:00
tlsdyn-o32-1.got bfd/ 2007-11-14 20:46:15 +00:00
tlsdyn-o32-2.d bfd/ 2008-08-07 19:57:28 +00:00
tlsdyn-o32-2.got bfd/ 2008-08-07 19:57:28 +00:00
tlsdyn-o32-2.s
tlsdyn-o32-3.d bfd/ 2008-08-07 19:57:28 +00:00
tlsdyn-o32-3.got bfd/ 2008-08-07 19:57:28 +00:00
tlsdyn-o32.d bfd/ 2008-08-06 19:49:06 +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
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
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
vxworks1-static.d ld/testsuite/ 2007-08-17 13:22:44 +00:00
vxworks1.dd
vxworks1.ld
vxworks1.rd
vxworks1.s
vxworks2-static.sd
vxworks2.s
vxworks2.sd