DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

fixhdr(C)


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

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

Limitations

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.

Files

/usr/bin/fixhdr

See also

a.out(FP)

Standards conformance

fixhdr is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005