image(1M) image(1M)
NAME
image - remove ELF header from binary
SYNOPSIS
image [-iI] [-o ofile] ifile
DESCRIPTION
image copies the loadable segments from the executable ELF object
file ifile and writes them to an output file as a simple binary
image. The default output filename is _imagefile. ifile is examined
to determine which segment has the lowest virtual address. This
segment is written with zero offset from the beginning of the output
file. Other segments are written at offsets corresponding to their
relative virtual addresses, leaving holes where necessary.
image will only work on statically linked binaries. It is envisaged
that it will be used to create bootstrap images for installation on
disk, or kernel images during the early stages of porting.
OPTIONS
-i print an information line consisting of three numbers: the
entry point, the lowest virtual address and the size of the
output file. The first two numbers are in hex, the last in
decimal
-I print the same three numbers as -i, but with descriptive labels
-o ofile
send output to the file ofile
SEE ALSO
hex(1), elf(3E).
7/91 Page 1