Lines Matching refs:ta_elf
53 static void assign_tls_mod_id(struct ta_elf *elf) in assign_tls_mod_id()
62 static struct ta_elf *queue_elf_helper(const TEE_UUID *uuid) in queue_elf_helper()
64 struct ta_elf *elf = calloc(1, sizeof(*elf)); in queue_elf_helper()
76 static struct ta_elf *queue_elf(const TEE_UUID *uuid) in queue_elf()
78 struct ta_elf *elf = ta_elf_find_elf(uuid); in queue_elf()
90 struct ta_elf *ta_elf_find_elf(const TEE_UUID *uuid) in ta_elf_find_elf()
92 struct ta_elf *elf = NULL; in ta_elf_find_elf()
101 static TEE_Result e32_parse_ehdr(struct ta_elf *elf, Elf32_Ehdr *ehdr) in e32_parse_ehdr()
129 static TEE_Result e64_parse_ehdr(struct ta_elf *elf, Elf64_Ehdr *ehdr) in e64_parse_ehdr()
153 static TEE_Result e64_parse_ehdr(struct ta_elf *elf __unused, in e64_parse_ehdr()
160 static void check_phdr_in_range(struct ta_elf *elf, unsigned int type, in check_phdr_in_range()
178 static void read_dyn(struct ta_elf *elf, vaddr_t addr, in read_dyn()
194 static void save_hashtab_from_segment(struct ta_elf *elf, unsigned int type, in save_hashtab_from_segment()
225 static void check_range(struct ta_elf *elf, const char *name, const void *ptr, in check_range()
241 static void check_hashtab(struct ta_elf *elf, void *ptr, size_t num_buckets, in check_hashtab()
265 static void save_hashtab(struct ta_elf *elf) in save_hashtab()
291 static void save_soname_from_segment(struct ta_elf *elf, unsigned int type, in save_soname_from_segment()
328 static void save_soname(struct ta_elf *elf) in save_soname()
349 static void e32_save_symtab(struct ta_elf *elf, size_t tab_idx) in e32_save_symtab()
373 static void e64_save_symtab(struct ta_elf *elf, size_t tab_idx) in e64_save_symtab()
401 static void save_symtab(struct ta_elf *elf) in save_symtab()
430 static void init_elf(struct ta_elf *elf) in init_elf()
486 static void add_segment(struct ta_elf *elf, size_t offset, size_t vaddr, in add_segment()
507 static void parse_load_segments(struct ta_elf *elf) in parse_load_segments()
548 static void copy_remapped_to(struct ta_elf *elf, const struct segment *seg) in copy_remapped_to()
573 static void adjust_segments(struct ta_elf *elf) in adjust_segments()
669 static void populate_segments_legacy(struct ta_elf *elf) in populate_segments_legacy()
733 static void populate_segments(struct ta_elf *elf) in populate_segments()
865 static void ta_elf_add_bti(struct ta_elf *elf) in ta_elf_add_bti()
882 static void parse_property_segment(struct ta_elf *elf) in parse_property_segment()
945 static void map_segments(struct ta_elf *elf) in map_segments()
982 static void add_deps_from_segment(struct ta_elf *elf, unsigned int type, in add_deps_from_segment()
1028 static void add_dependencies(struct ta_elf *elf) in add_dependencies()
1047 static void copy_section_headers(struct ta_elf *elf) in copy_section_headers()
1081 static void close_handle(struct ta_elf *elf) in close_handle()
1090 static void clean_elf_load_main(struct ta_elf *elf) in clean_elf_load_main()
1134 static void set_tls_offset(struct ta_elf *elf) in set_tls_offset()
1146 static void set_tls_offset(struct ta_elf *elf __unused) {} in set_tls_offset()
1149 static void load_main(struct ta_elf *elf) in load_main()
1206 struct ta_elf *elf = queue_elf(uuid); in ta_elf_load_main()
1232 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in ta_elf_finalize_load_main()
1251 void ta_elf_load_dependency(struct ta_elf *elf, bool is_32bit) in ta_elf_load_dependency()
1274 void ta_elf_finalize_mappings(struct ta_elf *elf) in ta_elf_finalize_mappings()
1350 struct ta_elf **elf, struct segment **seg, in get_next_in_order()
1353 struct ta_elf *e = NULL; in get_next_in_order()
1357 struct ta_elf *e2 = NULL; in get_next_in_order()
1401 struct ta_elf *elf = NULL; in ta_elf_print_mappings()
1496 struct ta_elf *elf = NULL; in find_exidx()
1537 struct ta_elf *ta = TAILQ_FIRST(&main_elf_queue); in ta_elf_add_library()
1538 struct ta_elf *lib = ta_elf_find_elf(uuid); in ta_elf_add_library()
1539 struct ta_elf *elf = NULL; in ta_elf_add_library()
1568 static void get_init_fini_array(struct ta_elf *elf, unsigned int type, in get_init_fini_array()
1609 static void elf_get_init_fini_array(struct ta_elf *elf, vaddr_t *init, in elf_get_init_fini_array()
1726 static void fill_ifs(vaddr_t va, size_t idx, struct ta_elf *elf, bool is_32bit) in fill_ifs()
1782 struct ta_elf *elf = NULL; in ta_elf_set_init_fini_info_compat()
1862 static void fill_elf_phdr_info(vaddr_t va, size_t idx, struct ta_elf *elf, in fill_elf_phdr_info()
1908 struct ta_elf *elf = NULL; in ta_elf_set_elf_phdr_info()