ladybird/AK/ELF
Andreas Kling ec6bceaa08 Kernel: Support thread-local storage
This patch adds support for TLS according to the x86 System V ABI.
Each thread gets a thread-specific memory region, and the GS segment
register always points _to a pointer_ to the thread-specific memory.

In other words, to access thread-local variables, userspace programs
start by dereferencing the pointer at [gs:0].

The Process keeps a master copy of the TLS segment that new threads
should use, and when a new thread is created, they get a copy of it.
It's basically whatever the PT_TLS program header in the ELF says.
2019-09-07 15:55:36 +02:00
..
ELFImage.cpp ELFImage: Sprinkle some constification love 2019-07-18 13:22:51 +02:00
ELFImage.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
ELFLoader.cpp Kernel: Support thread-local storage 2019-09-07 15:55:36 +02:00
ELFLoader.h Kernel: Support thread-local storage 2019-09-07 15:55:36 +02:00
exec_elf.h ELF: Run clang-format on everything. 2019-06-07 17:12:30 +02:00