Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Manual de usuario Pagina 14

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 24
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 13
10 Chapter 2. Basic Principles of the Tools
how the commands work; it is up to you to supply commands that update the target file properly. All
make does is execute the commands in the rule you have specified when the target file needs updating.
For more details, refer to Using make.
2.11. binutils, the GNU Binary Utilities
binutils, the GNU binary utilities, include ar, nm, objcopy, objdump, ranlib, size, strings,
and strip. For targets that use the ELF file format, there is also a tool called readelf.
There are three binary utilities, addr2line, windres, and dlltool, that are for use with Cygwin,
the porting layer application for Win32 development. The most important of the binary utilities are
objcopy and objdump.
objcopy is a tool to convert object and executable files. It can add and remove sections and sym-
bols, but the most commonly used feature is its ability to change the file format. For example, it can
convert an ELF or COFF format executable into an S-record or Intel I-Hex format file. These two
formats are often used in building ROM images for standalone and embedded systems. For more
information, refer to the objcopy Utility section in Using binutils, the Gnu Binary Utilities.
objdump is a tool to display information about the contents of an object or executable file. It can
display symbol tables and section headers and it can also act as a disassembler. Objdump also
knows about archives and libraries and can be used to display information on all of the object files
inside them. For more information, refer to the objdump Utility section in Using binutils, the Gnu
Binary Utilities.
A few of the more useful options for objdump include: -h (to display section headers), -t (to
display symbols), -p (to display private header information) and -d for assembler (to display a
disassembly). -d normally only disassembles sections that are expected to contain instructions. To
disassemble all sections, use -D instead. The option --prefix-addresses can be used to print a
complete address on each line of the disassembler’s output.
2.12. Using info, the Documentation Tools
info provides the sources for documentation for the GNU tools; it requires the following tools, in-
cluding the TeX tools.
Texinfo, texindex, texi2dvi
Documentation formatting tools. Texinfo requires TEX, the free technical documentation format-
ting tool written by Donald Knuth. Refer to Texinfo: The GNU Documentation Format (ISBN:
1-882114 67 1).
makeinfo, info
Online documentation tools.
man pages
Includes documentation on all the tools and programs in this release.
FLEX: A Fast Lexical Analyzer Generator
Generates lexical analyzers suitable for GCC and other compilers. Refer to Flex: The Lexical
Scanner Generator (ISBN: 1-882114 21 3).
Vista de pagina 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 23 24

Comentarios a estos manuales

Sin comentarios