Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fixhdr(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

a.out(FP)

86rel(FP)


 fixhdr(C)                       19 June 1992                       fixhdr(C)


 Name

    fixhdr - change 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 for-
                     mat.

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

    -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(TM)
                     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 for-
                     mat.  The -c flag specifies the target CPU.  11 speci-
                     fies 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 for-
                     mat.

    -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(FP).

    -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 hexade-
                     cimal 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, or
                     others.

 File

    /usr/bin/fixhdr

 See also

    a.out(FP), 86rel(FP)

 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 origi-
    nal file if you need an unmodified version as fixhdr makes the modifica-
    tions directly to the file.

 Value added

    fixhdr is an extension of AT&T System V provided by The Santa Cruz Opera-
    tion, Inc.


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