summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2023-06-08 13:52:47 +1000
committerChris Johns <chrisj@rtems.org>2023-08-21 11:16:17 +1000
commit27da374e481b0067896f70b21c9d89c04f87a101 (patch)
tree9e8d60b543f65dff785ab2c286463e051abfa09a /cpukit/libdl/rtl.c
parentspec/cpukit: Omit Cortex-M from libdebugger build (diff)
downloadrtems-27da374e481b0067896f70b21c9d89c04f87a101.tar.bz2
libdl: Add support to import base image TLS symbols
This change requires an rtems-tools update for symbol generation. Working architectures: - aarch64 - arm - powerpc - sparc No newlib TLS support but checked: - i386 - m69k Updates #4920
Diffstat (limited to '')
-rw-r--r--cpukit/libdl/rtl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/libdl/rtl.c b/cpukit/libdl/rtl.c
index 21ddb00aac..8250af24c9 100644
--- a/cpukit/libdl/rtl.c
+++ b/cpukit/libdl/rtl.c
@@ -857,8 +857,10 @@ rtems_rtl_path_prepend (const char* path)
}
void
-rtems_rtl_base_sym_global_add (const unsigned char* esyms,
- unsigned int size)
+rtems_rtl_base_sym_global_add (const unsigned char* esyms,
+ unsigned int size,
+ rtems_rtl_tls_offset* tls_offsets,
+ unsigned int tls_size)
{
if (rtems_rtl_trace (RTEMS_RTL_TRACE_GLOBAL_SYM))
printf ("rtl: adding global symbols, table size %u\n", size);
@@ -869,7 +871,7 @@ rtems_rtl_base_sym_global_add (const unsigned char* esyms,
return;
}
- rtems_rtl_symbol_global_add (rtl->base, esyms, size);
+ rtems_rtl_symbol_global_add (rtl->base, esyms, size, tls_offsets, tls_size);
rtems_rtl_unlock ();
}