diff options
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r-- | ldso/libdl/libdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 4ecd1c55e..2c8dfbb79 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -260,6 +260,7 @@ remove_slotinfo(size_t idx, struct dtv_slotinfo_list *listp, size_t disp, } #endif +#ifndef __LDSO_NO_CLEANUP__ void dl_cleanup(void) __attribute__ ((destructor)); void dl_cleanup(void) { @@ -270,6 +271,7 @@ void dl_cleanup(void) do_dlclose(h, 1); } } +#endif static ptrdiff_t _dl_build_local_scope (struct elf_resolve **list, struct elf_resolve *map) |