2016-12-13 20:54:38 +00:00
|
|
|
.TH AELFLOD 1 "$Revision$"
|
2007-04-23 23:40:10 +00:00
|
|
|
.SH NAME
|
|
|
|
aelflod \- ACK ELF loader
|
|
|
|
.SH SYNOPSIS
|
2016-12-13 20:54:38 +00:00
|
|
|
.B aelflod
|
2016-12-13 22:22:45 +00:00
|
|
|
[-a\fInumber\fP] [-b] [-h] [-l] [-m\fInumber\fP] [-v] inputfile outputfile
|
2007-04-23 23:40:10 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.I aelflod
|
|
|
|
converts an absolute ack.out file into a simple binary memory
|
2016-12-13 20:54:38 +00:00
|
|
|
dump wrapped up in an ELF executable.
|
|
|
|
It is suitable for producing executables for operating systems
|
|
|
|
such as Linux.
|
|
|
|
.PP
|
2016-12-13 22:22:45 +00:00
|
|
|
.I aelflod
|
|
|
|
accepts the following flags:
|
|
|
|
.TP
|
|
|
|
.BI \-a number
|
|
|
|
Set the ABI in the ELF header to \fInumber\fP.
|
|
|
|
The default value is \fI3\fP for Linux.
|
|
|
|
.TP
|
|
|
|
.B \-b
|
|
|
|
Write a big-endian ELF file.
|
|
|
|
.TP
|
|
|
|
.B \-h
|
|
|
|
Print a help message and exit.
|
|
|
|
.TP
|
|
|
|
.B \-l
|
|
|
|
Write a little-endian ELF file.
|
|
|
|
This is the default.
|
|
|
|
.TP
|
|
|
|
.BI \-m number
|
|
|
|
Set the machine type in the ELF header to \fInumber\fP.
|
|
|
|
The default value is \fI3\fP for Intel 386 (i386).
|
|
|
|
Other values are \fI4\fP for Motorola 68000 (m68k)
|
|
|
|
and \fI20\fP for PowerPC.
|
|
|
|
.TP
|
|
|
|
.B \-v
|
|
|
|
Be verbose.
|
|
|
|
.PP
|
2007-04-23 23:40:10 +00:00
|
|
|
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
|
2016-12-13 20:54:38 +00:00
|
|
|
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.
|
|
|
|
.PP
|
2016-12-13 22:22:45 +00:00
|
|
|
.I aelflod
|
|
|
|
will write out an ELF header followed by each segment, in order,
|
|
|
|
ensuring that enough padding is inserted between each segment
|
2016-12-13 20:54:38 +00:00
|
|
|
to keep the offsets correct.
|
2016-12-13 22:22:45 +00:00
|
|
|
The created executable will contain just one ELF segment mapped rwx.
|
|
|
|
.PP
|
|
|
|
If the input file has symbols, then
|
|
|
|
.I aelflod
|
|
|
|
will convert the symbol table to ELF.
|
|
|
|
The output file has ELF section headers if and only if it has symbols.
|
2007-04-23 23:40:10 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
ack.out(5)
|