Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fixhdr(C) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

a.out(F)

86rel(F)



     FIXHDR(C)                XENIX System V                 FIXHDR(C)



     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 (UNIX
                    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, or 80286).

          -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



     Page 1                                           (printed 8/7/87)





     FIXHDR(C)                XENIX System V                 FIXHDR(C)



                    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, 286, 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.















     Page 2                                           (printed 8/7/87)



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