Home | History | Annotate | Download | only in bfd

Lines Matching full:execp

224   struct internal_exec *execp = exec_hdr (abfd);
227 obj_textsec (abfd)->size = N_TXTSIZE (*execp);
230 obj_textsec (abfd)->vma = N_TXTADDR (*execp);
231 obj_datasec (abfd)->vma = N_DATADDR (*execp);
232 obj_bsssec (abfd)->vma = N_BSSADDR (*execp);
239 obj_textsec (abfd)->filepos = N_TXTOFF (*execp);
240 obj_datasec (abfd)->filepos = N_DATOFF (*execp);
243 obj_textsec (abfd)->rel_filepos = N_TRELOFF (*execp);
244 obj_datasec (abfd)->rel_filepos = N_DRELOFF (*execp);
247 obj_sym_filepos (abfd) = N_SYMOFF (*execp);
248 obj_str_filepos (abfd) = N_STROFF (*execp);
252 SET_ARCH_MACH (abfd, *execp);
260 obj_textsec (abfd)->rel_filepos = N_GNU_TRELOFF (*execp);
261 obj_datasec (abfd)->rel_filepos = N_GNU_DRELOFF (*execp);
264 obj_sym_filepos (abfd) = N_GNU_SYMOFF (*execp);
265 obj_str_filepos (abfd) = (obj_sym_filepos (abfd) + execp->a_syms);
268 bfd_get_symcount (abfd) = execp->a_syms / 12;
282 struct internal_exec *execp = exec_hdr (abfd);
292 execp->a_syms = 0;
294 execp->a_entry = bfd_get_start_address (abfd);
296 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) *
298 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) *
301 N_SET_MACHTYPE (*execp, 0xc);
302 N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags);
304 NAME (aout,swap_exec_header_out) (abfd, execp, &exec_bytes);
322 if (bfd_seek (abfd, (file_ptr) (N_DRELOFF (*execp) + execp->a_drsize),
332 if (bfd_seek (abfd, (file_ptr) N_TRELOFF (*execp), SEEK_CUR) != 0)
336 if (bfd_seek (abfd, (file_ptr) N_DRELOFF (*execp), SEEK_CUR) != 0)
445 struct internal_exec *execp)
453 memset (execp, 0, sizeof (struct internal_exec));
454 /* Now fill in fields in the execp, from the bytes in the raw data. */
455 execp->a_info = H_GET_32 (abfd, bytes->e_info);
456 execp->a_text = GET_WORD (abfd, bytes->e_text);
457 execp->a_data = GET_WORD (abfd, bytes->e_data);
458 execp->a_bss = GET_WORD (abfd, bytes->e_bss);
459 execp->a_syms = GET_WORD (abfd, bytes->e_syms);
460 execp->a_entry = GET_WORD (abfd, bytes->e_entry);
461 execp->a_trsize = GET_WORD (abfd, bytes->e_trsize);
462 execp->a_drsize = GET_WORD (abfd, bytes->e_drsize);
488 execp->a_syms = syms;