Skip to content

Replace #[thread_local]

Jacob Lorentzon requested to merge 4lDO2/kernel:no_more_tls into master

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.

Merge request reports