* elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
authorIan Lance Taylor <ian@airs.com>
Thu, 6 Feb 1997 22:15:37 +0000 (22:15 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 6 Feb 1997 22:15:37 +0000 (22:15 +0000)
commite900e695a28fbdd4220531f75fbabe1a5d92b552
treed438214e5cf3b05a6c1b98b285cf5c7121bfd14b
parent258b1f5d18105cada68ce457610e1e4614a568d6
* elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
(struct mips_elf_link_hash_entry): Add new fields fn_stub,
need_fn_sub, call_stub, and call_fp_stub.
(struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
(mips_elf_link_hash_newfunc): Initialize new fields.
(mips_elf_link_hash_table_create): Likewise.
(mips_elf_relocate_section): Redirect relocations to use mips16
stubs when appropriate.
(mips_elf_check_relocs): Attach stub sections to the appropriate
symbol.  Set need_fn_stub when appropriate.
(mips_elf_always_size_sections): New static function.
(mips_elf_check_mips16_stubs): New static function.
(elf_backend_always_size_sections): Define.
* elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
bfd/ChangeLog
bfd/elf32-mips.c