diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-07 10:12:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-07 10:12:25 +0000 |
commit | 2e723e150ab9b11e658311d6dfe2a1c1e402b833 (patch) | |
tree | 3dd87f0a3bcc014b30ba226b7efbdb1c143b08fe /ldso/libdl | |
parent | cdf8ceb36ff80e68c0ffbde96b20cb088a9fe59b (diff) |
Step one, begin shuffling things around a bit
Diffstat (limited to 'ldso/libdl')
-rw-r--r-- | ldso/libdl/dlib.c | 10 | ||||
-rw-r--r-- | ldso/libdl/libdl.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c index d09210acc..65c54ac42 100644 --- a/ldso/libdl/dlib.c +++ b/ldso/libdl/dlib.c @@ -32,9 +32,9 @@ static int __attribute__ ((unused)) foobar1 = (int) foobar; /* Use as pointer */ extern void _dl_dprintf(int, const char *, ...) __attribute__ ((__weak__, __alias__ ("foobar"))); extern char *_dl_find_hash(const char *, struct dyn_elf *, struct elf_resolve *, enum caller_type) __attribute__ ((__weak__, __alias__ ("foobar"))); -extern struct elf_resolve * _dl_load_shared_library(int, struct dyn_elf **, struct elf_resolve *, char *) +extern struct elf_resolve * _dl_load_shared_library(int, struct dyn_elf **, struct elf_resolve *, char *, int) __attribute__ ((__weak__, __alias__ ("foobar"))); -extern struct elf_resolve * _dl_check_if_named_library_is_loaded(const char *full_libname) +extern struct elf_resolve * _dl_check_if_named_library_is_loaded(const char *, int) __attribute__ ((__weak__, __alias__ ("foobar"))); extern int _dl_fixup(struct dyn_elf *rpnt, int lazy) __attribute__ ((__weak__, __alias__ ("foobar"))); @@ -79,7 +79,7 @@ int _dl_debug_file = 2; char *_dl_library_path = 0; char *_dl_ldsopath = 0; struct r_debug *_dl_debug_addr = NULL; -static char *_dl_malloc_addr, *_dl_mmap_zero; +static unsigned char *_dl_malloc_addr, *_dl_mmap_zero; #include "../ldso/_dl_progname.h" /* Pull in the name of ld.so */ #include "../ldso/hash.c" #define _dl_trace_loaded_objects 0 @@ -179,7 +179,7 @@ void *_dlopen(const char *libname, int flag) if(_dl_debug) _dl_dprintf(_dl_debug_file, "Trying to dlopen '%s'\n", (char*)libname); #endif - tpnt = _dl_load_shared_library(0, &rpnt, tfrom, (char*)libname); + tpnt = _dl_load_shared_library(0, &rpnt, tfrom, (char*)libname, 0); if (tpnt == NULL) { _dl_unmap_cache(); return NULL; @@ -226,7 +226,7 @@ void *_dlopen(const char *libname, int flag) lpntstr, tcurr->libname); #endif - if (!(tpnt1 = _dl_load_shared_library(0, &rpnt, tcurr, lpntstr))) { + if (!(tpnt1 = _dl_load_shared_library(0, &rpnt, tcurr, lpntstr, 0))) { goto oops; } diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index d09210acc..65c54ac42 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -32,9 +32,9 @@ static int __attribute__ ((unused)) foobar1 = (int) foobar; /* Use as pointer */ extern void _dl_dprintf(int, const char *, ...) __attribute__ ((__weak__, __alias__ ("foobar"))); extern char *_dl_find_hash(const char *, struct dyn_elf *, struct elf_resolve *, enum caller_type) __attribute__ ((__weak__, __alias__ ("foobar"))); -extern struct elf_resolve * _dl_load_shared_library(int, struct dyn_elf **, struct elf_resolve *, char *) +extern struct elf_resolve * _dl_load_shared_library(int, struct dyn_elf **, struct elf_resolve *, char *, int) __attribute__ ((__weak__, __alias__ ("foobar"))); -extern struct elf_resolve * _dl_check_if_named_library_is_loaded(const char *full_libname) +extern struct elf_resolve * _dl_check_if_named_library_is_loaded(const char *, int) __attribute__ ((__weak__, __alias__ ("foobar"))); extern int _dl_fixup(struct dyn_elf *rpnt, int lazy) __attribute__ ((__weak__, __alias__ ("foobar"))); @@ -79,7 +79,7 @@ int _dl_debug_file = 2; char *_dl_library_path = 0; char *_dl_ldsopath = 0; struct r_debug *_dl_debug_addr = NULL; -static char *_dl_malloc_addr, *_dl_mmap_zero; +static unsigned char *_dl_malloc_addr, *_dl_mmap_zero; #include "../ldso/_dl_progname.h" /* Pull in the name of ld.so */ #include "../ldso/hash.c" #define _dl_trace_loaded_objects 0 @@ -179,7 +179,7 @@ void *_dlopen(const char *libname, int flag) if(_dl_debug) _dl_dprintf(_dl_debug_file, "Trying to dlopen '%s'\n", (char*)libname); #endif - tpnt = _dl_load_shared_library(0, &rpnt, tfrom, (char*)libname); + tpnt = _dl_load_shared_library(0, &rpnt, tfrom, (char*)libname, 0); if (tpnt == NULL) { _dl_unmap_cache(); return NULL; @@ -226,7 +226,7 @@ void *_dlopen(const char *libname, int flag) lpntstr, tcurr->libname); #endif - if (!(tpnt1 = _dl_load_shared_library(0, &rpnt, tcurr, lpntstr))) { + if (!(tpnt1 = _dl_load_shared_library(0, &rpnt, tcurr, lpntstr, 0))) { goto oops; } |