Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fixhdr(C) — OpenDesktop 1.0.0y

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

a.out(F)

86rel(F)


     FIXHDR(C)                                  UNIX System V



     Name
          fixhdr - changes executable binary file headers


     Syntax
          fixhdr option files


     Description
          fixhdr changes the header of output files  created  by  link
          editors  or  assemblers.  The kinds of modifications include
          changing the format of the header, the fixed stack size, the
          standalone load address, and symbol names.

          Using fixhdr allows the  use  of  binary  executable  files,
          created under other versions or machines, by simply changing
          the header information so that it is usable  by  the  target
          cpu.

          These are the options to fixhdr :

          -xa       Change the x.out format of the header to the a.out
                    format.

          -xb       Change the x.out format of the header to the b.out
                    format.

          -x4       Change the x.out  format  of  the  header  to  the
                    4.2BSD a.out format.

          -x5 [-n]  Change the x.out  format  of  the  header  to  5.2
                    (UNIXTM  System V release 2) a.out format.  The -n
                    flag causes leading underscores on symbol names to
                    be passed with no modifications.

          -ax -c [11,86]
                    Change the a.out format of the header to the x.out
                    format.  The -c flag specifies the target CPU.  11
                    specifies a PDP-11 CPU.  86 specifies one  of  the
                    8086  family  of CPUs (8086, 8088, 80186, 80286 or
                    80386).

          -bx       Change the b.out format of the header to the x.out
                    format.

          -5x [-n]  Change the 5.2 (UNIX System  V  release  2)  a.out
                    format  of the header to the x.out format.  The -n
                    flag causes leading underscores on symbol names to
                    be passed with no modifications.

          -86x      Add the x.out header format to  the  86rel  object
                    module format. See 86rel(F).

          -F num    Add (or change) the fixed stack size specified  in
                    the  x.out  format  of  the header.  num must be a
                    hexadecimal number.

          -A num    Add  (or  change)  the  standalone  load   address
                    specified  in the x.out format of the header.  num
                    must be a hexadecimal number.

          -M[smlh]  Change the model of the  x.out  or  86rel  format.
                    Model  refers to the compiler model specified when
                    creating the binary. s refers to  small  model,  m
                    refers  to  medium model, l refers to large model,
                    and h refers to huge model.

          -v [2,3,5,7]
                    Change the  version  of  XENIX  specified  in  the
                    header.  XENIX version 2 was based on UNIX Version
                    7.

          -s s1=s2 [-s s3=s4]
                    Change symbol  names,  where  symbol  name  s1  is
                    changed to s2.

          -r        Ensure that the resolution table  is  of  non-zero
                    size.

          -C cpu    Set the cpu type.  cpu can be 186, 286, 386, 8086,
                    others.


     Files
          /usr/bin/fixhdr


     See Also
          a.out(F), 86rel(F)


     Notes
          Give fixhdr one option at a time.  If you need to make  more
          than  one  kind of modification to a file, use fixhdr on the
          original file. Then use  it  again  on  the  fixhdr  output,
          specifying  the  next option.  Copy the original file if you
          need an unmodified version as fixhdr makes the modifications
          directly to the file.


     Value Added
          fixhdr is an extension of AT&T  System  V  provided  by  the
          Santa Cruz Operation.


     (printed 8/28/89)                                  FIXHDR(C)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026