OSDN Git Service

* elf32-sh.c (tpoff): New.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Thu, 24 Apr 2003 05:19:09 +0000 (05:19 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Thu, 24 Apr 2003 05:19:09 +0000 (05:19 +0000)
commitfbce82f56eee15bed511952656e7b28e58b9444d
tree66b6ced7dc33b32588bfc37e05a9158893f5268e
parent271140956824fa9073d9eed617d00699a26ba1dc
* elf32-sh.c (tpoff): New.
(struct elf_sh_dyn_relocs): Remove tls_tpoff32.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
        (allocate_dynrelocs): Don't make unnecessary dynamic TLS
relocations.  Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses.
        (sh_elf_relocate_section): Likewise. Remove unnecessary tests.
(dtpoff_base): Fix wrong indentation.
(sh_elf_check_relocs): Don't set DF_STATIC_TLS flag with non-TLS
relocations.  Don't set tls_tpoff32 flag.  Don't make unnecessary
R_SH_TLS_TPOFF32 relocations.

* ld-sh/tlsbin-1.d, ld-sh/tlsbin-2.d, ld-sh/tlsbin-3.d,
ld-sh/tlstpoff-1.d, ld-sh/tlstpoff-2.d: Update for removing
unnecessary TLS relocs.
bfd/ChangeLog
bfd/elf32-sh.c