You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relaxable TLSDESC only requires that R_RISCV_TLSDESC_HI20 to be paired with R_RISCV_RELAX
Requiring 4 R_RISCV_RELAX relocations impose a large size increase to
the relocatable file. To mitigate this size increase, we can say that
the whole TLSDESC code sequence is relaxable if the first instruction
(R_RISCV_TLSDESC_HI20) is paired with R_RISCV_RELAX.
A statically linked executable typically has a simple relocation
resolver that handles just RELATIVE/IFUNC. For a `-fpic -mtls-dialect=desc`
relocatable file, the linker is required to perform TLS optimization to
local-exec for a statically linked executable. Therefore, instruction
rewriting is essentially inevitable if the relocation resolver is kept
simple. Ths general-dynamic TLS model, without a defined optimization
scheme, actually has the same issue.
0 commit comments