Lines Matching refs:GET_BE
26 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); in BITSFUNC()
29 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()
30 if (GET_BE(&pt[i].p_type) == PT_LOAD) { in BITSFUNC()
34 if (GET_BE(&pt[i].p_offset) != 0 || in BITSFUNC()
35 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
38 if (GET_BE(&pt[i].p_memsz) != GET_BE(&pt[i].p_filesz)) in BITSFUNC()
41 load_size = GET_BE(&pt[i].p_memsz); in BITSFUNC()
43 } else if (GET_BE(&pt[i].p_type) == PT_DYNAMIC) { in BITSFUNC()
44 dyn = raw_addr + GET_BE(&pt[i].p_offset); in BITSFUNC()
45 dyn_end = raw_addr + GET_BE(&pt[i].p_offset) + in BITSFUNC()
46 GET_BE(&pt[i].p_memsz); in BITSFUNC()
57 GET_BE(&dyn[i].d_tag) != DT_NULL; i++) { in BITSFUNC()
58 typeof(dyn[i].d_tag) tag = GET_BE(&dyn[i].d_tag); in BITSFUNC()
59 typeof(dyn[i].d_un.d_val) val = GET_BE(&dyn[i].d_un.d_val); in BITSFUNC()
66 for (i = 0; i < GET_BE(&hdr->e_shnum); i++) { in BITSFUNC()
67 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
68 GET_BE(&hdr->e_shentsize) * i; in BITSFUNC()
69 if (GET_BE(&sh->sh_type) == SHT_SYMTAB) in BITSFUNC()
76 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
77 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in BITSFUNC()
81 i < GET_BE(&symtab_hdr->sh_size) / GET_BE(&symtab_hdr->sh_entsize); in BITSFUNC()
85 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in BITSFUNC()
86 GET_BE(&symtab_hdr->sh_entsize) * i; in BITSFUNC()
87 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in BITSFUNC()
88 GET_BE(&sym->st_name); in BITSFUNC()
103 syms[k] = GET_BE(&sym->st_value); in BITSFUNC()