.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.
Two input executables must be created from the same objects,
and have different loading addresses.
Each of the load address is specified by 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.
out.x
foo.x
from object files
a.o
and
b.o
:
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.
The generated executable is not so effective as that of Human68k native compiler.