Exemple #1
0
int __set_tls(void* ptr) {
  // We also need to write the location of the tls to ptr[0].
  *(void**) ptr = ptr;
  return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr);
}
__LIBC_HIDDEN__ int __set_tls(void* ptr) {
  return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr);
}