* config/arc/arc.c (RTX_OK_FOR_OFFSET_P): Fix access of
        SYMBOL_REF in UNSPEC.
        (arc_encode_section_info): Fix bug in last change.
        (arc_output_pic_addr_const): Use SYMBOL_REF_TLS_S9_P.
        * config/arc/predicates.md (long_immediate_loadstore_operand):
        Likewise.
        (move_dest_operand): Likewise.
        * config/arc/arc.c (arc_attribute_table) <tls9>: Change max_arg to 1.
        (arc_legitimize_tls_address): Handle TLS_MODEL_LOCAL_DYNAMIC
        properly.
        (arc_output_pic_addr_const): Output @dtpoff{,9} for local dynamic
        tls model.
        * config/arc/arc.c (arc_legitimize_tls_address): Use .tdata as
        default base for TLS_MODEL_LOCAL_DYNAMIC.