diff options
author | pk33 <pk33@email.com> | 2024-11-03 03:46:13 +0100 |
---|---|---|
committer | pk33 <pk33@email.com> | 2024-11-03 03:46:13 +0100 |
commit | 69058973a9f5073184b9f0b98dbcbbd63da40514 (patch) | |
tree | 67d9dcda3c8a67f1b22a0752a25839a2266327e7 /musl/link.h | |
parent | 0f23d50c8291b23799e55c8653c15f16c0d752d0 (diff) | |
download | engine33-69058973a9f5073184b9f0b98dbcbbd63da40514.tar.gz |
ignore
Diffstat (limited to 'musl/link.h')
-rw-r--r-- | musl/link.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/musl/link.h b/musl/link.h deleted file mode 100644 index 8150185..0000000 --- a/musl/link.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef _LINK_H -#define _LINK_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include <elf.h> -#define __NEED_size_t -#define __NEED_uint32_t -#include <bits/alltypes.h> - -#if UINTPTR_MAX > 0xffffffff -#define ElfW(type) Elf64_ ## type -#else -#define ElfW(type) Elf32_ ## type -#endif - -#include <bits/link.h> - -struct dl_phdr_info { - ElfW(Addr) dlpi_addr; - const char *dlpi_name; - const ElfW(Phdr) *dlpi_phdr; - ElfW(Half) dlpi_phnum; - unsigned long long int dlpi_adds; - unsigned long long int dlpi_subs; - size_t dlpi_tls_modid; - void *dlpi_tls_data; -}; - -struct link_map { - ElfW(Addr) l_addr; - char *l_name; - ElfW(Dyn) *l_ld; - struct link_map *l_next, *l_prev; -}; - -struct r_debug { - int r_version; - struct link_map *r_map; - ElfW(Addr) r_brk; - enum { RT_CONSISTENT, RT_ADD, RT_DELETE } r_state; - ElfW(Addr) r_ldbase; -}; - -int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *); - -#ifdef __cplusplus -} -#endif - -#endif |