Lines Matching defs:lib
57 arch_elf_init(struct ltelf *lte, struct library *lib)
794 struct library_symbol **libsymp, struct library *lib)
799 if (filter_matches_symbol(filter, (*ptr)->name, lib)) {
812 struct ltelf *lte, struct library *lib)
837 name, lib);
849 filter_symbol_chain(options.plt_filter, &libsym, lib);
856 library_add_symbol(lib, libsym);
902 struct ltelf *lte, struct library *lib,
979 if (!filter_matches_symbol(options.static_filter, name, lib))
995 name, lib->soname, strerror(errno));
1002 name, lib->soname, strerror(errno));
1033 "for tracing.\n", name, lib->soname);
1087 = library_each_symbol(lib, NULL, symbol_with_address,
1098 library_add_symbol(lib, symbols[i].libsym);
1106 struct ltelf *lte, struct library *lib,
1111 && (status = populate_this_symtab(proc, filename, lte, lib,
1120 debug(DEBUG_FUNCTION, "-l matches %s", lib->soname);
1121 names = &lib->exported_names;
1124 return populate_this_symtab(proc, filename, lte, lib,
1130 read_module(struct library *lib, struct process *proc,
1191 if (arch_elf_init(<e, lib) < 0) {
1196 if (lib == NULL)
1201 * when LIB is released, which should happen in the caller
1204 if (lib->pathname == NULL) {
1208 library_set_pathname(lib, pathname, 1);
1215 library_set_soname(lib, soname, 1);
1217 const char *soname = rindex(lib->pathname, '/');
1221 soname = lib->pathname;
1222 library_set_soname(lib, soname, 0);
1233 lib->base = (arch_addr_t)(uintptr_t)lte.base_addr;
1234 lib->entry = entry;
1237 lib->dyn_addr = (arch_addr_t)(uintptr_t)lte.dyn_addr;
1250 int plts = filter_matches_library(options.plt_filter, lib);
1252 && populate_plt(proc, filename, <e, lib) < 0)
1255 int exports = filter_matches_library(options.export_filter, lib);
1256 int symtabs = filter_matches_library(options.static_filter, lib);
1258 && populate_symtab(proc, filename, <e, lib,
1268 ltelf_read_library(struct library *lib, struct process *proc,
1271 return read_module(lib, proc, filename, bias, 0);
1278 struct library *lib = malloc(sizeof(*lib));
1279 if (lib == NULL || library_init(lib, LT_LIBTYPE_MAIN) < 0) {
1280 free(lib);
1283 library_set_pathname(lib, path, 0);
1293 || read_module(lib, proc, fname, 0, 1) < 0) {
1294 library_destroy(lib);
1295 free(lib);
1296 lib = NULL;
1300 return lib;