This code sequence implements the LE model described in Thread-Local Storage Access Models.
Table 8–6 SPARC: Local Executable Thread-Local Variable Access Codes
The sethi and xor instructions generate R_SPARC_TLS_LE_HIX22 and R_SPARC_TLS_LE_LOX10 relocations respectively. The link-editor binds these relocations directly to the static TLS offset for the symbol defined in the executable. No relocation processing is required at runtime.