02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

D<br />

Utilities Reference<br />

aoutToBin<br />

NAME<br />

SYNOPSIS<br />

DESCRIPTION<br />

aoutToBin – extract text and data segments from a BSD a.out object module<br />

aoutToBin < inFile > outfile<br />

This tool extracts the text and data segments from a BSD a.out object module, on standard<br />

input, and writes it to standard output as a simple binary image.<br />

D<br />

aoutToBinDec<br />

NAME<br />

aoutToBinDec – extract text and data segments from a.out file on x86<br />

SYNOPSIS<br />

DESCRIPTION<br />

aoutToBinDec < inFile > outfile<br />

This tool extracts the text and data segments from a BSD a.out object module, on standard<br />

input, and writes it to standard output as a simple binary image.<br />

binToAsm<br />

NAME<br />

binToAsm – convert a binary file to an assembly file<br />

SYNOPSIS<br />

DESCRIPTION<br />

SEE ALSO<br />

binToAsm file<br />

This tool uses od to produce an ASCII hexadecimal representation of a binary file. The<br />

output of od is massaged to produce an assembly file which begins with the label<br />

_binArrayStart, and ends with the label _binArrayEnd.<br />

A C program would reference the data as follows:<br />

extern UCHAR binArrayStart []; /* binary image */<br />

extern UCHAR binArrayEnd; /* end of binary image */<br />

UNIX documentation for od<br />

439

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!