summaryrefslogtreecommitdiff
path: root/ldso/config.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-19 06:05:34 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-19 06:05:34 +0000
commitbca6a155c79147f706242ed7c590a3538e407a40 (patch)
tree17c7d7784edc61f3984fb3255672f3ecfe826d22 /ldso/config.h
parentfd47fd4039cadf42620bbfce43c3a0338e23ee26 (diff)
Phase one of my evil plan to clean up ld.so...
Diffstat (limited to 'ldso/config.h')
-rw-r--r--ldso/config.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/ldso/config.h b/ldso/config.h
deleted file mode 100644
index 499101885..000000000
--- a/ldso/config.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifdef DEBUG
-# define LDSO_IMAGE "../ld-so/ld.so"
-# define LDSO_CONF "../util/ld.so.conf"
-# define LDSO_CACHE "../util/ld.so.cache"
-# define LDSO_PRELOAD "../util/ld.so.preload"
-# define LDDSTUB "../util/lddstub"
-#else
-# define LDSO_IMAGE UCLIBC_TARGET_PREFIX "lib/ld.so"
-# define LDSO_CONF UCLIBC_TARGET_PREFIX "etc/ld.so.conf"
-# define LDSO_CACHE UCLIBC_TARGET_PREFIX "etc/ld.so.cache"
-# define LDSO_PRELOAD UCLIBC_TARGET_PREFIX "etc/ld.so.preload"
-# define LDDSTUB UCLIBC_TARGET_PREFIX "usr/lib/lddstub"
-#endif
-
-#define LDD_ARGV0 "__LDD_ARGV0"
-#define DIR_SEP ":, \t\n"
-#define MAX_DIRS 32
-
-typedef void (*loadptr)(int func, ...);
-typedef void (*callbackptr)(int ver, int nlibs, char **libs,
- int nmods, char **mods);
-
-#define CALLBACK_VER 1
-
-#define LIB_ANY -1
-#define LIB_DLL 0
-#define LIB_ELF 1
-#define LIB_ELF_LIBC5 2
-#define LIB_ELF_LIBC6 3
-#define LIB_ELF64 0x80
-
-#define FUNC_VERS 0
-#define FUNC_LDD 1
-#define FUNC_LINK 2
-#define FUNC_LINK_AND_CALLBACK 3
-
-#define LDSO_CACHE_MAGIC "ld.so-"
-#define LDSO_CACHE_MAGIC_LEN (sizeof LDSO_CACHE_MAGIC -1)
-#define LDSO_CACHE_VER "1.7.0"
-#define LDSO_CACHE_VER_LEN (sizeof LDSO_CACHE_VER -1)
-
-typedef struct {
- char magic [LDSO_CACHE_MAGIC_LEN];
- char version [LDSO_CACHE_VER_LEN];
- int nlibs;
-} header_t;
-
-typedef struct {
- int flags;
- int sooffset;
- int liboffset;
-} libentry_t;
-