aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/rtdl/include
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/options/rtdl/include')
-rw-r--r--lib/mlibc/options/rtdl/include/mlibc/rtdl-abi.hpp28
-rw-r--r--lib/mlibc/options/rtdl/include/mlibc/rtdl-config.hpp24
-rw-r--r--lib/mlibc/options/rtdl/include/mlibc/rtdl-sysdeps.hpp12
3 files changed, 0 insertions, 64 deletions
diff --git a/lib/mlibc/options/rtdl/include/mlibc/rtdl-abi.hpp b/lib/mlibc/options/rtdl/include/mlibc/rtdl-abi.hpp
deleted file mode 100644
index 135b461..0000000
--- a/lib/mlibc/options/rtdl/include/mlibc/rtdl-abi.hpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef MLIBC_RTDL_ABI
-#define MLIBC_RTDL_ABI
-
-#include <stdint.h>
-
-#if defined(__x86_64__) || defined(__aarch64__) || defined(__i386__) || defined(__riscv)
-
-struct __abi_tls_entry {
- struct SharedObject *object;
- size_t offset;
-};
-static_assert(sizeof(__abi_tls_entry) == sizeof(size_t) * 2, "Bad __abi_tls_entry size");
-
-extern "C" void *__dlapi_get_tls(struct __abi_tls_entry *);
-
-#else
-#error "Missing architecture specific code."
-#endif
-
-#if defined(__riscv)
-constexpr inline unsigned long TLS_DTV_OFFSET = 0x800;
-#elif defined(__x86_64__) || defined(__i386__) || defined(__aarch64__)
-constexpr inline unsigned long TLS_DTV_OFFSET = 0;
-#else
-#error "Missing architecture specific code."
-#endif
-
-#endif // MLIBC_RTDL_ABI
diff --git a/lib/mlibc/options/rtdl/include/mlibc/rtdl-config.hpp b/lib/mlibc/options/rtdl/include/mlibc/rtdl-config.hpp
deleted file mode 100644
index 4838880..0000000
--- a/lib/mlibc/options/rtdl/include/mlibc/rtdl-config.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef MLIBC_RTDL_CONFIG
-#define MLIBC_RTDL_CONFIG
-
-namespace mlibc {
-
-struct RtdlConfig {
- bool secureRequired;
-};
-
-}
-
-extern "C" const mlibc::RtdlConfig &__dlapi_get_config();
-
-#ifndef MLIBC_BUILDING_RTDL
-namespace mlibc {
-
-inline const RtdlConfig &rtdlConfig() {
- return __dlapi_get_config();
-}
-
-}
-#endif
-
-#endif // MLIBC_RTDL_CONFIG
diff --git a/lib/mlibc/options/rtdl/include/mlibc/rtdl-sysdeps.hpp b/lib/mlibc/options/rtdl/include/mlibc/rtdl-sysdeps.hpp
deleted file mode 100644
index c35271c..0000000
--- a/lib/mlibc/options/rtdl/include/mlibc/rtdl-sysdeps.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef MLIBC_RTDL_SYSDEPS
-#define MLIBC_RTDL_SYSDEPS
-
-namespace [[gnu::visibility("hidden")]] mlibc {
-
-int sys_tcb_set(void *pointer);
-
-[[gnu::weak]] int sys_vm_readahead(void *pointer, size_t size);
-
-} // namespace mlibc
-
-#endif // MLIBC_RTDL_SYSDEPS