AOUT2HUX(1)

NAME
aout2hux - convert a.out executable to Human68k .x format

SYNOPSIS
aout2hux [-o output_file] aout1 loadaddr1 aout2 loadaddr2

DESCRIPTION
aout2hux reads two a.out(5) format executables with different load addresses and generate Human68k ‘.x’ format executable.

The input a.out files must be static OMAGIC / NMAGIC m68k executable. Two a.out executables must be created from the same objects, and have different loading addresses. Each of the load address must be a hexadecimal number. Load address shall be multiple of 4 for as(1) and ld(1) of NetBSD/m68k.

If the output file is not specified by -o option, the name out.x is used.

FILES
out.x
    default output file.

EXAMPLES
The following command sequence creates a Human68k executable foo.x from object files a.o and b.o:

    cc -N -nostdlib -static -Wl,-T,0        -o aout1 a.o b.o
    cc -N -nostdlib -static -Wl,-T,10203040 -o aout2 a.o b.o
    aout2hux -o foo.x aout1 0 aout2 10203040

This example uses 0x0 and 0x10203040 as the load addresses.

SEE ALSO
as(1), cc(1), ld(1), a.out(5)

BUGS
Symbol and debugging information is not converted.

The generated executable is not so effective as that of Human68k native compiler.

HISTORY
The aout2hux utility first appeared in NetBSD 1.4.