Unix Man ( )


A.OUT(5)


A.OUT(5)
XENIX System V (1 ap 1989)


a.out - opa aa, oyaeoo peyae pao popa accepoa peaopa ce.


A.out ec peypy ao oce aepe pao popa acceepa masm peaopa ce ld. Ec poecce pao ao x popa e oapye o eopeeee oae epeee, ye coa a fa.out.

opa aa a.out, aae ae x.out ceepoa x.out, opeeec aa /usr/include/a.out.h /usr/include/sys/relsym.h. a a.out ee ceye ocoe ac:

  1. aooo
  2. ooe aooo
  3. Taa ceea aa ( ceepoax opao)
  4. Cee (Tec, ae, co ce acpo)

B ceepoao opae oy cyecoa ecoo ceeo eco ax, acoc o oe a popa. Cee ae aac c apeca, paoo paepy cpa aa (512 a).

OPA


/* *Ocoo ooe aooo cpyyp. * ceepoaoo opaa x.out (XE_SEG): * 1)o, appoae (s) o * coepa cyy cex xs_psize, ec opa axoc a ce * xs_vsize opaa a. * 2)coepoe oace, appoax * (u) eopeeeo. */

struct xexec{ /*aooo x.out*/ unsigned short x_magic; /*aecoe co*/ unsigned short x_ext; /*paep ooeoo aooa*/ long X-Text; /*paep ceea eca (s)*/ long x_data; /*paep apoax ax (s)*/ long x_bss; /*paep eapoax ax (s)*/ long syms; /*paep a coo (s)*/ long x_reloc; /*a a epeee (s)*/ long x_entry; /*ao aca oa xoa*/ char x_cpu; /* poeccopa opo a/coo*/ char x_relsym; /*op epeee coo (u)*/ unsigned short x_renv; /* cpea oe*/ };

struct xext { /* ooe aooo x.out */ long xe_trsize; /* paep a epeee eca (s) */ long xe_drsize; /* paep a epeee ax (s) */ long xe_tbase; /* aa epeeaeoo eca(u) */ long xe_dbase; /* aa epeeaex ax(u) */ long xe_stksize; /* paep cea (ec XE_FS ycaoe) */