]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct the offset of static TLS variables for Initial-Exec on RISC-V.
authorjhb <jhb@FreeBSD.org>
Tue, 10 Dec 2019 21:56:44 +0000 (21:56 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 10 Dec 2019 21:56:44 +0000 (21:56 +0000)
commit80e05761c10f5f4615967fb474a07feb670ee45a
treebcad180b89f65c9c89c26ce52637fc5334518b02
parentb11a49954ef87627ef2eeb12155eea1ab8ca3f1c
Correct the offset of static TLS variables for Initial-Exec on RISC-V.

TP points to the start of the TLS block after the tcb, but
Obj_Entry.tlsoffset includes the tcb, so subtract the size of the tcb
to compute the offset relative to TP.

This is identical to the same fixes for powerpc in r339072 and r342671.

Reviewed by: James Clarke
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D22661
libexec/rtld-elf/riscv/reloc.c