/optee_os-3.20.0/ldelf/ |
A D | ta_elf.c | 64 struct ta_elf *elf = calloc(1, sizeof(*elf)); in queue_elf_helper() local 66 if (!elf) in queue_elf_helper() 80 if (elf) in queue_elf() 330 check_hashtab(elf, elf->hashtab, 0, 0); in save_hashtab() 335 check_gnu_hashtab(elf, elf->gnu_hashtab); in save_hashtab() 520 elf->phdr = (void *)(va + elf->e_phoff); in init_elf() 945 va = elf->load_addr + elf->prop_start; in parse_property_segment() 1115 memcpy(elf->shdr, (void *)(elf->load_addr + elf->e_shoff), in copy_section_headers() 1595 for (elf = lib; elf; elf = TAILQ_NEXT(elf, link)) in ta_elf_add_library() 1598 for (elf = lib; elf; elf = TAILQ_NEXT(elf, link)) { in ta_elf_add_library() [all …]
|
A D | ta_elf_rel.c | 75 if (st_value > (elf->max_addr - elf->load_addr)) in sym_compare() 226 if (elf) { in ta_elf_resolve_sym() 366 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 386 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 400 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 412 if (rel->r_offset >= (elf->max_addr - elf->load_addr)) in e32_relocate() 539 mod = elf; in e64_process_tls_tprel_rela() 606 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() 626 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() 640 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() [all …]
|
A D | main.c | 33 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in dump_ta_state() local 35 assert(elf && elf->is_main); in dump_ta_state() 36 EMSG_RAW("Status of TA %pUl", (void *)&elf->uuid); in dump_ta_state() 132 struct ta_elf *elf = NULL; in ldelf() local 151 TAILQ_FOREACH(elf, &main_elf_queue, link) in ldelf() 152 ta_elf_load_dependency(elf, arg->is_32bit); in ldelf() 154 TAILQ_FOREACH(elf, &main_elf_queue, link) { in ldelf() 155 ta_elf_relocate(elf); in ldelf() 156 ta_elf_finalize_mappings(elf); in ldelf() 167 TAILQ_FOREACH(elf, &main_elf_queue, link) in ldelf() [all …]
|
A D | ftrace.c | 23 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in ftrace_init() local 35 assert(elf && elf->is_main); in ftrace_init() 50 (void *)&elf->uuid, elf->load_addr); in ftrace_init() 72 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in ftrace_copy_buf() local 76 assert(elf && elf->is_main); in ftrace_copy_buf()
|
A D | dl.c | 26 struct ta_elf *elf = NULL; in dlsym_entry() local 30 elf = ta_elf_find_elf(&arg->dlsym.uuid); in dlsym_entry() 31 if (!elf) in dlsym_entry() 36 elf); in dlsym_entry()
|
A D | link.mk | 7 ldelf: $(link-out-dir$(sm))/ldelf.elf 12 cleanfiles += $(link-out-dir$(sm))/ldelf.elf 30 ldargs-ldelf.elf := $(link-ldflags) $(objs) $(link-ldadd) $(libgcc$(sm)) 50 $(link-out-dir$(sm))/ldelf.elf: $(objs) $(libdeps) $(link-script-pp$(sm)) 52 $(q)$(LD$(sm)) $(ldargs-ldelf.elf) -o $$@ 54 $(link-out-dir$(sm))/ldelf.dmp: $(link-out-dir$(sm))/ldelf.elf
|
A D | ta_elf.h | 125 void ta_elf_load_dependency(struct ta_elf *elf, bool is_32bit); 126 void ta_elf_relocate(struct ta_elf *elf); 127 void ta_elf_finalize_mappings(struct ta_elf *elf); 144 struct ta_elf **found_elf, struct ta_elf *elf);
|
/optee_os-3.20.0/scripts/ |
A D | print_tee_hash.py | 9 from elftools.elf.elffile import ELFFile 21 def resolve_symbol(elf, name): argument 22 for section in elf.iter_sections(): 30 def hash_range(h, elf, start, end): argument 32 start_addr = resolve_symbol(elf, start) 33 end_addr = resolve_symbol(elf, end) 38 for segment in elf.iter_segments(): 46 def hash_section(h, elf, name): argument 48 s = elf.get_section_by_name(name) 68 elf = ELFFile(f) [all …]
|
A D | symbolize.py | 159 if elf: 160 return elf[0] 162 def set_arch(self, elf): argument 174 def arch_prefix(self, cmd, elf): argument 175 self.set_arch(elf) 189 if not elf: 355 if not elf: 358 if not elf or not cmd: 390 if elf is None: 392 self.read_sections(elf) [all …]
|
A D | gen_ldelf_hex.py | 13 from elftools.elf.elffile import ELFFile 14 from elftools.elf.sections import SymbolTableSection 15 from elftools.elf.constants import P_FLAGS
|
A D | gen_tee_bin.py | 16 from elftools.elf.elffile import ELFFile 17 from elftools.elf.constants import SH_FLAGS 18 from elftools.elf.enums import ENUM_RELOC_TYPE_ARM 19 from elftools.elf.enums import ENUM_RELOC_TYPE_AARCH64 20 from elftools.elf.sections import SymbolTableSection 21 from elftools.elf.relocation import RelocationSection
|
A D | checkpatch_inc.sh | 10 lib/libutee/include/elf.h \
|
A D | ts_bin_to_c.py | 10 from elftools.elf.elffile import ELFFile
|
/optee_os-3.20.0/core/arch/riscv/kernel/ |
A D | link.mk | 90 -include $(link-out-dir)/.tee.elf.cmd 97 all: $(link-out-dir)/tee.elf 98 cleanfiles += $(link-out-dir)/tee.elf $(link-out-dir)/tee.map 101 cleanfiles += $(link-out-dir)/.tee.elf.cmd 104 @echo "old-link-objs := $(link-objs)" >$(link-out-dir)/.tee.elf.cmd 106 $(q)$(LDcore) $(ldargs-tee.elf) -o $@ 110 $(link-out-dir)/tee.dmp: $(link-out-dir)/tee.elf 116 $(link-out-dir)/tee.bin: $(link-out-dir)/tee.elf 122 $(link-out-dir)/tee.symb_sizes: $(link-out-dir)/tee.elf 130 $(link-out-dir)/tee.mem_usage: $(link-out-dir)/tee.elf [all …]
|
/optee_os-3.20.0/ta/arch/arm/ |
A D | link.mk | 20 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \ 22 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).elf 25 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf 66 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \ 86 $(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \ 92 $(q)$(LD$(sm)) $(ldargs-$(user-ta-uuid).elf) -o $$@ 95 $(link-out-dir$(sm))/$(user-ta-uuid).elf 99 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf: \ 100 $(link-out-dir$(sm))/$(user-ta-uuid).elf 110 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \
|
A D | link_shlib.mk | 11 $(link-out-dir)/$(shlibuuid).elf \ 17 cleanfiles += $(link-out-dir)/$(shlibuuid).elf 46 $(link-out-dir)/$(shlibuuid).elf: $(link-out-dir)/$(shlibname).so
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | link.mk | 178 -include $(link-out-dir)/.tee.elf.cmd 185 all: $(link-out-dir)/tee.elf 186 cleanfiles += $(link-out-dir)/tee.elf $(link-out-dir)/tee.map 189 cleanfiles += $(link-out-dir)/.tee.elf.cmd 191 @echo "old-link-objs := $(link-objs)" >$(link-out-dir)/.tee.elf.cmd 193 $(q)$(LDcore) $(ldargs-tee.elf) -o $@ 197 $(link-out-dir)/tee.dmp: $(link-out-dir)/tee.elf 221 $(link-out-dir)/tee-header_v2.bin: $(link-out-dir)/tee.elf \ 234 $(link-out-dir)/tee-pageable_v2.bin: $(link-out-dir)/tee.elf \ 241 $(link-out-dir)/tee.symb_sizes: $(link-out-dir)/tee.elf [all …]
|
/optee_os-3.20.0/core/ |
A D | sub.mk | 18 depends-ldelf = scripts/gen_ldelf_hex.py $(out-dir)/ldelf/ldelf.elf 19 recipe-ldelf = $(PYTHON3) scripts/gen_ldelf_hex.py --input $(out-dir)/ldelf/ldelf.elf \ 37 process_early_ta,$(out-dir)/ta/$(f).stripped.elf)))
|
/optee_os-3.20.0/mk/ |
A D | lib.mk | 34 lib-libuuidln := $(out-dir)/$(base-prefix)$(libdir)/$(libuuid).elf
|
/optee_os-3.20.0/ |
A D | CHANGELOG.md | 1408 [signed ELF format][elf] 1459 [elf]: https://github.com/OP-TEE/optee_os/blob/master/documentation/optee_design.md#format
|