Lines Matching defs:dst
173 Elf_Internal_Sym *dst)
179 dst->st_name = H_GET_32 (abfd, src->st_name);
181 dst->st_value = H_GET_SIGNED_WORD (abfd, src->st_value);
183 dst->st_value = H_GET_WORD (abfd, src->st_value);
184 dst->st_size = H_GET_WORD (abfd, src->st_size);
185 dst->st_info = H_GET_8 (abfd, src->st_info);
186 dst->st_other = H_GET_8 (abfd, src->st_other);
187 dst->st_shndx = H_GET_16 (abfd, src->st_shndx);
188 if (dst->st_shndx == SHN_XINDEX)
192 dst->st_shndx = H_GET_32 (abfd, shndx->est_shndx);
206 Elf_External_Sym *dst = cdst;
207 H_PUT_32 (abfd, src->st_name, dst->st_name);
208 H_PUT_WORD (abfd, src->st_value, dst->st_value);
209 H_PUT_WORD (abfd, src->st_size, dst->st_size);
210 H_PUT_8 (abfd, src->st_info, dst->st_info);
211 H_PUT_8 (abfd, src->st_other, dst->st_other);
220 H_PUT_16 (abfd, tmp, dst->st_shndx);
229 Elf_Internal_Ehdr *dst)
232 memcpy (dst->e_ident, src->e_ident, EI_NIDENT);
233 dst->e_type = H_GET_16 (abfd, src->e_type);
234 dst->e_machine = H_GET_16 (abfd, src->e_machine);
235 dst->e_version = H_GET_32 (abfd, src->e_version);
237 dst->e_entry = H_GET_SIGNED_WORD (abfd, src->e_entry);
239 dst->e_entry = H_GET_WORD (abfd, src->e_entry);
240 dst->e_phoff = H_GET_WORD (abfd, src->e_phoff);
241 dst->e_shoff = H_GET_WORD (abfd, src->e_shoff);
242 dst->e_flags = H_GET_32 (abfd, src->e_flags);
243 dst->e_ehsize = H_GET_16 (abfd, src->e_ehsize);
244 dst->e_phentsize = H_GET_16 (abfd, src->e_phentsize);
245 dst->e_phnum = H_GET_16 (abfd, src->e_phnum);
246 dst->e_shentsize = H_GET_16 (abfd, src->e_shentsize);
247 dst->e_shnum = H_GET_16 (abfd, src->e_shnum);
248 dst->e_shstrndx = H_GET_16 (abfd, src->e_shstrndx);
257 Elf_External_Ehdr *dst)
261 memcpy (dst->e_ident, src->e_ident, EI_NIDENT);
262 /* note that all elements of dst are *arrays of unsigned char* already... */
263 H_PUT_16 (abfd, src->e_type, dst->e_type);
264 H_PUT_16 (abfd, src->e_machine, dst->e_machine);
265 H_PUT_32 (abfd, src->e_version, dst->e_version);
267 H_PUT_SIGNED_WORD (abfd, src->e_entry, dst->e_entry);
269 H_PUT_WORD (abfd, src->e_entry, dst->e_entry);
270 H_PUT_WORD (abfd, src->e_phoff, dst->e_phoff);
271 H_PUT_WORD (abfd, src->e_shoff, dst->e_shoff);
272 H_PUT_32 (abfd, src->e_flags, dst->e_flags);
273 H_PUT_16 (abfd, src->e_ehsize, dst->e_ehsize);
274 H_PUT_16 (abfd, src->e_phentsize, dst->e_phentsize);
275 H_PUT_16 (abfd, src->e_phnum, dst->e_phnum);
276 H_PUT_16 (abfd, src->e_shentsize, dst->e_shentsize);
280 H_PUT_16 (abfd, tmp, dst->e_shnum);
284 H_PUT_16 (abfd, tmp, dst->e_shstrndx);
293 Elf_Internal_Shdr *dst)
297 dst->sh_name = H_GET_32 (abfd, src->sh_name);
298 dst->sh_type = H_GET_32 (abfd, src->sh_type);
299 dst->sh_flags = H_GET_WORD (abfd, src->sh_flags);
301 dst->sh_addr = H_GET_SIGNED_WORD (abfd, src->sh_addr);
303 dst->sh_addr = H_GET_WORD (abfd, src->sh_addr);
304 dst->sh_offset = H_GET_WORD (abfd, src->sh_offset);
305 dst->sh_size = H_GET_WORD (abfd, src->sh_size);
306 dst->sh_link = H_GET_32 (abfd, src->sh_link);
307 dst->sh_info = H_GET_32 (abfd, src->sh_info);
308 dst->sh_addralign = H_GET_WORD (abfd, src->sh_addralign);
309 dst->sh_entsize = H_GET_WORD (abfd, src->sh_entsize);
310 dst->bfd_section = NULL;
311 dst->contents = NULL;
320 Elf_External_Shdr *dst)
322 /* note that all elements of dst are *arrays of unsigned char* already... */
323 H_PUT_32 (abfd, src->sh_name, dst->sh_name);
324 H_PUT_32 (abfd, src->sh_type, dst->sh_type);
325 H_PUT_WORD (abfd, src->sh_flags, dst->sh_flags);
326 H_PUT_WORD (abfd, src->sh_addr, dst->sh_addr);
327 H_PUT_WORD (abfd, src->sh_offset, dst->sh_offset);
328 H_PUT_WORD (abfd, src->sh_size, dst->sh_size);
329 H_PUT_32 (abfd, src->sh_link, dst->sh_link);
330 H_PUT_32 (abfd, src->sh_info, dst->sh_info);
331 H_PUT_WORD (abfd, src->sh_addralign, dst->sh_addralign);
332 H_PUT_WORD (abfd, src->sh_entsize, dst->sh_entsize);
341 Elf_Internal_Phdr *dst)
345 dst->p_type = H_GET_32 (abfd, src->p_type);
346 dst->p_flags = H_GET_32 (abfd, src->p_flags);
347 dst->p_offset = H_GET_WORD (abfd, src->p_offset);
350 dst->p_vaddr = H_GET_SIGNED_WORD (abfd, src->p_vaddr);
351 dst->p_paddr = H_GET_SIGNED_WORD (abfd, src->p_paddr);
355 dst->p_vaddr = H_GET_WORD (abfd, src->p_vaddr);
356 dst->p_paddr = H_GET_WORD (abfd, src->p_paddr);
358 dst->p_filesz = H_GET_WORD (abfd, src->p_filesz);
359 dst->p_memsz = H_GET_WORD (abfd, src->p_memsz);
360 dst->p_align = H_GET_WORD (abfd, src->p_align);
366 Elf_External_Phdr *dst)
368 /* note that all elements of dst are *arrays of unsigned char* already... */
369 H_PUT_32 (abfd, src->p_type, dst->p_type);
370 H_PUT_WORD (abfd, src->p_offset, dst->p_offset);
371 H_PUT_WORD (abfd, src->p_vaddr, dst->p_vaddr);
372 H_PUT_WORD (abfd, src->p_paddr, dst->p_paddr);
373 H_PUT_WORD (abfd, src->p_filesz, dst->p_filesz);
374 H_PUT_WORD (abfd, src->p_memsz, dst->p_memsz);
375 H_PUT_32 (abfd, src->p_flags, dst->p_flags);
376 H_PUT_WORD (abfd, src->p_align, dst->p_align);
383 Elf_Internal_Rela *dst)
386 dst->r_offset = H_GET_WORD (abfd, src->r_offset);
387 dst->r_info = H_GET_WORD (abfd, src->r_info);
388 dst->r_addend = 0;
394 Elf_Internal_Rela *dst)
397 dst->r_offset = H_GET_WORD (abfd, src->r_offset);
398 dst->r_info = H_GET_WORD (abfd, src->r_info);
399 dst->r_addend = H_GET_SIGNED_WORD (abfd, src->r_addend);
408 Elf_External_Rel *dst = (Elf_External_Rel *) d;
409 H_PUT_WORD (abfd, src->r_offset, dst->r_offset);
410 H_PUT_WORD (abfd, src->r_info, dst->r_info);
418 Elf_External_Rela *dst = (Elf_External_Rela *) d;
419 H_PUT_WORD (abfd, src->r_offset, dst->r_offset);
420 H_PUT_WORD (abfd, src->r_info, dst->r_info);
421 H_PUT_SIGNED_WORD (abfd, src->r_addend, dst->r_addend);
427 Elf_Internal_Dyn *dst)
431 dst->d_tag = H_GET_WORD (abfd, src->d_tag);
432 dst->d_un.d_val = H_GET_WORD (abfd, src->d_un.d_val);
440 Elf_External_Dyn *dst = p;
442 H_PUT_WORD (abfd, src->d_tag, dst->d_tag);
443 H_PUT_WORD (abfd, src->d_un.d_val, dst->d_un.d_val);