aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/arm
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-04-07 10:29:03 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-04-08 07:52:54 +0000
commit4d9488674f3a36a2d12d11cad170cb1bd1c14a6d (patch)
tree2277b02a0dafdbed7afc493e83e583064d2d937a /libexec/rtld-elf/arm
parent24b2f4ea49229618c5608846acfc10be2eb0d567 (diff)
Diffstat (limited to 'libexec/rtld-elf/arm')
-rw-r--r--libexec/rtld-elf/arm/reloc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libexec/rtld-elf/arm/reloc.c b/libexec/rtld-elf/arm/reloc.c
index 7779169667be..4e551b0948ad 100644
--- a/libexec/rtld-elf/arm/reloc.c
+++ b/libexec/rtld-elf/arm/reloc.c
@@ -491,10 +491,6 @@ ifunc_init(Elf_Auxinfo aux_info[__min_size(AT_COUNT)] __unused)
void
allocate_initial_tls(Obj_Entry *objs)
{
-#ifdef ARM_TP_ADDRESS
- void **_tp = (void **)ARM_TP_ADDRESS;
-#endif
-
/*
* Fix the size of the static TLS block by using the maximum
* offset allocated so far and adding a bit for dynamic modules to
@@ -503,27 +499,17 @@ allocate_initial_tls(Obj_Entry *objs)
tls_static_space = tls_last_offset + tls_last_size + RTLD_STATIC_TLS_EXTRA;
-#ifdef ARM_TP_ADDRESS
- (*_tp) = (void *) allocate_tls(objs, NULL, TLS_TCB_SIZE, 8);
-#else
sysarch(ARM_SET_TP, allocate_tls(objs, NULL, TLS_TCB_SIZE, 8));
-#endif
}
void *
__tls_get_addr(tls_index* ti)
{
char *p;
-#ifdef ARM_TP_ADDRESS
- void **_tp = (void **)ARM_TP_ADDRESS;
-
- p = tls_get_addr_common((Elf_Addr **)(*_tp), ti->ti_module, ti->ti_offset);
-#else
void *_tp;
__asm __volatile("mrc p15, 0, %0, c13, c0, 3" \
: "=r" (_tp));
p = tls_get_addr_common((Elf_Addr **)(_tp), ti->ti_module, ti->ti_offset);
-#endif
return (p);
}