| AOUT2HUX(1) | General Commands Manual (x68k) | AOUT2HUX(1) | 
aout2hux —
| aout2hux | [ -ooutput_file]
      aout1 loadaddr1
      aout2 loadaddr2 | 
aout2hux reads two
  a.out(5) or ELF format
  executables with different load addresses and generates a Human68k
  ‘.x’ format executable.
If the input files are a.out, they must be static
    OMAGIC / NMAGIC m68k
    executables. If the input files are ELF, they must be static m68k
    executables. The two input executables must be created from the same
    objects, but use different load addresses. The load address is specified as
    a hexadecimal number. Load addresses are a multiple of 4 for
    as(1) and
    ld(1) from
    NetBSD/m68k.
If output_file is not specified with the
    -o option, the default name
    out.x is used.
cc -N -nostdlib -static -Wl,-Text,0 -o aout1 a.o b.o cc -N -nostdlib -static -Wl,-Text,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.
aout2hux utility first appeared in
  NetBSD 1.4.
The generated executable is not as effective as that of Human68k native compiler.
| September 1, 2019 | NetBSD 10.0 |