Replace #[thread_local]
Replaces uses of the builtin #[thread_local]
with a manual assembly-written replacement.
This allows removing the kernel_ld.sh
script and the -z use-gs-for-tls
patch. Additionally, the relocation-model
is set to static
on x86-32 kernels, which reduces code size and performance, as PIC is not as cheap as it is on x86_64.