Lines Matching refs:elf
889 elf = ELF()
890 elf._parse_from_file(path)
891 return elf
897 elf = ELF()
898 elf._parse_from_buf(buf)
899 return elf
905 elf = ELF()
906 elf._parse_from_dump_file(path)
907 return elf
913 elf = ELF()
914 elf._parse_from_dump_buf(buf)
915 return elf
1651 for path, elf in scan_elf_files(tmp_dir, mount_point, unzip_files):
1652 yield path, elf
1678 for path, elf in scan_ext4_image(img_file_path, mount_point,
1680 yield path, elf
1682 for path, elf in scan_elf_files(apex_dir, mount_point, unzip_files):
1683 yield path, elf
1690 for path, elf in scan_apex_dir(apex_collection_root, tmp_dir,
1692 yield path, elf
1698 for path, elf in scan_apex_dir(apex_collection_root, ent.path,
1700 yield path, elf
1702 for path, elf in scan_apex_file(apex_collection_root, ent.path,
1704 yield path, elf
1721 for path, elf in scan_apex_files(os.path.join(root, 'apex'),
1723 yield (path, elf)
2036 def __init__(self, partition, path, elf, tag_bit): argument
2039 self.elf = elf
2228 self.get_lib_dict(lib.elf.ei_class)[path] = lib
2232 del self.get_lib_dict(lib.elf.ei_class)[lib.path]
2294 def add_lib(self, partition, path, elf): argument
2295 lib = ELFLinkData(partition, path, elf,
2388 for path, elf in scan_elf_files(root, unzip_files=unzip_files):
2390 if elf.e_machine not in ELF.ELF_MACHINES:
2400 self.add_lib(alter_partition, short_path, elf)
2402 self.add_lib(partition, short_path, elf)
2422 if symbol in lib.elf.exported_symbols:
2429 for symbol in lib.elf.imported_symbols:
2443 for dt_needed in lib.elf.dt_needed:
2444 dep = resolver.resolve(lib.path, dt_needed, lib.elf.dt_rpath,
2445 lib.elf.dt_runpath)
2448 lib.path, dt_needed, lib.elf.dt_rpath, lib.elf.dt_runpath))
3122 def add(self, path, elf): argument
3123 self.refs[path] = elf
3149 for path, elf in scan_elf_files(root):
3150 self.add(os.path.join(prefix, path[root_len:]), elf)
3164 exported_symbols = lib.elf.exported_symbols
3192 if not lib.elf.is_jni_lib():
3392 for path, elf in scan_elf_files(root):
3398 elf.dump(f)
3680 lib.path, collect_tags(lib), lib.elf.file_size,
3681 lib.elf.ro_seg_file_size, lib.elf.ro_seg_mem_size,
3682 lib.elf.rw_seg_file_size, lib.elf.rw_seg_mem_size))
3693 total_file_size += lib.elf.file_size
3694 total_ro_seg_file_size += lib.elf.ro_seg_file_size
3695 total_ro_seg_mem_size += lib.elf.ro_seg_mem_size
3696 total_rw_seg_file_size += lib.elf.rw_seg_file_size
3697 total_rw_seg_mem_size += lib.elf.rw_seg_mem_size
3708 lib_set = [lib for lib in lib_set if lib.elf.is_32bit]
3715 lib_set = [lib for lib in lib_set if not lib.elf.is_32bit]
3825 32 if lib.elf.is_32bit else 64,
4243 dt_needed = lib.elf.dt_needed
4256 .format(lib.path, lib.elf.dt_needed), file=sys.stderr)