https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83010
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- >From quick look, it seems gas/ld just doesn't have corresponding support, so that would need to be written first. There is R_AARCH64_TLS_DTPREL64 relocation, wonder if that might do the job if gas has some way to emit that relocation.