Lines Matching refs:src
195 static void conv_to_big_endian_header(const ELF32_ElfHeader * src, ELF32_ElfHeader * dest) in conv_to_big_endian_header() argument
197 memcpy(dest->e_ident, src->e_ident, EI_NIDENT); in conv_to_big_endian_header()
198 dest->e_type = Be16(src->e_type); in conv_to_big_endian_header()
199 dest->e_machine = Be16(src->e_machine); in conv_to_big_endian_header()
200 dest->e_version = Be32(src->e_version); in conv_to_big_endian_header()
201 dest->e_entry = Be32(src->e_entry); in conv_to_big_endian_header()
202 dest->e_phoff = Be32(src->e_phoff); in conv_to_big_endian_header()
203 dest->e_shoff = Be32(src->e_shoff); in conv_to_big_endian_header()
204 dest->e_flags = Be32(src->e_flags); in conv_to_big_endian_header()
205 dest->e_ehsize = Be16(src->e_ehsize); in conv_to_big_endian_header()
206 dest->e_phentsize = Be16(src->e_phentsize); in conv_to_big_endian_header()
207 dest->e_phnum = Be16(src->e_phnum); in conv_to_big_endian_header()
208 dest->e_shentsize = Be16(src->e_shentsize); in conv_to_big_endian_header()
209 dest->e_shnum = Be16(src->e_shnum); in conv_to_big_endian_header()
210 dest->e_shstrndx = Be16(src->e_shstrndx); in conv_to_big_endian_header()
213 static void conv_to_big_endian_section(const ELF32_SectionHeader * src, ELF32_SectionHeader * dest) in conv_to_big_endian_section() argument
215 dest->sh_name = Be32(src->sh_name); in conv_to_big_endian_section()
216 dest->sh_type = Be32(src->sh_type); in conv_to_big_endian_section()
217 dest->sh_flags = Be32(src->sh_flags); in conv_to_big_endian_section()
218 dest->sh_addr = Be32(src->sh_addr); in conv_to_big_endian_section()
219 dest->sh_offset = Be32(src->sh_offset); in conv_to_big_endian_section()
220 dest->sh_size = Be32(src->sh_size); in conv_to_big_endian_section()
221 dest->sh_link = Be32(src->sh_link); in conv_to_big_endian_section()
222 dest->sh_info = Be32(src->sh_info); in conv_to_big_endian_section()
223 dest->sh_addralign = Be32(src->sh_addralign); in conv_to_big_endian_section()
224 dest->sh_entsize = Be32(src->sh_entsize); in conv_to_big_endian_section()
227 static void conv_to_big_endian_symbol(const ELF32_Symbol * src, ELF32_Symbol * dest) in conv_to_big_endian_symbol() argument
229 dest->st_name = Be32(src->st_name); in conv_to_big_endian_symbol()
230 dest->st_value = Be32(src->st_value); in conv_to_big_endian_symbol()
231 dest->st_size = Be32(src->st_size); in conv_to_big_endian_symbol()
232 dest->st_info = src->st_info; in conv_to_big_endian_symbol()
233 dest->st_other = src->st_other; in conv_to_big_endian_symbol()
234 dest->st_shndx = Be16(src->st_shndx); in conv_to_big_endian_symbol()
237 void conv_to_big_endian(const Object * src, Object * dest) in conv_to_big_endian() argument
241 conv_to_big_endian_header(&src->header, &dest->header); in conv_to_big_endian()
243 for (i = 0; i < src->header.e_shnum; i++) in conv_to_big_endian()
245 conv_to_big_endian_section(&src->section[i], &dest->section[i]); in conv_to_big_endian()
248 n = src->section[src->symbol_index].sh_size / sizeof(src->symbol[0]); in conv_to_big_endian()
251 conv_to_big_endian_symbol(&src->symbol[i], &dest->symbol[i]); in conv_to_big_endian()