c224138d88
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. |
||
---|---|---|
.. | ||
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-4.s | ||
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 | ||
attr-gnu-4-20.d | ||
attr-gnu-4-21.d | ||
attr-gnu-4-22.d | ||
attr-gnu-4-23.d | ||
attr-gnu-4-30.d | ||
attr-gnu-4-31.d | ||
attr-gnu-4-32.d | ||
attr-gnu-4-33.d | ||
attr-gnu-4-41.d | ||
branch-misc-1.d | ||
eh-frame1-n32.d | ||
eh-frame1-n64.d | ||
eh-frame1.ld | ||
eh-frame1.s | ||
eh-frame2-n32.d | ||
eh-frame2-n64.d | ||
eh-frame3.d | ||
eh-frame4.d | ||
elf-rel-got-n32.d | ||
elf-rel-got-n64-linux.d | ||
elf-rel-got-n64.d | ||
elf-rel-xgot-n32.d | ||
elf-rel-xgot-n64-linux.d | ||
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 | ||
got-page-1.ld | ||
got-page-1.s | ||
got-page-2.d | ||
got-page-2.s | ||
got-page-3.d | ||
got-page-3a.s | ||
got-page-3b.s | ||
got-page-3c.s | ||
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 | ||
mips-elf.exp | ||
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 | ||
mips16-local-stubs-1.d | ||
mips16-local-stubs-1.s | ||
multi-got-1-1.s | ||
multi-got-1-2.s | ||
multi-got-1.d | ||
multi-got-hidden-1.d | ||
multi-got-hidden-1.s | ||
multi-got-hidden-2.d | ||
multi-got-hidden-2.s | ||
multi-got-no-shared-1.s | ||
multi-got-no-shared-2.s | ||
multi-got-no-shared.d | ||
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 | ||
relax-jalr-n32.d | ||
relax-jalr-n64-shared.d | ||
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 | ||
reloc-4.s | ||
reloc-5.d | ||
reloc-5.s | ||
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 | ||
tls-hidden2.d | ||
tls-hidden2a.s | ||
tls-hidden2b.s | ||
tls-hidden3.d | ||
tls-hidden3.got | ||
tls-hidden3.ld | ||
tls-hidden3.r | ||
tls-hidden3a.s | ||
tls-hidden3b.s | ||
tls-hidden4.got | ||
tls-hidden4.r | ||
tls-hidden4a.s | ||
tls-hidden4b.s | ||
tls-multi-got-1-1.s | ||
tls-multi-got-1-2.s | ||
tls-multi-got-1.d | ||
tls-multi-got-1.got | ||
tls-multi-got-1.r | ||
tlsbin-o32.d | ||
tlsbin-o32.got | ||
tlsbin-o32.s | ||
tlsdyn-o32-1.d | ||
tlsdyn-o32-1.got | ||
tlsdyn-o32-2.d | ||
tlsdyn-o32-2.got | ||
tlsdyn-o32-2.s | ||
tlsdyn-o32-3.d | ||
tlsdyn-o32-3.got | ||
tlsdyn-o32.d | ||
tlsdyn-o32.got | ||
tlsdyn-o32.s | ||
tlslib-hidden.ver | ||
tlslib-o32-hidden.got | ||
tlslib-o32-ver.got | ||
tlslib-o32.d | ||
tlslib-o32.got | ||
tlslib-o32.s | ||
tlslib.ver | ||
vxworks-forced-local-1.d | ||
vxworks-forced-local-1.s | ||
vxworks-forced-local-1.ver | ||
vxworks1-lib.dd | ||
vxworks1-lib.nd | ||
vxworks1-lib.rd | ||
vxworks1-lib.s | ||
vxworks1-lib.td | ||
vxworks1-static.d | ||
vxworks1.dd | ||
vxworks1.ld | ||
vxworks1.rd | ||
vxworks1.s | ||
vxworks2-static.sd | ||
vxworks2.s | ||
vxworks2.sd |