diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-07 17:28:52 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-07 18:24:51 -0500 |
commit | f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 (patch) | |
tree | 93b156621dc0303816b37f60ba88051b702d92f6 /lib/mlibc/options/rtdl/include | |
parent | bd5969fc876a10b18613302db7087ef3c40f18e1 (diff) |
build: Build mlibc + add distclean target
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/mlibc/options/rtdl/include')
-rw-r--r-- | lib/mlibc/options/rtdl/include/mlibc/rtdl-abi.hpp | 28 | ||||
-rw-r--r-- | lib/mlibc/options/rtdl/include/mlibc/rtdl-config.hpp | 24 | ||||
-rw-r--r-- | lib/mlibc/options/rtdl/include/mlibc/rtdl-sysdeps.hpp | 12 |
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 |