Lines Matching refs:libsym
74 os_library_symbol_init(struct library_symbol *libsym)
80 os_library_symbol_destroy(struct library_symbol *libsym)
86 struct library_symbol *libsym)
94 arch_library_symbol_init(struct library_symbol *libsym)
100 arch_library_symbol_destroy(struct library_symbol *libsym)
106 struct library_symbol *libsym)
148 private_library_symbol_init(struct library_symbol *libsym,
154 libsym->next = NULL;
155 libsym->lib = NULL;
156 libsym->plt_type = type_of_plt;
157 libsym->name = name;
158 libsym->own_name = own_name;
159 libsym->latent = latent;
160 libsym->delayed = delayed;
161 libsym->enter_addr = (void *)(uintptr_t)addr;
162 libsym->proto = NULL;
166 private_library_symbol_destroy(struct library_symbol *libsym)
168 library_symbol_set_name(libsym, NULL, 0);
172 library_symbol_init(struct library_symbol *libsym,
176 private_library_symbol_init(libsym, addr, name, own_name,
179 if (os_library_symbol_init(libsym) < 0)
180 /* We've already set libsym->name and own_name. But
186 if (arch_library_symbol_init(libsym) < 0) {
187 os_library_symbol_destroy(libsym);
195 library_symbol_destroy(struct library_symbol *libsym)
197 if (libsym != NULL) {
198 arch_library_symbol_destroy(libsym);
199 os_library_symbol_destroy(libsym);
200 private_library_symbol_destroy(libsym);
205 library_symbol_clone(struct library_symbol *retp, struct library_symbol *libsym)
210 if (strdup_if(&name, libsym->name, libsym->own_name) < 0)
213 private_library_symbol_init(retp, libsym->enter_addr,
214 name, libsym->own_name, libsym->plt_type,
215 libsym->latent, libsym->delayed);
217 if (os_library_symbol_clone(retp, libsym) < 0) {
223 if (arch_library_symbol_clone(retp, libsym) < 0) {
249 library_symbol_set_name(struct library_symbol *libsym,
252 if (libsym->own_name)
253 free((char *)libsym->name);
254 libsym->name = name;
255 libsym->own_name = own_name;
259 library_symbol_equal_cb(struct library_symbol *libsym, void *u)
262 return library_symbol_cmp(libsym, standard) == 0 ? CBS_STOP : CBS_CONT;
266 library_symbol_named_cb(struct library_symbol *libsym, void *name)
268 return strcmp(libsym->name, name) == 0 ? CBS_STOP : CBS_CONT;
272 library_symbol_delayed_cb(struct library_symbol *libsym, void *unused)
274 return libsym->delayed ? CBS_STOP : CBS_CONT;