Home
last modified time | relevance | path

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

/optee_os/ldelf/
H A Dta_elf.c52 static void assign_tls_mod_id(struct ta_elf *elf) in assign_tls_mod_id() argument
56 if (elf->is_main) in assign_tls_mod_id()
58 elf->tls_mod_id = last_tls_mod_id++; in assign_tls_mod_id()
63 struct ta_elf *elf = calloc(1, sizeof(*elf)); in queue_elf_helper() local
65 if (!elf) in queue_elf_helper()
68 TAILQ_INIT(&elf->segs); in queue_elf_helper()
70 elf->uuid = *uuid; in queue_elf_helper()
71 TAILQ_INSERT_TAIL(&main_elf_queue, elf, link); in queue_elf_helper()
72 return elf; in queue_elf_helper()
77 struct ta_elf *elf = ta_elf_find_elf(uuid); in queue_elf() local
[all …]
H A Dta_elf_rel.c46 static bool sym_compare(struct ta_elf *elf, unsigned int st_bind, in sym_compare() argument
55 if (st_name > elf->dynstr_size) in sym_compare()
57 if (strcmp(name, elf->dynstr + st_name)) in sym_compare()
75 if (st_value > (elf->max_addr - elf->load_addr)) in sym_compare()
79 *val = st_value + elf->load_addr; in sym_compare()
92 static bool check_found_sym(struct ta_elf *elf, const char *name, vaddr_t *val, in check_found_sym() argument
103 if (n >= elf->num_dynsyms) in check_found_sym()
112 n = confine_array_index(n, elf->num_dynsyms); in check_found_sym()
114 if (elf->is_32bit) { in check_found_sym()
115 sym32 = elf->dynsymtab; in check_found_sym()
[all …]
H A Dmain.c34 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()
39 EMSG_RAW(" arch: %s", elf->is_32bit ? "arm" : "aarch64"); in dump_ta_state()
41 EMSG_RAW(" arch: %s", elf->is_32bit ? "riscv32" : "riscv64"); in dump_ta_state()
149 struct ta_elf *elf = NULL; in ldelf()
168 TAILQ_FOREACH(elf, &main_elf_queue, link) in ldelf()
169 ta_elf_load_dependency(elf, arg->is_32bit); in ldelf()
171 TAILQ_FOREACH(elf, in ldelf()
140 struct ta_elf *elf = NULL; ldelf() local
[all...]
H A Dftrace.c25 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()
H A Ddl.c26 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()
H A Dlink.mk7 ldelf: $(link-out-dir$(sm))/ldelf.elf
12 cleanfiles += $(link-out-dir$(sm))/ldelf.elf
30 ldargs-ldelf.elf := $(link-ldflags) $(objs) $(link-ldadd)
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
H A Dta_elf.h126 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/
H A Dprint_tee_hash.py9 from elftools.elf.elffile import ELFFile
10 from elftools.elf.sections import SymbolTableSection
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)
[all …]
H A Dsymbolize.py158 elf = glob.glob(d + '/' + elf_or_uuid)
159 if elf:
160 return elf[0]
162 def set_arch(self, elf): argument
166 p = subprocess.Popen(['file', '-L', elf], stdout=subprocess.PIPE)
179 def arch_prefix(self, cmd, elf): argument
180 self.set_arch(elf)
193 elf = self.get_elf(elf_name)
194 if not elf:
196 cmd = self.arch_prefix('addr2line', elf)
[all …]
H A Dgen_ldelf_hex.py13 from elftools.elf.elffile import ELFFile
14 from elftools.elf.sections import SymbolTableSection
15 from elftools.elf.constants import P_FLAGS
H A Dgen_tee_bin.py16 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
H A Dsign_rproc_fw.py8 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 *
H A Dcheckpatch_inc.sh10 lib/libutee/include/elf.h \
H A Dts_bin_to_c.py10 from elftools.elf.elffile import ELFFile, ELFError
11 from elftools.elf.sections import SymbolTableSection
/optee_os/core/arch/riscv/kernel/
H A Dlink.mk27 ldargs-tee.elf := $(link-ldflags) $(link-objs) $(link-out-dir)/version.o \
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
69 $(link-out-dir)/tee.elf: $(link-objs) $(libdeps) $(link-script-pp) $(FORCE_LINK)
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
[all …]
/optee_os/core/arch/arm/kernel/
H A Dlink.mk54 ldargs-tee.elf := $(link-ldflags) $(link-objs) $(link-out-dir)/version.o \
145 -include $(link-out-dir)/.tee.elf.cmd
152 all: $(link-out-dir)/tee.elf
153 cleanfiles += $(link-out-dir)/tee.elf $(link-out-dir)/tee.map
156 cleanfiles += $(link-out-dir)/.tee.elf.cmd
157 $(link-out-dir)/tee.elf: $(link-objs) $(libdeps) $(link-script-pp) $(FORCE_LINK)
158 @echo "old-link-objs := $(link-objs)" >$(link-out-dir)/.tee.elf.cmd
160 $(q)$(LDcore) $(ldargs-tee.elf) -o $@
164 $(link-out-dir)/tee.dmp: $(link-out-dir)/tee.elf
169 $(link-out-dir)/tee-pager.bin: $(link-out-dir)/tee.elf scripts/gen_tee_bin.py
[all …]
/optee_os/ta/
H A Dlink.mk21 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \
23 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).elf
26 cleanfiles += $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf
75 ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \
95 $(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \
101 $(q)$(LD$(sm)) $(ldargs-$(user-ta-uuid).elf) -o $$@
104 $(link-out-dir$(sm))/$(user-ta-uuid).elf
108 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf: \
109 $(link-out-dir$(sm))/$(user-ta-uuid).elf
119 $(link-out-dir$(sm))/$(user-ta-uuid).stripped.elf \
H A Dlink_shlib.mk11 $(link-out-dir)/$(shlibuuid).elf \
17 cleanfiles += $(link-out-dir)/$(shlibuuid).elf
49 $(link-out-dir)/$(shlibuuid).elf: $(link-out-dir)/$(shlibname).so
/optee_os/core/
H A Dsub.mk18 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/
H A Daosp_optee.mk183 TA_TMP_STRIPPED_ELF_FILE := $(patsubst %.ta,%.stripped.elf,$(TA_TMP_FILE))
H A Dlib.mk34 lib-libuuidln := $(out-dir)/$(base-prefix)$(libdir)/$(libuuid).elf
/optee_os/
H A DCHANGELOG.md1738 [signed ELF format][elf]
1789 [elf]: https://github.com/OP-TEE/optee_os/blob/master/documentation/optee_design.md#format