include/elf/ 2006-05-14 Carlos O'Donell Randolph Chung * hppa.h (R_PARISC_TLS_GD21L, R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L, R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L, R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64, R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64): New TLS relocs. (R_PARISC_TLS_LE21L, R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R, R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64): Define TLS relocs using existing equivalents. bfd/ 2006-05-14 Carlos O'Donell Randolph Chung * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations. Add handling for TLS relocations. (elf_hpp_reloc_final_type): Handle TLS relocs. * elf32-hppa.c: Add authors for cleanup and TLS support. (hppa_elf_local_got_tls_type, hh_name, eh_name): Define. (elf32_hppa_link_hash_entry): Add tls_type. (elf32_hppa_link_hash_table): Add tld_ldm_got. (hppa_link_has_newfunc): Set tls_type. (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount. (hppa_stub_name): Use hh_name macro. (elf32_hppa_copy_indirect_symbol): Copy TLS information. (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc. Handle TLS relocs. (elf32_hppa_gc_sweep_hook): Likewise. (allocate_dynrelocs): Handle TLS relocs. (elf32_hppa_size_dynamic_sections): Count space required by TLS relocs. Use hh_name macro. (dtpoff_base): New function. (tpoff): Likewise. (elf32_hppa_optimized_tls_reloc): Likewise. (final_link_relocate): Handle TLS relocs. (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name and hh_name macros. (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use hh_name and eh_name macros. (elf32_hppa_reloc_type_clas): Handle TLS relocs. gas/ 2006-05-14 Carlos O'Donell Randolph Chung * config/tc-hppa.c (is_tls_gdidx, is_tls_ldidx, is_tls_dtpoff, is_tls_ieoff, is_tls_leoff): Define. (fix_new_hppa): Handle TLS. (cons_fix_new_hppa): Likewise. (pa_ip): Likewise. (md_apply_fix): Handle TLS relocs. * config/tc-hppa.h (hppa_fix_adjustable): Handle TLS.