Home | History | Annotate | Download | only in bfd

Lines Matching full:execp

362             struct internal_exec *execp);
367 structure @var{execp}.
374 struct internal_exec *execp)
380 memset ((void *) execp, 0, sizeof (struct internal_exec));
381 /* Now fill in fields in the execp, from the bytes in the raw data. */
382 execp->a_info = H_GET_32 (abfd, bytes->e_info);
383 execp->a_text = GET_WORD (abfd, bytes->e_text);
384 execp->a_data = GET_WORD (abfd, bytes->e_data);
385 execp->a_bss = GET_WORD (abfd, bytes->e_bss);
386 execp->a_syms = GET_WORD (abfd, bytes->e_syms);
387 execp->a_entry = GET_WORD (abfd, bytes->e_entry);
388 execp->a_trsize = GET_WORD (abfd, bytes->e_trsize);
389 execp->a_drsize = GET_WORD (abfd, bytes->e_drsize);
401 struct internal_exec *execp,
406 @var{execp} into the buffer @var{raw_bytes} ready for writing to disk.
410 struct internal_exec *execp,
414 H_PUT_32 (abfd, execp->a_info , bytes->e_info);
415 PUT_WORD (abfd, execp->a_text , bytes->e_text);
416 PUT_WORD (abfd, execp->a_data , bytes->e_data);
417 PUT_WORD (abfd, execp->a_bss , bytes->e_bss);
418 PUT_WORD (abfd, execp->a_syms , bytes->e_syms);
419 PUT_WORD (abfd, execp->a_entry , bytes->e_entry);
420 PUT_WORD (abfd, execp->a_trsize, bytes->e_trsize);
421 PUT_WORD (abfd, execp->a_drsize, bytes->e_drsize);
445 struct internal_exec *execp,
458 struct internal_exec *execp,
481 *(abfd->tdata.aout_data->a.hdr) = *execp;
482 execp = abfd->tdata.aout_data->a.hdr;
486 if (execp->a_drsize || execp->a_trsize)
489 if (execp->a_syms)
491 if (N_DYNAMIC (*execp))
494 if (N_MAGIC (*execp) == ZMAGIC)
499 else if (N_MAGIC (*execp) == QMAGIC)
505 else if (N_MAGIC (*execp) == NMAGIC)
510 else if (N_MAGIC (*execp) == OMAGIC
511 || N_MAGIC (*execp) == BMAGIC)
518 bfd_get_start_address (abfd) = execp->a_entry;
521 bfd_get_symcount (abfd) = execp->a_syms / sizeof (struct external_nlist);
540 obj_datasec (abfd)->size = execp->a_data;
541 obj_bsssec (abfd)->size = execp->a_bss;
544 (execp->a_trsize != 0
548 (execp->a_drsize != 0
564 struct exec *execp = exec_hdr (abfd);
566 obj_textsec (abfd)->size = N_TXTSIZE (*execp);
570 obj_textsec (abfd)->vma = N_TXTADDR (*execp);
571 obj_datasec (abfd)->vma = N_DATADDR (*execp);
572 obj_bsssec (abfd)->vma = N_BSSADDR (*execp);
575 obj_textsec (abfd)->filepos = N_TXTOFF (*execp);
576 obj_datasec (abfd)->filepos = N_DATOFF (*execp);
579 obj_textsec (abfd)->rel_filepos = N_TRELOFF (*execp);
580 obj_datasec (abfd)->rel_filepos = N_DRELOFF (*execp);
583 obj_str_filepos (abfd) = N_STROFF (*execp);
584 obj_sym_filepos (abfd) = N_SYMOFF (*execp);
627 if (execp->a_entry != 0
628 || (execp->a_entry >= obj_textsec (abfd)->vma
629 && execp->a_entry < (obj_textsec (abfd)->vma
631 && execp->a_trsize == 0
632 && execp->a_drsize == 0))
896 adjust_o_magic (bfd *abfd, struct internal_exec *execp)
949 execp->a_text = obj_textsec (abfd)->size;
950 execp->a_data = obj_datasec (abfd)->size;
951 execp->a_bss = obj_bsssec (abfd)->size;
952 N_SET_MAGIC (*execp, OMAGIC);
956 adjust_z_magic (bfd *abfd, struct internal_exec *execp)
1037 execp->a_text = obj_textsec (abfd)->size;
1039 execp->a_text += adata (abfd).exec_bytes_size;
1041 N_SET_MAGIC (*execp, QMAGIC);
1043 N_SET_MAGIC (*execp, ZMAGIC);
1049 execp->a_data = BFD_ALIGN (obj_datasec (abfd)->size,
1051 data_pad = execp->a_data - obj_datasec (abfd)->size;
1066 execp->a_bss = (data_pad > obj_bsssec (abfd)->size
1069 execp->a_bss = obj_bsssec (abfd)->size;
1073 adjust_n_magic (bfd *abfd, struct internal_exec *execp)
1107 execp->a_text = obj_textsec (abfd)->size;
1108 execp->a_data = obj_datasec (abfd)->size;
1109 execp->a_bss = obj_bsssec (abfd)->size;
1110 N_SET_MAGIC (*execp, NMAGIC);
1118 struct internal_exec *execp = exec_hdr (abfd);
1180 adjust_o_magic (abfd, execp);
1183 adjust_z_magic (abfd, execp);
1186 adjust_n_magic (abfd, execp);