* elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 10 Feb 2003 22:17:18 +0000 (22:17 +0000)
committerKaz Kojima <kkojima@rr.iij4u.or.jp>
Mon, 10 Feb 2003 22:17:18 +0000 (22:17 +0000)
commitc95b8a7acedca8d6f3dcc368d116ca8b7339f13a
tree008b578217d17106d8d1a1ba6e99812796d25a84
parenta779acda1541fc6b08f5f5758705b2186e627354
* elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
(elf_sh_link_hash_entry): Remove tls_tpoff32 field.
(sh_elf_link_hash_newfunc): Remove the initialization of
tls_tpoff32 field.
(allocate_dynrelocs): Keep dyn_relocs if it includes the entry
for which tls_tpoff32 flag is set.
(sh_elf_relocate_section): Covert to LE only if the dyn_relocs
of the symbol includes the entry matched with the input_section
and having tls_tpoff32 flag on.  When linking statically, set
symbol index of R_SH_TLS_TPOFF32 relocation to zero if the symbol
is defined in this executable.
(sh_elf_check_relocs): Set tls_tpoff32 flag appropriately.
bfd/ChangeLog
bfd/elf32-sh.c