/aosp_15_r20/system/unwinding/libunwindstack/tests/ |
H A D | ElfTest.cpp | 115 Elf elf(elf_memory_); in TEST_F() local 122 Elf elf(elf_memory_); in TEST_F() local 149 ElfFake elf(elf_memory_); in TEST_F() local 168 Elf elf(elf_memory_); in TEST_F() local 180 Elf elf(elf_memory_); in TEST_F() local 192 Elf elf(elf_memory_); in TEST_F() local 204 Elf elf(elf_memory_); in TEST_F() local 216 Elf elf(elf_memory_); in TEST_F() local 228 Elf elf(elf_memory_); in TEST_F() local 240 Elf elf(elf_memory_); in TEST_F() local [all …]
|
H A D | MapInfoGetElfTest.cpp | 76 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 87 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 106 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F() local 119 Elf* elf = info->GetElf(process_memory_, ARCH_X86); in TEST_F() local 131 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 146 Elf* elf = info->GetElf(process_memory_, ARCH_ARM64); in TEST_F() local 160 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 189 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 218 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local 251 Elf* elf = info->GetElf(process_memory_, ARCH_ARM); in TEST_F() local [all …]
|
H A D | ElfInterfaceTest.cpp | 183 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in SinglePtLoad() local 221 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in MultipleExecutablePtLoads() local 288 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr() local 357 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in NonExecutablePtLoads() local 414 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in ManyPhdrs() local 581 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in Soname() local 602 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in SonameAfterDtNull() local 623 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in SonameSize() local 646 std::unique_ptr<ElfInterface> elf(new ElfInterfaceType(memory_)); in SonameMissingMap() local 667 ElfType elf(memory_); in InitHeadersEhFrameTest() local [all …]
|
H A D | JitDebugTest.cpp | 41 ElfFake* elf = new ElfFake(fake_memory); in CreateFakeElf() local 257 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 263 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 270 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 279 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 288 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 299 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 309 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 353 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local 371 Elf* elf = jit_debug_->Find(maps_.get(), 0x1500); in TEST_F() local
|
/aosp_15_r20/external/kmod/libkmod/ |
H A D | libkmod-elf.c | 73 #define ELFDBG(elf, ...) \ argument 76 static inline void _elf_dbg(const struct kmod_elf *elf, const char *fname, unsigned line, const cha… in _elf_dbg() 89 #define ELFDBG(elf, ...) argument 130 static inline uint64_t elf_get_uint(const struct kmod_elf *elf, uint64_t offset, uint16_t size) in elf_get_uint() 159 static inline int elf_set_uint(struct kmod_elf *elf, uint64_t offset, uint64_t size, uint64_t value) in elf_set_uint() 200 static inline const void *elf_get_mem(const struct kmod_elf *elf, uint64_t offset) in elf_get_mem() 211 static inline const void *elf_get_section_header(const struct kmod_elf *elf, uint16_t idx) in elf_get_section_header() 224 static inline int elf_get_section_info(const struct kmod_elf *elf, uint16_t idx, uint64_t *offset, … in elf_get_section_info() 266 static const char *elf_get_strings_section(const struct kmod_elf *elf, uint64_t *size) in elf_get_strings_section() 274 struct kmod_elf *elf; in kmod_elf_new() local [all …]
|
/aosp_15_r20/external/stg/ |
H A D | elf_loader.cc | 42 namespace elf { namespace 146 GElf_Half GetMachine(Elf* elf) { in GetMachine() 169 Elf* elf, const std::function<bool(const GElf_Shdr&)>& predicate) { in GetSectionsIf() 183 std::vector<Elf_Scn*> GetSectionsByName(Elf* elf, const std::string& name) { in GetSectionsByName() 194 Elf_Scn* MaybeGetSectionByName(Elf* elf, const std::string& name) { in MaybeGetSectionByName() 204 Elf_Scn* GetSectionByName(Elf* elf, const std::string& name) { in GetSectionByName() 210 Elf_Scn* MaybeGetSectionByType(Elf* elf, Elf64_Word type) { in MaybeGetSectionByType() 220 Elf_Scn* GetSectionByIndex(Elf* elf, size_t index) { in GetSectionByIndex() 254 std::string_view GetString(Elf* elf, uint32_t section, size_t offset) { in GetString() 262 Elf_Scn* GetSymbolTableSection(Elf* elf, bool is_linux_kernel_binary) { in GetSymbolTableSection() [all …]
|
/aosp_15_r20/system/extras/simpleperf/ |
H A D | read_elf_test.cpp | 70 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() local 81 auto elf = ElfFile::Open(GetTestData(path), &status); in TEST() local 113 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &elf_file_build_id, &status); in TEST() local 125 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() local 146 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &build_id, &status); in TEST() local 155 auto elf = ElfFile::Open(GetTestData(path), &native_lib_build_id, &status); in TEST() local 166 auto elf = ElfFile::Open(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO), &status); in TEST() local 200 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() local 212 auto elf = ElfFile::Open(elf_path, &status); in TEST() local 229 auto elf = ElfFile::Open(GetTestData("libc.so"), &status); in TEST() local [all …]
|
H A D | read_elf.cpp | 216 static inline const typename ELFT::Ehdr& GetELFHeader(const llvm::object::ELFFile<ELFT>* elf) { in GetELFHeader() 222 const llvm::object::ELFFile<ELFT>* elf) { in GetELFProgramHeaders() 228 const llvm::object::ELFFile<ELFT>* elf, const typename ELFT::Shdr& section_header) { in GetELFSectionName() 297 void AddSymbolForPltSection(const llvm::object::ELFObjectFile<ELFT>* elf, in AddSymbolForPltSection() 328 void CheckSymbolSections(const llvm::object::ELFObjectFile<ELFT>* elf, bool* has_symtab, in CheckSymbolSections() 538 auto elf = Open(filename, &status); in Open() local 550 EmbeddedElf* elf = ApkInspector::FindElfInApkByName(std::get<1>(tuple), std::get<2>(tuple)); in Open() local 574 auto elf = CreateElfFileImpl(std::move(wrapper), status); in Open() local
|
H A D | dso.cpp | 101 auto elf = ElfFile::Open(path, &status); in CollectBuildIdInDir() local 124 auto elf = ElfFile::Open(path, &status); in CheckDebugFilePath() local 638 auto elf = ElfFile::Open(GetDebugFilePath(), &build_id, &status); in GetMinExecutableVaddr() local 703 auto elf = ElfFile::Open(GetDebugFilePath(), &build_id, &status); in LoadSymbolsImpl() local 788 auto elf = ElfFile::Open(GetDebugFilePath(), &status); in ReadSymbolsFromDebugFile() local 874 if (auto elf = ElfFile::Open(GetDebugFilePath(), &status); elf) { in ParseKernelStartAddr() local 935 auto elf = ElfFile::Open(GetDebugFilePath(), &build_id, &status); in LoadSymbolsImpl() local 1088 auto elf = ElfFile::Open(dso_path, &status); in GetBuildIdFromDsoPath() local
|
/aosp_15_r20/external/elfutils/src/ |
H A D | size.c | 276 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file() local 317 print_header (Elf *elf) in print_header() 340 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar() 387 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv() 462 show_sysv_one_line (Elf *elf) in show_sysv_one_line() 514 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd() 588 show_segments (Elf *elf, const char *fullname) in show_segments() 634 handle_elf (Elf *elf, const char *prefix, const char *fname) in handle_elf()
|
H A D | ar.c | 379 open_archive (const char *arfname, int flags, int mode, Elf **elf, in open_archive() 423 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() 467 Elf *elf; in do_oper_extract() local 840 Elf *elf; member 845 write_member (struct armem *memb, off_t *startp, off_t *lenp, Elf *elf, in write_member() 920 Elf *elf; in do_oper_delete() local 1100 Elf *elf = NULL; in do_oper_insert() local
|
H A D | strip.c | 371 secndx_name (Elf *elf, size_t ndx) in secndx_name() 384 get_xndxdata (Elf *elf, Elf_Scn *symscn) in get_xndxdata() 414 update_shdrstrndx (Elf *elf, size_t shdrstrndx) in update_shdrstrndx() 446 relocate (Elf *elf, GElf_Addr offset, const GElf_Sxword addend, in relocate() 567 remove_debug_relocations (Ebl *ebl, Elf *elf, GElf_Ehdr *ehdr, in remove_debug_relocations() 793 Elf *elf = elf_begin (fd, output_fname == NULL ? ELF_C_RDWR : ELF_C_READ, in process_file() local 842 handle_debug_relocs (Elf *elf, Ebl *ebl, Elf *new_elf, in handle_debug_relocs() 981 handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, in handle_elf() 2715 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, in handle_ar()
|
H A D | nm.c | 368 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file() local 409 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname, in handle_ar() 712 sym_name (Elf *elf, GElf_Word strndx, GElf_Word st_name, char buf[], size_t n) in sym_name() 879 class_type_char (Elf *elf, const GElf_Ehdr *ehdr, GElf_Sym *sym) in class_type_char() 928 show_symbols_bsd (Elf *elf, const GElf_Ehdr *ehdr, GElf_Word strndx, in show_symbols_bsd() 1060 show_symbols_posix (Elf *elf, const GElf_Ehdr *ehdr, GElf_Word strndx, in show_symbols_posix() 1528 handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, in handle_elf()
|
/aosp_15_r20/external/elfutils/tests/ |
H A D | newdata.c | 39 add_section_data (Elf *elf, char *buf, size_t len) in add_section_data() 75 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_WRITE_MMAP : ELF_C_WRITE, NULL); in create_elf() local 160 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_RDWR_MMAP : ELF_C_RDWR, NULL); in read_elf() local 171 check_section_size (Elf *elf, size_t size) in check_section_size() 199 check_section_data (Elf *elf, char *data, size_t len, size_t times) in check_section_data() 254 Elf *elf = create_elf (fd, class, use_mmap); in check_elf() local
|
H A D | sectiondump.c | 39 Elf *elf; in main() local 78 handle_section (Elf *elf, Elf_Scn *scn) in handle_section() 163 print_symtab (Elf *elf, Elf_Data *data) in print_symtab()
|
/aosp_15_r20/external/elfutils/libdw/ |
H A D | dwarf_getcfi_elf.c | 44 allocate_cfi (Elf *elf, const GElf_Ehdr *ehdr, GElf_Addr vaddr) in allocate_cfi() 128 getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr) in getcfi_gnu_eh_frame() 196 getcfi_phdr (Elf *elf, const GElf_Ehdr *ehdr) in getcfi_phdr() 217 getcfi_scn_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, in getcfi_scn_eh_frame() 273 getcfi_shdr (Elf *elf, const GElf_Ehdr *ehdr) in getcfi_shdr() 316 dwarf_getcfi_elf (Elf *elf) in dwarf_getcfi_elf()
|
/aosp_15_r20/external/google-breakpad/src/common/linux/ |
H A D | file_id_unittest.cc | 125 void GetElfContents(ELF& elf) { in GetElfContents() 162 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local 187 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local 214 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local 244 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local 272 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local 303 ELF elf(EM_386, TypeParam::kClass, kLittleEndian); in TYPED_TEST() local
|
/aosp_15_r20/external/elfutils/libdwfl/ |
H A D | core-file.c | 125 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) in dwfl_report_core_segments() 254 Elf *elf, GElf_Off start, int *pndx, in do_more() 288 Elf *elf = arg; in dwfl_elf_phdr_memory_callback() local 426 __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp) in __libdwfl_dynamic_vaddr_get() 448 dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable) in dwfl_core_file_report() 641 _compat_without_executable_dwfl_core_file_report (Dwfl *dwfl, Elf *elf) in _compat_without_executable_dwfl_core_file_report()
|
H A D | offline.c | 114 Elf *elf, int (*predicate) (const char *module, in process_file() 135 Elf *elf) in process_elf() 287 Elf *elf; in __libdwfl_report_offline() local 334 Elf *elf; in INTDEF() local
|
/aosp_15_r20/external/mesa3d/src/gallium/frontends/clover/llvm/codegen/ |
H A D | native.cpp | 49 namespace elf { namespace 61 get_symbol_table(Elf *elf) { in get_symbol_table() 79 get_symbol_offsets(Elf *elf, Elf_Scn *symtab) { in get_symbol_offsets() 100 const auto elf = elf::get(code); in get_symbol_offsets() local
|
/aosp_15_r20/external/libbpf/src/ |
H A D | elf.c | 29 Elf *elf; in elf_open() local 62 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() 84 Elf *elf; member 97 Elf *elf, const char *binary_path, in elf_sym_iter_new() 276 long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name) in elf_find_func_offset()
|
/aosp_15_r20/external/elfutils/libelf/ |
H A D | elf_getphdrnum.c | 42 __elf_getphdrnum_rdlock (Elf *elf, size_t *dst) in __elf_getphdrnum_rdlock() 92 __elf_getphdrnum_chk_rdlock (Elf *elf, size_t *dst) in __elf_getphdrnum_chk_rdlock() 133 elf_getphdrnum (Elf *elf, size_t *dst) in elf_getphdrnum()
|
/aosp_15_r20/external/elfutils/libebl/ |
H A D | eblopenbackend.c | 272 openbackend (Elf *elf, const char *emulation, GElf_Half machine) in openbackend() 359 ebl_openbackend (Elf *elf) in ebl_openbackend() 409 default_reloc_valid_use (Elf *elf __attribute__ ((unused)), in default_reloc_valid_use() 424 default_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), in default_gotpc_reloc_check() 664 default_bss_plt_p (Elf *elf __attribute__ ((unused))) in default_bss_plt_p()
|
/aosp_15_r20/external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
H A D | database.py | 54 def _elf_reader(elf) -> elf_reader.Elf: argument 108 def _database_from_elf(elf, domain: Pattern[str]) -> tokens.Database: argument 122 def tokenization_domains(elf) -> Iterator[str]: argument 133 def read_tokenizer_metadata(elf) -> dict[str, int]: argument
|
/aosp_15_r20/system/unwinding/libunwindstack/tools/ |
H A D | unwind_info.cpp | 44 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm() 88 void DumpDwarfSection(Elf* elf, DwarfSection* section, uint64_t) { in DumpDwarfSection() 110 Elf elf(elf_memory); in GetElfInfo() local
|