Lines Matching refs:path
67 def get_elf_soname(path: Path) -> str:
68 if path in g_path_to_soname_cache: return g_path_to_soname_cache[path]
69 out = do_readelf_query(['-d', str(path)])
76 result = os.path.basename(path)
77 g_path_to_soname_cache[path] = result
81 def get_elf_needed(path: Path) -> List[str]:
83 out = do_readelf_query(['-d', str(path)])
105 def get_dyn_symbols(path: Path) -> DynSymbols:
115 out = do_readelf_query(['--dyn-syms', str(path)])
152 def scan_relocations(path: Path, syms: DynSymbols) -> Relocations:
154 out = do_readelf_query(['-r', str(path)])
195 def load_elf_tree(search_path: List[Path], path: Path) -> LoadedLibrary:
211 def load(path: Path) -> LoadedLibrary:
215 lib.soname = get_elf_soname(path)
219 lib.syms = get_dyn_symbols(path)
220 lib.rels = scan_relocations(path, lib.syms)
222 for needed in get_elf_needed(path):
229 return load(path)