AELFLOD(1)

NAME
aelflod - ACK ELF loader

SYNOPSIS
aelflod [-anumber] [-b] [-h] [-l] [-mnumber] [-v] inputfile outputfile

DESCRIPTION
aelflod converts an absolute ack.out file into a simple binary memory dump wrapped up in an ELF executable. It is suitable for producing executables for operating systems such as Linux.

aelflod accepts the following flags:

-anumber
    Set the ABI in the ELF header to number. The default value is 3 for Linux.

-b  Write a big-endian ELF file.

-h  Print a help message and exit.

-l  Write a little-endian ELF file. This is the default.

-mnumber
    Set the machine type in the ELF header to number. The default value is 3 for Intel 386 (i386). Other values are 4 for Motorola 68000 (m68k) and 20 for PowerPC.

-fnumber
    Set the processor flags in the ELF header to number. The default value is 0.

-v  Be verbose.

The input file must contain exactly four segments: TEXT, ROM, DATA and BSS, in that order, all occupying contiguous memory. The file must have all references resolved and be linked to a fixed address. The fixed address must be at least 0x54 bytes greater than a page boundary, in order to make room for the ELF header itself.

aelflod will write out an ELF header followed by each segment, in order, ensuring that enough padding is inserted between each segment to keep the offsets correct. The created executable will contain just one ELF segment mapped rwx.

If the input file has symbols, then aelflod will convert the symbol table to ELF. The output file has ELF section headers if and only if it has symbols.

SEE ALSO
ack.out(5)