From 9d224046e71083e0fe3e8c26c22f729399c2c950 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Tue, 21 Jul 2020 10:55:09 +0200 Subject: ldelf, libutee: add minimal Thread Local Storage support Preparing for C++ support in TAs. Adds enough runtime Thread Local Storage (TLS) support for the GNU C++ compilers (arm-linux-gnueabihf-g++, aarch64-linux-gnu-g++) to work with OP-TEE. That is: - A Thread Control Block, - The __tls_get_addr() and dl_iterate_phdr() functions. Note that __tls_get_addr() is an ABI helper so it has no prototype in a user-accessible header file. dl_iterate_phdr() however is defined in and may be used in a TA. The file lib/libutee/include/link.h is borrowed from Android's Bionic [1] with minor changes (added the required #include statement and named the function parameters). A similar header is provided by other C libraries such as GNU libc, musl and FreeBSD/NetBSD/OpenBSD. Link: [1] https://android.googlesource.com/platform/bionic/+/master/libc/include/link.h Signed-off-by: Jerome Forissier Acked-by: Etienne Carriere Reviewed-by: Jens Wiklander --- typedefs.checkpatch | 3 +++ 1 file changed, 3 insertions(+) (limited to 'typedefs.checkpatch') diff --git a/typedefs.checkpatch b/typedefs.checkpatch index 69475111..31341fa5 100644 --- a/typedefs.checkpatch +++ b/typedefs.checkpatch @@ -34,3 +34,6 @@ SLIST_HEAD\(.*\) SLIST_ENTRY\(.*\) mbedtls_mpi_uint mbedtls_mpi +Elf_Phdr +Elf_Half +Elf_Addr -- cgit v1.2.3