Lines Matching refs:GET_BE
25 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff)); in BITSFUNC()
28 for (i = 0; i < GET_BE(&hdr->e_phnum); i++) { in BITSFUNC()
29 if (GET_BE(&pt[i].p_type) == PT_LOAD) { in BITSFUNC()
33 if (GET_BE(&pt[i].p_offset) != 0 || in BITSFUNC()
34 GET_BE(&pt[i].p_vaddr) != 0) in BITSFUNC()
37 if (GET_BE(&pt[i].p_memsz) != GET_BE(&pt[i].p_filesz)) in BITSFUNC()
40 load_size = GET_BE(&pt[i].p_memsz); in BITSFUNC()
42 } else if (GET_BE(&pt[i].p_type) == PT_DYNAMIC) { in BITSFUNC()
43 dyn = raw_addr + GET_BE(&pt[i].p_offset); in BITSFUNC()
44 dyn_end = raw_addr + GET_BE(&pt[i].p_offset) + in BITSFUNC()
45 GET_BE(&pt[i].p_memsz); in BITSFUNC()
56 GET_BE(&dyn[i].d_tag) != DT_NULL; i++) { in BITSFUNC()
57 typeof(dyn[i].d_tag) tag = GET_BE(&dyn[i].d_tag); in BITSFUNC()
58 typeof(dyn[i].d_un.d_val) val = GET_BE(&dyn[i].d_un.d_val); in BITSFUNC()
65 for (i = 0; i < GET_BE(&hdr->e_shnum); i++) { in BITSFUNC()
66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
67 GET_BE(&hdr->e_shentsize) * i; in BITSFUNC()
68 if (GET_BE(&sh->sh_type) == SHT_SYMTAB) in BITSFUNC()
75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
76 GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link); in BITSFUNC()
80 i < GET_BE(&symtab_hdr->sh_size) / GET_BE(&symtab_hdr->sh_entsize); in BITSFUNC()
84 ELF(Sym) *sym = raw_addr + GET_BE(&symtab_hdr->sh_offset) + in BITSFUNC()
85 GET_BE(&symtab_hdr->sh_entsize) * i; in BITSFUNC()
86 const char *name = raw_addr + GET_BE(&strtab_hdr->sh_offset) + in BITSFUNC()
87 GET_BE(&sym->st_name); in BITSFUNC()
102 syms[k] = GET_BE(&sym->st_value); in BITSFUNC()