]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: Cleanups to setting TLS registers for Linux binaries.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 12 Mar 2021 17:47:31 +0000 (09:47 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 29 Mar 2021 18:09:41 +0000 (11:09 -0700)
commit77dfa7cfafb7afb6095f6f4ff30c4c22646b4989
tree07aef2a2fa32140da7871bbe1864ca2228e6396d
parent57d7992b50ba36290422bd208d45033de8946307
amd64: Cleanups to setting TLS registers for Linux binaries.

- Use update_pcb_bases() when updating FS or GS base addresses to
  permit use of FSBASE and GSBASE in Linux processes.  This also sets
  PCB_FULL_IRET.  linux32 was setting PCB_32BIT which should be a
  no-op (exec sets it).

- Remove write-only variables to construct unused segment descriptors
  for linux32.

Sponsored by: Netflix

(cherry picked from commit 704547ce1ca56e1123048cd152ed4e468d41d703)
sys/amd64/linux/linux_machdep.c
sys/amd64/linux32/linux32_machdep.c