]> Git Repo - uclibc-ng.git/blame - ldso/config.h
Put in but leave commented the DL_DEBUG define
[uclibc-ng.git] / ldso / config.h
CommitLineData
66f269d2
EA
1#ifdef DEBUG
2# define LDSO_IMAGE "../ld-so/ld.so"
3# define LDSO_CONF "../util/ld.so.conf"
4# define LDSO_CACHE "../util/ld.so.cache"
5# define LDSO_PRELOAD "../util/ld.so.preload"
6# define LDDSTUB "../util/lddstub"
7#elif UCLIBC_DEVEL
8# define LDSO_IMAGE UCLIBC_INSTALL_DIR"/lib/ld.so"
9# define LDSO_CONF UCLIBC_INSTALL_DIR"/etc/ld.so.conf"
10# define LDSO_CACHE UCLIBC_INSTALL_DIR"/etc/ld.so.cache"
11# define LDSO_PRELOAD UCLIBC_INSTALL_DIR"/etc/ld.so.preload"
12# define LDDSTUB UCLIBC_INSTALL_DIR"/lib/lddstub"
13#else
14# define LDSO_IMAGE "/lib/ld.so"
15# define LDSO_CONF "/etc/ld.so.conf"
16# define LDSO_CACHE "/etc/ld.so.cache"
17# define LDSO_PRELOAD "/etc/ld.so.preload"
18# define LDDSTUB "/usr/lib/lddstub"
19#endif
20
21#define LDD_ARGV0 "__LDD_ARGV0"
22#define DIR_SEP ":, \t\n"
23#define MAX_DIRS 32
24
25typedef void (*loadptr)(int func, ...);
26typedef void (*callbackptr)(int ver, int nlibs, char **libs,
27 int nmods, char **mods);
28
29#define CALLBACK_VER 1
30
31#define LIB_ANY -1
32#define LIB_DLL 0
33#define LIB_ELF 1
34#define LIB_ELF_LIBC5 2
35#define LIB_ELF_LIBC6 3
36#define LIB_ELF64 0x80
37
38#define FUNC_VERS 0
39#define FUNC_LDD 1
40#define FUNC_LINK 2
41#define FUNC_LINK_AND_CALLBACK 3
42
43#define LDSO_CACHE_MAGIC "ld.so-"
44#define LDSO_CACHE_MAGIC_LEN (sizeof LDSO_CACHE_MAGIC -1)
45#define LDSO_CACHE_VER "1.7.0"
46#define LDSO_CACHE_VER_LEN (sizeof LDSO_CACHE_VER -1)
47
48typedef struct {
49 char magic [LDSO_CACHE_MAGIC_LEN];
50 char version [LDSO_CACHE_VER_LEN];
51 int nlibs;
52} header_t;
53
54typedef struct {
55 int flags;
56 int sooffset;
57 int liboffset;
58} libentry_t;
59
This page took 0.024775 seconds and 4 git commands to generate.