summaryrefslogtreecommitdiff
path: root/ldso/libdl/libdl.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-16 13:23:21 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-16 13:23:21 +0000
commit25d1e1b4133b871195e0bb1dd4062190cf189a8a (patch)
treebd99fe4565ad2807b2dde76efa152df480887063 /ldso/libdl/libdl.c
parentc3d50a69839f8d80fc7244fde6e4a57e5e39dd36 (diff)
Revert this stuff for now
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r--ldso/libdl/libdl.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 78b92e360..ca39473f1 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -54,9 +54,6 @@ extern struct elf_resolve *_dl_loaded_modules __attribute__ ((__weak__));
extern struct r_debug *_dl_debug_addr __attribute__ ((__weak__));
extern unsigned long _dl_error_number __attribute__ ((__weak__));
extern void *(*_dl_malloc_function)(size_t) __attribute__ ((__weak__));
-extern void (*_dl_free_function) (void *p) __attribute__ ((__weak__));
-extern void *(*malloc)(size_t size) __attribute__ ((__weak__));
-extern void (*free)(void *ptr) __attribute__ ((__weak__));
#ifdef USE_CACHE
int _dl_map_cache(void) __attribute__ ((__weak__));
int _dl_unmap_cache(void) __attribute__ ((__weak__));
@@ -98,16 +95,12 @@ struct r_debug *_dl_debug_addr = NULL;
static unsigned char *_dl_malloc_addr, *_dl_mmap_zero;
void *(*_dl_malloc_function) (size_t size);
int _dl_errno = 0;
-void (*_dl_free_function) (void *p);
int _dl_fixup(struct dyn_elf *rpnt, int lazy);
#include "../ldso/dl-progname.h" /* Pull in the name of ld.so */
#include "../ldso/dl-hash.c"
#define _dl_trace_loaded_objects 0
#include "../ldso/dl-elf.c"
#endif
-void *(*malloc)(size_t size) __attribute__ ((__weak__));
-void (*free)(void *ptr) __attribute__ ((__weak__));
-extern int atexit(void (*function)(void));
static int do_dlclose(void *, int need_fini);
@@ -171,7 +164,6 @@ void *_dlopen(const char *libname, int flag)
if (!dl_init) {
dl_init++;
_dl_malloc_function = malloc;
- _dl_free_function = free;
}
/* Cover the trivial case first */