diff options
author | Timo Teräs <timo.teras at iki.fi> | 2011-11-07 18:08:33 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-11-07 18:10:32 +0100 |
commit | 0c7690f6a5d6e073052ee6487f768289db3a58f7 (patch) | |
tree | 1028f6a895d2a3babe934d92585e43a99c009fde /ldso/include | |
parent | 515d54433138596e81267237542bd9168b8cc787 (diff) |
ldso: support RTLD_NOLOAD
So application query if specified module is loaded or not with
dlopen.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso/include')
-rw-r--r-- | ldso/include/dl-elf.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ldso/include/dl-elf.h b/ldso/include/dl-elf.h index 495bd2bca..29d1a007f 100644 --- a/ldso/include/dl-elf.h +++ b/ldso/include/dl-elf.h @@ -26,16 +26,18 @@ static __inline__ void _dl_map_cache(void) { } static __inline__ void _dl_unmap_cache(void) { } #endif +#define DL_RESOLVE_SECURE 0x0001 +#define DL_RESOLVE_NOLOAD 0x0002 /* Function prototypes for non-static stuff in readelflib1.c */ extern void _dl_parse_lazy_relocation_information(struct dyn_elf *rpnt, unsigned long rel_addr, unsigned long rel_size); extern int _dl_parse_relocation_information(struct dyn_elf *rpnt, struct r_scope_elem *scope, unsigned long rel_addr, unsigned long rel_size); -extern struct elf_resolve * _dl_load_shared_library(int secure, +extern struct elf_resolve * _dl_load_shared_library(unsigned rflags, struct dyn_elf **rpnt, struct elf_resolve *tpnt, char *full_libname, int trace_loaded_objects); -extern struct elf_resolve * _dl_load_elf_shared_library(int secure, +extern struct elf_resolve * _dl_load_elf_shared_library(unsigned rflags, struct dyn_elf **rpnt, const char *libname); extern struct elf_resolve *_dl_check_if_named_library_is_loaded(const char *full_libname, int trace_loaded_objects); |