* 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)
commit267fb3c1cef03b0f00c9186f0de0ed3e9e5e1e00
tree02ee07882b8ee78ab80185c8e7861628182f28be
parent0f0569c4ae6c593d573b2961438826fc80ae1e42
* 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
ld/testsuite/ChangeLog
ld/testsuite/ld-sh/tlsbin-1.d
ld/testsuite/ld-sh/tlsbin-2.d
ld/testsuite/ld-sh/tlsbin-3.d
ld/testsuite/ld-sh/tlstpoff-1.d
ld/testsuite/ld-sh/tlstpoff-2.d