/third_party/musl/libc-test/src/functionalext/relro/ |
H A D | dlopen_ext_relro_test.c | 73 dl_extinfo extinfo = { in test_write_relro_file() local 77 void *handle = dlopen_ext(lib, RTLD_NOW, &extinfo); in test_write_relro_file() 91 dl_extinfo extinfo = { in test_write_relro_file_ext() local 97 void *handle = dlopen_ext(lib, RTLD_NOW, &extinfo); in test_write_relro_file_ext() 108 * @tc.desc : extinfo is NULL, call dlopen_ext, return handle is not NULL. 120 * @tc.desc : extinfo flag is 0, call dlopen_ext, return handle is not NULL. 125 dl_extinfo extinfo = { in dlopen_ext_relro_0200() local 129 void *handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_relro_0200() 136 * @tc.desc : extinfo flag is 20, call dlopen_ext, return handle is NULL. 141 dl_extinfo extinfo in dlopen_ext_relro_0300() local 166 dl_extinfo extinfo = { dlopen_ext_relro_0400() local 183 dl_extinfo extinfo = { dlopen_ext_relro_0500() local 209 dl_extinfo extinfo = { dlopen_ext_relro_0600() local 236 dl_extinfo extinfo = { dlopen_ext_relro_0700() local 263 dl_extinfo extinfo = { dlopen_ext_relro_0800() local 280 dl_extinfo extinfo = { dlopen_ext_relro_0900() local 307 dl_extinfo extinfo = { dlopen_ext_relro_1000() local 335 dl_extinfo extinfo = { dlopen_ext_relro_1100() local 362 dl_extinfo extinfo = { dlopen_ext_relro_1200() local 390 dl_extinfo extinfo = { dlopen_ext_relro_1500() local 424 dl_extinfo extinfo = { dlopen_ext_relro_1600() local 461 dl_extinfo extinfo = { dlopen_ext_relro_1700() local 498 dl_extinfo extinfo = {.flag = DL_EXT_RESERVED_ADDRESS | DL_EXT_RESERVED_ADDRESS_RECURSIVE, dlopen_ext_relro_1800() local 535 dl_extinfo extinfo = {.flag = DL_EXT_RESERVED_ADDRESS_HINT | DL_EXT_RESERVED_ADDRESS_RECURSIVE, dlopen_ext_relro_1900() local 570 dl_extinfo extinfo = { dlopen_ext_relro_2000() local 607 dl_extinfo extinfo = { dlopen_ext_relro_2100() local 646 dl_extinfo extinfo = { dlopen_ext_relro_2200() local 685 dl_extinfo extinfo = { dlopen_ext_relro_2300() local 723 dl_extinfo extinfo = { dlopen_ext_relro_2400() local [all...] |
/third_party/musl/libc-test/src/functionalext/ldso_randomization/ |
H A D | ldso_randomization_test.c | 166 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0100() local 167 void *handle = dlopen_ext(LIB_NAME_A, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0100() 181 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0200() local 182 void *handle = dlopen_ext(NULL, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0200() 213 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0300() local 214 void *handle = dlopen_ext("test_invaild.so", RTLD_NOW, &extinfo); in dlopen_ext_randomization_0300() 228 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0400() local 229 void *ori_handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0400() 237 handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0400() 257 dl_extinfo extinfo in dlopen_ext_randomization_0600() local 289 dl_extinfo extinfo = { dlopen_ext_randomization_0800() local 335 dl_extinfo extinfo = { dlopen_ext_randomization_0900() local [all...] |
H A D | ldso_randomization_manual.c | 122 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0500() local 127 handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0500() 149 dl_extinfo extinfo = {0}; in dlopen_ext_randomization_0700() local 157 void *child_handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0700() 165 parent_handle = dlopen_ext(LIB_NAME, RTLD_NOW, &extinfo); in dlopen_ext_randomization_0700()
|
/third_party/musl/libc-test/src/functionalext/dlns/ |
H A D | dlns_dlopen_ext.c | 27 * @tc.desc : extinfo flag is 0, call dlopen_ext, return handle is not NULL. 32 dl_extinfo extinfo = { in dlopen_0100() local 40 void *handle = dlopen_ns_ext(&dlns, dllNamePath, RTLD_LAZY, &extinfo); in dlopen_0100()
|
/third_party/musl/porting/linux/user/include/ |
H A D | dlfcn_ext.h | 47 * If extinfo is NULL, it is equivalent to dlopen. 48 * If DL_EXT_WRITE_RELRO is set in extinfo, the GNU RELRO section will be written to relro_fd and allowed to 50 * IF DL_EXT_USE_RELRO is set in extinfo, the GNU RELRO section written in relro_fd will be reused. 53 * @param extinfo Indicates the dl_extinfo struct. 56 void *dlopen_ext(const char *file, int mode, const dl_extinfo *extinfo);
|
/third_party/musl/include/linux/ |
H A D | dlfcn_ext.h | 47 * If extinfo is NULL, it is equivalent to dlopen. 48 * If DL_EXT_WRITE_RELRO is set in extinfo, the GNU RELRO section will be written to relro_fd and allowed to 50 * IF DL_EXT_USE_RELRO is set in extinfo, the GNU RELRO section written in relro_fd will be reused. 53 * @param extinfo Indicates the dl_extinfo struct. 56 void *dlopen_ext(const char *file, int mode, const dl_extinfo *extinfo);
|
/third_party/musl/porting/linux/user/ldso/ |
H A D | dynlink.c | 203 static void handle_relro_sharing(struct dso *p, const dl_extinfo *extinfo, ssize_t *relro_fd_offset); 2473 static void reloc_all(struct dso *p, const dl_extinfo *extinfo) in reloc_all() argument 2503 handle_relro_sharing(p, extinfo, &relro_fd_offset); in reloc_all() 3309 const char *file, int mode, const char *namespace, const void *caller_addr, const dl_extinfo *extinfo) in dlopen_impl() 3334 if (extinfo) { in dlopen_impl() 3335 reserved_address_recursive = extinfo->flag & DL_EXT_RESERVED_ADDRESS_RECURSIVE; in dlopen_impl() 3336 if (extinfo->flag & DL_EXT_RESERVED_ADDRESS) { in dlopen_impl() 3338 reserved_params.start_addr = extinfo->reserved_addr; in dlopen_impl() 3339 reserved_params.reserved_size = extinfo->reserved_size; in dlopen_impl() 3342 } else if (extinfo in dlopen_impl() 3308 dlopen_impl( const char *file, int mode, const char *namespace, const void *caller_addr, const dl_extinfo *extinfo) dlopen_impl() argument 3650 dlopen_ns_ext(Dl_namespace *dlns, const char *file, int mode, const dl_extinfo *extinfo) dlopen_ns_ext() argument 4499 dlopen_ext(const char *file, int mode, const dl_extinfo *extinfo) dlopen_ext() argument 5725 handle_relro_sharing(struct dso *p, const dl_extinfo *extinfo, ssize_t *relro_fd_offset) handle_relro_sharing() argument [all...] |
/third_party/musl/ldso/linux/ |
H A D | dynlink.c | 237 static void handle_relro_sharing(struct dso *p, const dl_extinfo *extinfo, ssize_t *relro_fd_offset); 2702 static void reloc_all(struct dso *p, const dl_extinfo *extinfo) in reloc_all() argument 2732 handle_relro_sharing(p, extinfo, &relro_fd_offset); in reloc_all() 3553 const char *file, int mode, const char *namespace, const void *caller_addr, const dl_extinfo *extinfo) in dlopen_impl() 3599 if (extinfo) { in dlopen_impl() 3600 reserved_address_recursive = extinfo->flag & DL_EXT_RESERVED_ADDRESS_RECURSIVE; in dlopen_impl() 3601 if (extinfo->flag & DL_EXT_RESERVED_ADDRESS) { in dlopen_impl() 3603 reserved_params.start_addr = extinfo->reserved_addr; in dlopen_impl() 3604 reserved_params.reserved_size = extinfo->reserved_size; in dlopen_impl() 3607 } else if (extinfo in dlopen_impl() 3552 dlopen_impl( const char *file, int mode, const char *namespace, const void *caller_addr, const dl_extinfo *extinfo) dlopen_impl() argument 3967 dlopen_ns_ext(Dl_namespace *dlns, const char *file, int mode, const dl_extinfo *extinfo) dlopen_ns_ext() argument 4849 dlopen_ext(const char *file, int mode, const dl_extinfo *extinfo) dlopen_ext() argument 6116 handle_relro_sharing(struct dso *p, const dl_extinfo *extinfo, ssize_t *relro_fd_offset) handle_relro_sharing() argument [all...] |