Lines Matching refs:GET_LE
32 offset = (unsigned long)GET_LE(&sec->sh_offset); in BITSFUNC()
33 len = (size_t)GET_LE(&sec->sh_size); in BITSFUNC()
58 ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff)); in BITSFUNC()
60 if (GET_LE(&hdr->e_type) != ET_DYN) in BITSFUNC()
64 for (i = 0; i < GET_LE(&hdr->e_phnum); i++) { in BITSFUNC()
65 if (GET_LE(&pt[i].p_type) == PT_LOAD) { in BITSFUNC()
69 if (GET_LE(&pt[i].p_offset) != 0 || in BITSFUNC()
70 GET_LE(&pt[i].p_vaddr) != 0) in BITSFUNC()
73 if (GET_LE(&pt[i].p_memsz) != GET_LE(&pt[i].p_filesz)) in BITSFUNC()
76 load_size = GET_LE(&pt[i].p_memsz); in BITSFUNC()
78 } else if (GET_LE(&pt[i].p_type) == PT_DYNAMIC) { in BITSFUNC()
79 dyn = raw_addr + GET_LE(&pt[i].p_offset); in BITSFUNC()
80 dyn_end = raw_addr + GET_LE(&pt[i].p_offset) + in BITSFUNC()
81 GET_LE(&pt[i].p_memsz); in BITSFUNC()
95 GET_LE(&dyn[i].d_tag) != DT_NULL; i++) { in BITSFUNC()
96 typeof(dyn[i].d_tag) tag = GET_LE(&dyn[i].d_tag); in BITSFUNC()
103 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
104 GET_LE(&hdr->e_shentsize)*GET_LE(&hdr->e_shstrndx); in BITSFUNC()
105 secstrings = raw_addr + GET_LE(&secstrings_hdr->sh_offset); in BITSFUNC()
106 for (i = 0; i < GET_LE(&hdr->e_shnum); i++) { in BITSFUNC()
107 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
108 GET_LE(&hdr->e_shentsize) * i; in BITSFUNC()
109 if (GET_LE(&sh->sh_type) == SHT_SYMTAB) in BITSFUNC()
112 if (!strcmp(secstrings + GET_LE(&sh->sh_name), in BITSFUNC()
115 if (!strcmp(secstrings + GET_LE(&sh->sh_name), "__ex_table")) in BITSFUNC()
122 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
123 GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link); in BITSFUNC()
125 syms_nr = GET_LE(&symtab_hdr->sh_size) / GET_LE(&symtab_hdr->sh_entsize); in BITSFUNC()
129 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC()
130 GET_LE(&symtab_hdr->sh_entsize) * i; in BITSFUNC()
132 GET_LE(&strtab_hdr->sh_offset) + in BITSFUNC()
133 GET_LE(&sym->st_name); in BITSFUNC()
148 syms[k] = GET_LE(&sym->st_value); in BITSFUNC()
205 (unsigned long)GET_LE(&alt_sec->sh_offset)); in BITSFUNC()
207 (unsigned long)GET_LE(&alt_sec->sh_size)); in BITSFUNC()
211 (unsigned long)GET_LE(&extable_sec->sh_offset)); in BITSFUNC()
213 (unsigned long)GET_LE(&extable_sec->sh_size)); in BITSFUNC()