/optee_os/ldelf/ |
A D | ta_elf.c | 63 struct ta_elf *elf = calloc(1, sizeof(*elf)); in queue_elf_helper() local 65 if (!elf) in queue_elf_helper() 79 if (elf) in queue_elf() 337 check_hashtab(elf, elf->hashtab, 0, 0); in save_hashtab() 342 check_gnu_hashtab(elf, elf->gnu_hashtab); in save_hashtab() 527 elf->phdr = (void *)(va + elf->e_phoff); in init_elf() 952 va = elf->load_addr + elf->prop_start; in parse_property_segment() 1126 memcpy(elf->shdr, (void *)(elf->load_addr + elf->e_shoff), in copy_section_headers() 1624 for (elf = lib; elf; elf = TAILQ_NEXT(elf, link)) in ta_elf_add_library() 1627 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() 229 if (elf) { in ta_elf_resolve_sym() 369 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 389 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 403 if (sh_end >= (elf->max_addr - elf->load_addr)) in e32_relocate() 415 if (rel->r_offset >= (elf->max_addr - elf->load_addr)) in e32_relocate() 542 mod = elf; in e64_process_tls_tprel_rela() 609 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() 629 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() 643 if (sh_end >= (elf->max_addr - elf->load_addr)) in e64_relocate() [all …]
|
A D | main.c | 34 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in dump_ta_state() local 36 assert(elf && elf->is_main); in dump_ta_state() 37 EMSG_RAW("Status of TA %pUl", (void *)&elf->uuid); in dump_ta_state() 140 struct ta_elf *elf = NULL; in ldelf() local 159 TAILQ_FOREACH(elf, &main_elf_queue, link) in ldelf() 160 ta_elf_load_dependency(elf, arg->is_32bit); in ldelf() 162 TAILQ_FOREACH(elf, &main_elf_queue, link) { in ldelf() 163 ta_elf_relocate(elf); in ldelf() 164 ta_elf_finalize_mappings(elf); in ldelf() 175 TAILQ_FOREACH(elf, &main_elf_queue, link) in ldelf() [all …]
|
A D | ftrace.c | 25 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in ftrace_init() local 40 assert(elf && elf->is_main); in ftrace_init() 56 (void *)&elf->uuid, elf->load_addr); in ftrace_init() 92 struct ta_elf *elf = TAILQ_FIRST(&main_elf_queue); in ftrace_copy_buf() local 100 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 | 126 void ta_elf_load_dependency(struct ta_elf *elf, bool is_32bit); 127 void ta_elf_relocate(struct ta_elf *elf); 128 void ta_elf_finalize_mappings(struct ta_elf *elf); 148 struct ta_elf **found_elf, struct ta_elf *elf);
|
/optee_os/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 180 self.set_arch(elf) 194 if not elf: 265 if elf is None: 308 if elf is None: 357 if not elf: 360 if not elf or not cmd: 392 if elf is None: [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 | sign_rproc_fw.py | 8 from elftools.elf.elffile import ELFFile 9 from elftools.elf.sections import SymbolTableSection 10 from elftools.elf.enums import ENUM_P_TYPE_ARM 11 from elftools.elf.enums import *
|
A D | ts_bin_to_c.py | 10 from elftools.elf.elffile import ELFFile, ELFError 11 from elftools.elf.sections import SymbolTableSection
|
/optee_os/core/arch/riscv/kernel/ |
A D | link.mk | 57 -include $(link-out-dir)/.tee.elf.cmd 64 all: $(link-out-dir)/tee.elf 65 cleanfiles += $(link-out-dir)/tee.elf $(link-out-dir)/tee.map 68 cleanfiles += $(link-out-dir)/.tee.elf.cmd 71 @echo "old-link-objs := $(link-objs)" >$(link-out-dir)/.tee.elf.cmd 73 $(q)$(LDcore) $(ldargs-tee.elf) -o $@ 77 $(link-out-dir)/tee.dmp: $(link-out-dir)/tee.elf 83 $(link-out-dir)/tee.bin: $(link-out-dir)/tee.elf 89 $(link-out-dir)/tee.symb_sizes: $(link-out-dir)/tee.elf 97 $(link-out-dir)/tee.mem_usage: $(link-out-dir)/tee.elf [all …]
|
/optee_os/ta/ |
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 68 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \ 88 $(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \ 94 $(q)$(LD$(sm)) $(ldargs-$(user-ta-uuid).elf) -o $$@ 97 $(link-out-dir$(sm))/$(user-ta-uuid).elf 101 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf: \ 102 $(link-out-dir$(sm))/$(user-ta-uuid).elf 112 $(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/core/arch/arm/kernel/ |
A D | link.mk | 146 -include $(link-out-dir)/.tee.elf.cmd 153 all: $(link-out-dir)/tee.elf 154 cleanfiles += $(link-out-dir)/tee.elf $(link-out-dir)/tee.map 157 cleanfiles += $(link-out-dir)/.tee.elf.cmd 159 @echo "old-link-objs := $(link-objs)" >$(link-out-dir)/.tee.elf.cmd 161 $(q)$(LDcore) $(ldargs-tee.elf) -o $@ 165 $(link-out-dir)/tee.dmp: $(link-out-dir)/tee.elf 189 $(link-out-dir)/tee-header_v2.bin: $(link-out-dir)/tee.elf \ 202 $(link-out-dir)/tee-pageable_v2.bin: $(link-out-dir)/tee.elf \ 209 $(link-out-dir)/tee.symb_sizes: $(link-out-dir)/tee.elf [all …]
|
/optee_os/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/mk/ |
A D | aosp_optee.mk | 183 TA_TMP_STRIPPED_ELF_FILE := $(patsubst %.ta,%.stripped.elf,$(TA_TMP_FILE))
|
A D | lib.mk | 34 lib-libuuidln := $(out-dir)/$(base-prefix)$(libdir)/$(libuuid).elf
|
/optee_os/ |
A D | CHANGELOG.md | 1648 [signed ELF format][elf] 1699 [elf]: https://github.com/OP-TEE/optee_os/blob/master/documentation/optee_design.md#format
|