Home
last modified time | relevance | path

Searched refs:elf (Results 1 – 16 of 16) sorted by relevance

/build/tools/soslim/
Dcommon.c5 void map_over_sections(Elf *elf, in map_over_sections() argument
10 while ((section = elf_nextscn(elf, section)) != NULL) { in map_over_sections()
11 if (match(elf, section, user_data)) in map_over_sections()
16 void map_over_segments(Elf *elf, in map_over_segments() argument
24 ehdr = elf32_getehdr(elf); in map_over_segments()
25 phdr = elf32_getphdr(elf); in map_over_segments()
31 if (match(elf, phdr++, user_data)) in map_over_segments()
Dmain.c36 static void print_dynamic_symbols(Elf *elf, const char *symtab_name);
41 Elf *elf = NULL, *newelf = NULL; in main() local
90 elf = elf_begin(elf_fd, ELF_C_READ, NULL); in main()
91 FAILIF_LIBELF(elf == NULL, elf_begin); in main()
95 FAILIF(elf_kind(elf) != ELF_K_ELF, in main()
104 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), gelf_getehdr); in main()
113 print_dynamic_symbols(elf, infile); in main()
115 FAILIF_LIBELF(elf_end(elf), elf_end); in main()
122 Elf *elf = NULL; in main() local
132 elf = elf_begin(elf_fd, in main()
[all …]
Dsymfilter.c18 static int match_hash_table_section(Elf *elf, Elf_Scn *sect, void *data);
19 static int match_dynsym_section(Elf *elf, Elf_Scn *sect, void *data);
21 void build_symfilter(const char *name, Elf *elf, symfilter_t *filter, in build_symfilter() argument
65 map_over_sections(elf, match_dynsym_section, filter); in build_symfilter()
69 map_over_sections(elf, match_hash_table_section, filter); in build_symfilter()
79 ehdr = gelf_getehdr(elf, &ehdr_mem); in build_symfilter()
80 size_t symsize = gelf_fsize (elf, ELF_T_SYM, 1, ehdr->e_version); in build_symfilter()
116 size_t elsize = gelf_fsize(elf, ELF_T_SYM, 1, in build_symfilter()
128 symname = elf_strptr(elf, in build_symfilter()
140 symbol->index = hash_lookup(elf, in build_symfilter()
[all …]
Dsoslim.c22 void clone_elf(Elf *elf, Elf *newelf, in clone_elf() argument
58 ehdr = gelf_getehdr (elf, &ehdr_mem); in clone_elf()
62 FAILIF(gelf_newehdr (newelf, gelf_getclass (elf)) == 0 || in clone_elf()
84 FAILIF_LIBELF(NULL == gelf_getphdr(elf, cnt, phdr_info + cnt), in clone_elf()
94 FAILIF_LIBELF(elf_getshstrndx(elf, &shstrndx) < 0, elf_getshstrndx); in clone_elf()
97 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); in clone_elf()
119 while ((scn = elf_nextscn (elf, scn)) != NULL) { in clone_elf()
126 shdr_info[cnt].name = elf_strptr (elf, shstrndx, in clone_elf()
185 Ebl *ebl = ebl_openbackend (elf); in clone_elf()
187 FAILIF_LIBELF(0 != arm_init(elf, ehdr->e_machine, ebl, sizeof(Ebl)), in clone_elf()
[all …]
Dsoslim.h17 void clone_elf(Elf *elf, Elf *newelf,
Dsymfilter.h47 void build_symfilter(const char *name, Elf *elf, symfilter_t *filter, off_t);
/build/tools/isprelinked/
Disprelinked.c51 Elf *elf; in main() local
65 elf = elf_begin(fd, ELF_C_READ_MMAP_PRIVATE, NULL); in main()
66 FAILIF_LIBELF(elf == NULL, elf_begin); in main()
68 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), in main()
83 FAILIF_LIBELF(elf_end(elf), elf_end); in main()
/build/tools/lsd/
Dlsd.c39 Elf *elf; member
142 source->elf = elf_begin(source->elf_fd, ELF_C_READ, NULL); in init_source()
143 FAILIF_LIBELF(source->elf == NULL, elf_begin); in init_source()
146 if (elf_kind(source->elf) != ELF_K_ELF) { in init_source()
155 FAILIF_LIBELF(0 == gelf_getehdr(source->elf, &source->elf_hdr), gelf_getehdr); in init_source()
165 FAILIF_LIBELF(elf_getshstrndx (source->elf, &source->shstrndx) < 0, in init_source()
168 FAILIF_LIBELF(elf_getshnum (source->elf, &source->shnum) < 0, elf_getshnum); in init_source()
176 scn = elf_getscn(source->elf, scnidx); in init_source()
180 INFO("\tfound section [%s]...\n", elf_strptr(source->elf, source->shstrndx, shdr->sh_name)); in init_source()
189 source->strtab.scn = elf_getscn(source->elf, in init_source()
[all …]
Dhash.h8 int hash_lookup(Elf *elf,
Dhash.c7 int hash_lookup(Elf *elf, in hash_lookup() argument
/build/tools/apriori/
Dapriori.c72 static void print_shdr_idx(source_t *source, Elf *elf, int idx) in print_shdr_idx() argument
74 print_shdr(source, elf_getscn(elf, idx)); in print_shdr_idx()
80 while ((scn = elf_nextscn (source->elf, scn)) != NULL) in print_shdrs()
92 scn = elf_getscn(source->elf, i); in print_shdrs()
149 static void create_elf_sections(source_t *source, Elf *elf) in create_elf_sections() argument
152 ASSERT(elf == NULL || source->elf == NULL || source->elf == elf); in create_elf_sections()
153 if (elf == NULL) { in create_elf_sections()
154 ASSERT(source->elf != NULL); in create_elf_sections()
155 elf = source->elf; in create_elf_sections()
163 scn = elf_newscn(elf); in create_elf_sections()
[all …]
Dhash.h8 int hash_lookup(Elf *elf,
Dhash.c7 int hash_lookup(Elf *elf, in hash_lookup() argument
Dsource.h51 Elf *elf; member
Dmain.c32 static void print_dynamic_symbols(Elf *elf, const char *symtab_name);
/build/core/
Draw_executable.mk7 $(LOCAL_BUILT_MODULE) : PRIVATE_ELF_FILE := $(intermediates)/$(PRIVATE_MODULE).elf