1 This is binutils.info, produced by makeinfo version 4.8 from
5 * Binutils: (binutils). The GNU binary utilities.
6 * ar: (binutils)ar. Create, modify, and extract from archives
7 * nm: (binutils)nm. List symbols from object files
8 * objcopy: (binutils)objcopy. Copy and translate object files
9 * objdump: (binutils)objdump. Display information from object files
10 * ranlib: (binutils)ranlib. Generate index to archive contents
11 * readelf: (binutils)readelf. Display the contents of ELF format files.
12 * size: (binutils)size. List section sizes and total size
13 * strings: (binutils)strings. List printable strings from files
14 * strip: (binutils)strip. Discard symbols
15 * c++filt: (binutils)c++filt. Filter to demangle encoded C++ symbols
16 * cxxfilt: (binutils)c++filt. MS-DOS name for c++filt
17 * addr2line: (binutils)addr2line. Convert addresses to file and line
18 * nlmconv: (binutils)nlmconv. Converts object code into an NLM
19 * windres: (binutils)windres. Manipulate Windows resources
20 * windmc: (binutils)windmc. Generator for Windows message resources
21 * dlltool: (binutils)dlltool. Create files needed to build and use DLLs
24 Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
25 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
28 Permission is granted to copy, distribute and/or modify this document
29 under the terms of the GNU Free Documentation License, Version 1.1 or
30 any later version published by the Free Software Foundation; with no
31 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
32 Texts. A copy of the license is included in the section entitled "GNU
33 Free Documentation License".
36 File: binutils.info, Node: Top, Next: ar, Up: (dir)
41 This brief manual contains documentation for the GNU binary utilities
42 (GNU Binutils) version 2.17.90:
44 This document is distributed under the terms of the GNU Free
45 Documentation License. A copy of the license is included in the
46 section entitled "GNU Free Documentation License".
50 * ar:: Create, modify, and extract from archives
51 * nm:: List symbols from object files
52 * objcopy:: Copy and translate object files
53 * objdump:: Display information from object files
54 * ranlib:: Generate index to archive contents
55 * readelf:: Display the contents of ELF format files.
56 * size:: List section sizes and total size
57 * strings:: List printable strings from files
58 * strip:: Discard symbols
59 * c++filt:: Filter to demangle encoded C++ symbols
60 * cxxfilt: c++filt. MS-DOS name for c++filt
61 * addr2line:: Convert addresses to file and line
62 * nlmconv:: Converts object code into an NLM
63 * windres:: Manipulate Windows resources
64 * windmc:: Generator for Windows message resources
65 * dlltool:: Create files needed to build and use DLLs
66 * Common Options:: Command-line options for all utilities
67 * Selecting The Target System:: How these utilities determine the target.
68 * Reporting Bugs:: Reporting Bugs
69 * GNU Free Documentation License:: GNU Free Documentation License
70 * Binutils Index:: Binutils Index
73 File: binutils.info, Node: ar, Next: nm, Prev: Top, Up: Top
78 ar [-]P[MOD [RELPOS] [COUNT]] ARCHIVE [MEMBER...]
81 The GNU `ar' program creates, modifies, and extracts from archives.
82 An "archive" is a single file holding a collection of other files in a
83 structure that makes it possible to retrieve the original individual
84 files (called "members" of the archive).
86 The original files' contents, mode (permissions), timestamp, owner,
87 and group are preserved in the archive, and can be restored on
90 GNU `ar' can maintain archives whose members have names of any
91 length; however, depending on how `ar' is configured on your system, a
92 limit on member-name length may be imposed for compatibility with
93 archive formats maintained with other tools. If it exists, the limit
94 is often 15 characters (typical of formats related to a.out) or 16
95 characters (typical of formats related to coff).
97 `ar' is considered a binary utility because archives of this sort
98 are most often used as "libraries" holding commonly needed subroutines.
100 `ar' creates an index to the symbols defined in relocatable object
101 modules in the archive when you specify the modifier `s'. Once
102 created, this index is updated in the archive whenever `ar' makes a
103 change to its contents (save for the `q' update operation). An archive
104 with such an index speeds up linking to the library, and allows
105 routines in the library to call each other without regard to their
106 placement in the archive.
108 You may use `nm -s' or `nm --print-armap' to list this index table.
109 If an archive lacks the table, another form of `ar' called `ranlib' can
110 be used to add just the table.
112 GNU `ar' is designed to be compatible with two different facilities.
113 You can control its activity using command-line options, like the
114 different varieties of `ar' on Unix systems; or, if you specify the
115 single command-line option `-M', you can control it with a script
116 supplied via standard input, like the MRI "librarian" program.
120 * ar cmdline:: Controlling `ar' on the command line
121 * ar scripts:: Controlling `ar' with a script
124 File: binutils.info, Node: ar cmdline, Next: ar scripts, Up: ar
126 1.1 Controlling `ar' on the Command Line
127 ========================================
129 ar [`-X32_64'] [`-']P[MOD [RELPOS] [COUNT]] ARCHIVE [MEMBER...]
131 When you use `ar' in the Unix style, `ar' insists on at least two
132 arguments to execute: one keyletter specifying the _operation_
133 (optionally accompanied by other keyletters specifying _modifiers_),
134 and the archive name to act on.
136 Most operations can also accept further MEMBER arguments, specifying
137 particular files to operate on.
139 GNU `ar' allows you to mix the operation code P and modifier flags
140 MOD in any order, within the first command-line argument.
142 If you wish, you may begin the first command-line argument with a
145 The P keyletter specifies what operation to execute; it may be any
146 of the following, but you must specify only one of them:
149 _Delete_ modules from the archive. Specify the names of modules to
150 be deleted as MEMBER...; the archive is untouched if you specify
153 If you specify the `v' modifier, `ar' lists each module as it is
157 Use this operation to _move_ members in an archive.
159 The ordering of members in an archive can make a difference in how
160 programs are linked using the library, if a symbol is defined in
161 more than one member.
163 If no modifiers are used with `m', any members you name in the
164 MEMBER arguments are moved to the _end_ of the archive; you can
165 use the `a', `b', or `i' modifiers to move them to a specified
169 _Print_ the specified members of the archive, to the standard
170 output file. If the `v' modifier is specified, show the member
171 name before copying its contents to standard output.
173 If you specify no MEMBER arguments, all the files in the archive
177 _Quick append_; Historically, add the files MEMBER... to the end of
178 ARCHIVE, without checking for replacement.
180 The modifiers `a', `b', and `i' do _not_ affect this operation;
181 new members are always placed at the end of the archive.
183 The modifier `v' makes `ar' list each file as it is appended.
185 Since the point of this operation is speed, the archive's symbol
186 table index is not updated, even if it already existed; you can
187 use `ar s' or `ranlib' explicitly to update the symbol table index.
189 However, too many different systems assume quick append rebuilds
190 the index, so GNU `ar' implements `q' as a synonym for `r'.
193 Insert the files MEMBER... into ARCHIVE (with _replacement_). This
194 operation differs from `q' in that any previously existing members
195 are deleted if their names match those being added.
197 If one of the files named in MEMBER... does not exist, `ar'
198 displays an error message, and leaves undisturbed any existing
199 members of the archive matching that name.
201 By default, new members are added at the end of the file; but you
202 may use one of the modifiers `a', `b', or `i' to request placement
203 relative to some existing member.
205 The modifier `v' used with this operation elicits a line of output
206 for each file inserted, along with one of the letters `a' or `r'
207 to indicate whether the file was appended (no old member deleted)
211 Display a _table_ listing the contents of ARCHIVE, or those of the
212 files listed in MEMBER... that are present in the archive.
213 Normally only the member name is shown; if you also want to see
214 the modes (permissions), timestamp, owner, group, and size, you can
215 request that by also specifying the `v' modifier.
217 If you do not specify a MEMBER, all files in the archive are
220 If there is more than one file with the same name (say, `fie') in
221 an archive (say `b.a'), `ar t b.a fie' lists only the first
222 instance; to see them all, you must ask for a complete listing--in
223 our example, `ar t b.a'.
226 _Extract_ members (named MEMBER) from the archive. You can use
227 the `v' modifier with this operation, to request that `ar' list
228 each name as it extracts it.
230 If you do not specify a MEMBER, all files in the archive are
234 A number of modifiers (MOD) may immediately follow the P keyletter,
235 to specify variations on an operation's behavior:
238 Add new files _after_ an existing member of the archive. If you
239 use the modifier `a', the name of an existing archive member must
240 be present as the RELPOS argument, before the ARCHIVE
244 Add new files _before_ an existing member of the archive. If you
245 use the modifier `b', the name of an existing archive member must
246 be present as the RELPOS argument, before the ARCHIVE
247 specification. (same as `i').
250 _Create_ the archive. The specified ARCHIVE is always created if
251 it did not exist, when you request an update. But a warning is
252 issued unless you specify in advance that you expect to create it,
253 by using this modifier.
256 Truncate names in the archive. GNU `ar' will normally permit file
257 names of any length. This will cause it to create archives which
258 are not compatible with the native `ar' program on some systems.
259 If this is a concern, the `f' modifier may be used to truncate file
260 names when putting them in the archive.
263 Insert new files _before_ an existing member of the archive. If
264 you use the modifier `i', the name of an existing archive member
265 must be present as the RELPOS argument, before the ARCHIVE
266 specification. (same as `b').
269 This modifier is accepted but not used.
272 Uses the COUNT parameter. This is used if there are multiple
273 entries in the archive with the same name. Extract or delete
274 instance COUNT of the given name from the archive.
277 Preserve the _original_ dates of members when extracting them. If
278 you do not specify this modifier, files extracted from the archive
279 are stamped with the time of extraction.
282 Use the full path name when matching names in the archive. GNU
283 `ar' can not create an archive with a full path name (such archives
284 are not POSIX complaint), but other archive creators can. This
285 option will cause GNU `ar' to match file names using a complete
286 path name, which can be convenient when extracting a single file
287 from an archive created by another tool.
290 Write an object-file index into the archive, or update an existing
291 one, even if no other change is made to the archive. You may use
292 this modifier flag either with any operation, or alone. Running
293 `ar s' on an archive is equivalent to running `ranlib' on it.
296 Do not generate an archive symbol table. This can speed up
297 building a large library in several steps. The resulting archive
298 can not be used with the linker. In order to build a symbol
299 table, you must omit the `S' modifier on the last execution of
300 `ar', or you must run `ranlib' on the archive.
303 Normally, `ar r'... inserts all files listed into the archive. If
304 you would like to insert _only_ those of the files you list that
305 are newer than existing members of the same names, use this
306 modifier. The `u' modifier is allowed only for the operation `r'
307 (replace). In particular, the combination `qu' is not allowed,
308 since checking the timestamps would lose any speed advantage from
312 This modifier requests the _verbose_ version of an operation. Many
313 operations display additional information, such as filenames
314 processed, when the modifier `v' is appended.
317 This modifier shows the version number of `ar'.
319 `ar' ignores an initial option spelt `-X32_64', for compatibility
320 with AIX. The behaviour produced by this option is the default for GNU
321 `ar'. `ar' does not support any of the other `-X' options; in
322 particular, it does not support `-X32' which is the default for AIX
326 File: binutils.info, Node: ar scripts, Prev: ar cmdline, Up: ar
328 1.2 Controlling `ar' with a Script
329 ==================================
333 If you use the single command-line option `-M' with `ar', you can
334 control its operation with a rudimentary command language. This form
335 of `ar' operates interactively if standard input is coming directly
336 from a terminal. During interactive use, `ar' prompts for input (the
337 prompt is `AR >'), and continues executing even after errors. If you
338 redirect standard input to a script file, no prompts are issued, and
339 `ar' abandons execution (with a nonzero exit code) on any error.
341 The `ar' command language is _not_ designed to be equivalent to the
342 command-line options; in fact, it provides somewhat less control over
343 archives. The only purpose of the command language is to ease the
344 transition to GNU `ar' for developers who already have scripts written
345 for the MRI "librarian" program.
347 The syntax for the `ar' command language is straightforward:
348 * commands are recognized in upper or lower case; for example, `LIST'
349 is the same as `list'. In the following descriptions, commands are
350 shown in upper case for clarity.
352 * a single command may appear on each line; it is the first word on
355 * empty lines are allowed, and have no effect.
357 * comments are allowed; text after either of the characters `*' or
360 * Whenever you use a list of names as part of the argument to an `ar'
361 command, you can separate the individual names with either commas
362 or blanks. Commas are shown in the explanations below, for
365 * `+' is used as a line continuation character; if `+' appears at
366 the end of a line, the text on the following line is considered
367 part of the current command.
369 Here are the commands you can use in `ar' scripts, or when using
370 `ar' interactively. Three of them have special significance:
372 `OPEN' or `CREATE' specify a "current archive", which is a temporary
373 file required for most of the other commands.
375 `SAVE' commits the changes so far specified by the script. Prior to
376 `SAVE', commands affect only the temporary copy of the current archive.
379 `ADDLIB ARCHIVE (MODULE, MODULE, ... MODULE)'
380 Add all the contents of ARCHIVE (or, if specified, each named
381 MODULE from ARCHIVE) to the current archive.
383 Requires prior use of `OPEN' or `CREATE'.
385 `ADDMOD MEMBER, MEMBER, ... MEMBER'
386 Add each named MEMBER as a module in the current archive.
388 Requires prior use of `OPEN' or `CREATE'.
391 Discard the contents of the current archive, canceling the effect
392 of any operations since the last `SAVE'. May be executed (with no
393 effect) even if no current archive is specified.
396 Creates an archive, and makes it the current archive (required for
397 many other commands). The new archive is created with a temporary
398 name; it is not actually saved as ARCHIVE until you use `SAVE'.
399 You can overwrite existing archives; similarly, the contents of any
400 existing file named ARCHIVE will not be destroyed until `SAVE'.
402 `DELETE MODULE, MODULE, ... MODULE'
403 Delete each listed MODULE from the current archive; equivalent to
404 `ar -d ARCHIVE MODULE ... MODULE'.
406 Requires prior use of `OPEN' or `CREATE'.
408 `DIRECTORY ARCHIVE (MODULE, ... MODULE)'
409 `DIRECTORY ARCHIVE (MODULE, ... MODULE) OUTPUTFILE'
410 List each named MODULE present in ARCHIVE. The separate command
411 `VERBOSE' specifies the form of the output: when verbose output is
412 off, output is like that of `ar -t ARCHIVE MODULE...'. When
413 verbose output is on, the listing is like `ar -tv ARCHIVE
416 Output normally goes to the standard output stream; however, if you
417 specify OUTPUTFILE as a final argument, `ar' directs the output to
421 Exit from `ar', with a `0' exit code to indicate successful
422 completion. This command does not save the output file; if you
423 have changed the current archive since the last `SAVE' command,
424 those changes are lost.
426 `EXTRACT MODULE, MODULE, ... MODULE'
427 Extract each named MODULE from the current archive, writing them
428 into the current directory as separate files. Equivalent to `ar -x
431 Requires prior use of `OPEN' or `CREATE'.
434 Display full contents of the current archive, in "verbose" style
435 regardless of the state of `VERBOSE'. The effect is like `ar tv
436 ARCHIVE'. (This single command is a GNU `ar' enhancement, rather
437 than present for MRI compatibility.)
439 Requires prior use of `OPEN' or `CREATE'.
442 Opens an existing archive for use as the current archive (required
443 for many other commands). Any changes as the result of subsequent
444 commands will not actually affect ARCHIVE until you next use
447 `REPLACE MODULE, MODULE, ... MODULE'
448 In the current archive, replace each existing MODULE (named in the
449 `REPLACE' arguments) from files in the current working directory.
450 To execute this command without errors, both the file, and the
451 module in the current archive, must exist.
453 Requires prior use of `OPEN' or `CREATE'.
456 Toggle an internal flag governing the output from `DIRECTORY'.
457 When the flag is on, `DIRECTORY' output matches output from `ar
461 Commit your changes to the current archive, and actually save it
462 as a file with the name specified in the last `CREATE' or `OPEN'
465 Requires prior use of `OPEN' or `CREATE'.
469 File: binutils.info, Node: nm, Next: objcopy, Prev: ar, Up: Top
474 nm [`-a'|`--debug-syms'] [`-g'|`--extern-only']
475 [`-B'] [`-C'|`--demangle'[=STYLE]] [`-D'|`--dynamic']
476 [`-S'|`--print-size'] [`-s'|`--print-armap']
477 [`-A'|`-o'|`--print-file-name'][`--special-syms']
478 [`-n'|`-v'|`--numeric-sort'] [`-p'|`--no-sort']
479 [`-r'|`--reverse-sort'] [`--size-sort'] [`-u'|`--undefined-only']
480 [`-t' RADIX|`--radix='RADIX] [`-P'|`--portability']
481 [`--target='BFDNAME] [`-f'FORMAT|`--format='FORMAT]
482 [`--defined-only'] [`-l'|`--line-numbers'] [`--no-demangle']
483 [`-V'|`--version'] [`-X 32_64'] [`--help'] [OBJFILE...]
485 GNU `nm' lists the symbols from object files OBJFILE.... If no
486 object files are listed as arguments, `nm' assumes the file `a.out'.
488 For each symbol, `nm' shows:
490 * The symbol value, in the radix selected by options (see below), or
491 hexadecimal by default.
493 * The symbol type. At least the following types are used; others
494 are, as well, depending on the object file format. If lowercase,
495 the symbol is local; if uppercase, the symbol is global (external).
498 The symbol's value is absolute, and will not be changed by
502 The symbol is in the uninitialized data section (known as
506 The symbol is common. Common symbols are uninitialized data.
507 When linking, multiple common symbols may appear with the
508 same name. If the symbol is defined anywhere, the common
509 symbols are treated as undefined references. For more
510 details on common symbols, see the discussion of -warn-common
511 in *Note Linker options: (ld.info)Options.
514 The symbol is in the initialized data section.
517 The symbol is in an initialized data section for small
518 objects. Some object file formats permit more efficient
519 access to small data objects, such as a global int variable
520 as opposed to a large global array.
523 The symbol is an indirect reference to another symbol. This
524 is a GNU extension to the a.out object file format which is
528 The symbol is a debugging symbol.
531 The symbol is in a read only data section.
534 The symbol is in an uninitialized data section for small
538 The symbol is in the text (code) section.
541 The symbol is undefined.
544 The symbol is a weak object. When a weak defined symbol is
545 linked with a normal defined symbol, the normal defined
546 symbol is used with no error. When a weak undefined symbol
547 is linked and the symbol is not defined, the value of the
548 weak symbol becomes zero with no error.
551 The symbol is a weak symbol that has not been specifically
552 tagged as a weak object symbol. When a weak defined symbol
553 is linked with a normal defined symbol, the normal defined
554 symbol is used with no error. When a weak undefined symbol
555 is linked and the symbol is not defined, the value of the
556 symbol is determined in a system-specific manner without
557 error. On some systems, uppercase indicates that a default
558 value has been specified.
561 The symbol is a stabs symbol in an a.out object file. In
562 this case, the next values printed are the stabs other field,
563 the stabs desc field, and the stab type. Stabs symbols are
564 used to hold debugging information. For more information,
565 see *Note Stabs: (stabs.info)Top.
568 The symbol type is unknown, or object file format specific.
572 The long and short forms of options, shown here as alternatives, are
578 Precede each symbol by the name of the input file (or archive
579 member) in which it was found, rather than identifying the input
580 file once only, before all of its symbols.
584 Display all symbols, even debugger-only symbols; normally these
588 The same as `--format=bsd' (for compatibility with the MIPS `nm').
592 Decode ("demangle") low-level symbol names into user-level names.
593 Besides removing any initial underscore prepended by the system,
594 this makes C++ function names readable. Different compilers have
595 different mangling styles. The optional demangling style argument
596 can be used to choose an appropriate demangling style for your
597 compiler. *Note c++filt::, for more information on demangling.
600 Do not demangle low-level symbol names. This is the default.
604 Display the dynamic symbols rather than the normal symbols. This
605 is only meaningful for dynamic objects, such as certain types of
610 Use the output format FORMAT, which can be `bsd', `sysv', or
611 `posix'. The default is `bsd'. Only the first character of
612 FORMAT is significant; it can be either upper or lower case.
616 Display only external symbols.
620 For each symbol, use debugging information to try to find a
621 filename and line number. For a defined symbol, look for the line
622 number of the address of the symbol. For an undefined symbol,
623 look for the line number of a relocation entry which refers to the
624 symbol. If line number information can be found, print it after
625 the other symbol information.
630 Sort symbols numerically by their addresses, rather than
631 alphabetically by their names.
635 Do not bother to sort the symbols in any order; print them in the
640 Use the POSIX.2 standard output format instead of the default
641 format. Equivalent to `-f posix'.
645 Print size, not the value, of defined symbols for the `bsd' output
650 When listing symbols from archive members, include the index: a
651 mapping (stored in the archive by `ar' or `ranlib') of which
652 modules contain definitions for which names.
656 Reverse the order of the sort (whether numeric or alphabetic); let
660 Sort symbols by size. The size is computed as the difference
661 between the value of the symbol and the value of the symbol with
662 the next higher value. If the `bsd' output format is used the
663 size of the symbol is printed, rather than the value, and `-S'
664 must be used in order both size and value to be printed.
667 Display symbols which have a target-specific special meaning.
668 These symbols are usually used by the target for some special
669 processing and are not normally helpful when included included in
670 the normal symbol lists. For example for ARM targets this option
671 would skip the mapping symbols used to mark transitions between
672 ARM code, THUMB code and data.
676 Use RADIX as the radix for printing the symbol values. It must be
677 `d' for decimal, `o' for octal, or `x' for hexadecimal.
680 Specify an object code format other than your system's default
681 format. *Note Target Selection::, for more information.
685 Display only undefined symbols (those external to each object
689 Display only defined symbols for each object file.
693 Show the version number of `nm' and exit.
696 This option is ignored for compatibility with the AIX version of
697 `nm'. It takes one parameter which must be the string `32_64'.
698 The default mode of AIX `nm' corresponds to `-X 32', which is not
699 supported by GNU `nm'.
702 Show a summary of the options to `nm' and exit.
705 File: binutils.info, Node: objcopy, Next: objdump, Prev: nm, Up: Top
710 objcopy [`-F' BFDNAME|`--target='BFDNAME]
711 [`-I' BFDNAME|`--input-target='BFDNAME]
712 [`-O' BFDNAME|`--output-target='BFDNAME]
713 [`-B' BFDARCH|`--binary-architecture='BFDARCH]
715 [`-g'|`--strip-debug']
716 [`-K' SYMBOLNAME|`--keep-symbol='SYMBOLNAME]
717 [`-N' SYMBOLNAME|`--strip-symbol='SYMBOLNAME]
718 [`--strip-unneeded-symbol='SYMBOLNAME]
719 [`-G' SYMBOLNAME|`--keep-global-symbol='SYMBOLNAME]
720 [`--localize-hidden']
721 [`-L' SYMBOLNAME|`--localize-symbol='SYMBOLNAME]
722 [`--globalize-symbol='SYMBOLNAME]
723 [`-W' SYMBOLNAME|`--weaken-symbol='SYMBOLNAME]
725 [`-x'|`--discard-all']
726 [`-X'|`--discard-locals']
727 [`-b' BYTE|`--byte='BYTE]
728 [`-i' INTERLEAVE|`--interleave='INTERLEAVE]
729 [`-j' SECTIONNAME|`--only-section='SECTIONNAME]
730 [`-R' SECTIONNAME|`--remove-section='SECTIONNAME]
731 [`-p'|`--preserve-dates']
736 [`--adjust-start='INCR]
737 [`--change-addresses='INCR]
738 [`--change-section-address' SECTION{=,+,-}VAL]
739 [`--change-section-lma' SECTION{=,+,-}VAL]
740 [`--change-section-vma' SECTION{=,+,-}VAL]
741 [`--change-warnings'] [`--no-change-warnings']
742 [`--set-section-flags' SECTION=FLAGS]
743 [`--add-section' SECTIONNAME=FILENAME]
744 [`--rename-section' OLDNAME=NEWNAME[,FLAGS]]
745 [`--change-leading-char'] [`--remove-leading-char']
746 [`--reverse-bytes='NUM]
747 [`--srec-len='IVAL] [`--srec-forceS3']
748 [`--redefine-sym' OLD=NEW]
749 [`--redefine-syms='FILENAME]
751 [`--keep-symbols='FILENAME]
752 [`--strip-symbols='FILENAME]
753 [`--strip-unneeded-symbols='FILENAME]
754 [`--keep-global-symbols='FILENAME]
755 [`--localize-symbols='FILENAME]
756 [`--globalize-symbols='FILENAME]
757 [`--weaken-symbols='FILENAME]
758 [`--alt-machine-code='INDEX]
759 [`--prefix-symbols='STRING]
760 [`--prefix-sections='STRING]
761 [`--prefix-alloc-sections='STRING]
762 [`--add-gnu-debuglink='PATH-TO-FILE]
763 [`--keep-file-symbols']
764 [`--only-keep-debug']
772 [`--help'] [`--info']
775 The GNU `objcopy' utility copies the contents of an object file to
776 another. `objcopy' uses the GNU BFD Library to read and write the
777 object files. It can write the destination object file in a format
778 different from that of the source object file. The exact behavior of
779 `objcopy' is controlled by command-line options. Note that `objcopy'
780 should be able to copy a fully linked file between any two formats.
781 However, copying a relocatable object file between any two formats may
782 not work as expected.
784 `objcopy' creates temporary files to do its translations and deletes
785 them afterward. `objcopy' uses BFD to do all its translation work; it
786 has access to all the formats described in BFD and thus is able to
787 recognize most formats without being told explicitly. *Note BFD:
790 `objcopy' can be used to generate S-records by using an output
791 target of `srec' (e.g., use `-O srec').
793 `objcopy' can be used to generate a raw binary file by using an
794 output target of `binary' (e.g., use `-O binary'). When `objcopy'
795 generates a raw binary file, it will essentially produce a memory dump
796 of the contents of the input object file. All symbols and relocation
797 information will be discarded. The memory dump will start at the load
798 address of the lowest section copied into the output file.
800 When generating an S-record or a raw binary file, it may be helpful
801 to use `-S' to remove sections containing debugging information. In
802 some cases `-R' will be useful to remove sections which contain
803 information that is not needed by the binary file.
805 Note--`objcopy' is not able to change the endianness of its input
806 files. If the input format has an endianness (some formats do not),
807 `objcopy' can only copy the inputs into file formats that have the same
808 endianness or which have no endianness (e.g., `srec'). (However, see
809 the `--reverse-bytes' option.)
813 The input and output files, respectively. If you do not specify
814 OUTFILE, `objcopy' creates a temporary file and destructively
815 renames the result with the name of INFILE.
818 `--input-target=BFDNAME'
819 Consider the source file's object format to be BFDNAME, rather than
820 attempting to deduce it. *Note Target Selection::, for more
824 `--output-target=BFDNAME'
825 Write the output file using the object format BFDNAME. *Note
826 Target Selection::, for more information.
830 Use BFDNAME as the object format for both the input and the output
831 file; i.e., simply transfer data from source to destination with no
832 translation. *Note Target Selection::, for more information.
835 `--binary-architecture=BFDARCH'
836 Useful when transforming a raw binary input file into an object
837 file. In this case the output architecture can be set to BFDARCH.
838 This option will be ignored if the input file has a known BFDARCH.
839 You can access this binary data inside a program by referencing
840 the special symbols that are created by the conversion process.
841 These symbols are called _binary_OBJFILE_start,
842 _binary_OBJFILE_end and _binary_OBJFILE_size. e.g. you can
843 transform a picture file into an object file and then access it in
844 your code using these symbols.
847 `--only-section=SECTIONNAME'
848 Copy only the named section from the input file to the output file.
849 This option may be given more than once. Note that using this
850 option inappropriately may make the output file unusable.
853 `--remove-section=SECTIONNAME'
854 Remove any section named SECTIONNAME from the output file. This
855 option may be given more than once. Note that using this option
856 inappropriately may make the output file unusable.
860 Do not copy relocation and symbol information from the source file.
864 Do not copy debugging symbols or sections from the source file.
867 Strip all symbols that are not needed for relocation processing.
870 `--keep-symbol=SYMBOLNAME'
871 When stripping symbols, keep symbol SYMBOLNAME even if it would
872 normally be stripped. This option may be given more than once.
875 `--strip-symbol=SYMBOLNAME'
876 Do not copy symbol SYMBOLNAME from the source file. This option
877 may be given more than once.
879 `--strip-unneeded-symbol=SYMBOLNAME'
880 Do not copy symbol SYMBOLNAME from the source file unless it is
881 needed by a relocation. This option may be given more than once.
884 `--keep-global-symbol=SYMBOLNAME'
885 Keep only symbol SYMBOLNAME global. Make all other symbols local
886 to the file, so that they are not visible externally. This option
887 may be given more than once.
890 In an ELF object, mark all symbols that have hidden or internal
891 visibility as local. This option applies on top of
892 symbol-specific localization options such as `-L'.
895 `--localize-symbol=SYMBOLNAME'
896 Make symbol SYMBOLNAME local to the file, so that it is not
897 visible externally. This option may be given more than once.
900 `--weaken-symbol=SYMBOLNAME'
901 Make symbol SYMBOLNAME weak. This option may be given more than
904 `--globalize-symbol=SYMBOLNAME'
905 Give symbol SYMBOLNAME global scoping so that it is visible
906 outside of the file in which it is defined. This option may be
907 given more than once.
911 Permit regular expressions in SYMBOLNAMEs used in other command
912 line options. The question mark (?), asterisk (*), backslash (\)
913 and square brackets ([]) operators can be used anywhere in the
914 symbol name. If the first character of the symbol name is the
915 exclamation point (!) then the sense of the switch is reversed for
916 that symbol. For example:
920 would cause objcopy to weaken all symbols that start with "fo"
921 except for the symbol "foo".
925 Do not copy non-global symbols from the source file.
929 Do not copy compiler-generated local symbols. (These usually
930 start with `L' or `.'.)
934 Keep only every BYTEth byte of the input file (header data is not
935 affected). BYTE can be in the range from 0 to INTERLEAVE-1, where
936 INTERLEAVE is given by the `-i' or `--interleave' option, or the
937 default of 4. This option is useful for creating files to program
938 ROM. It is typically used with an `srec' output target.
941 `--interleave=INTERLEAVE'
942 Only copy one out of every INTERLEAVE bytes. Select which byte to
943 copy with the `-b' or `--byte' option. The default is 4.
944 `objcopy' ignores this option if you do not specify either `-b' or
949 Set the access and modification dates of the output file to be the
950 same as those of the input file.
953 Convert debugging information, if possible. This is not the
954 default because only certain debugging formats are supported, and
955 the conversion process can be time consuming.
958 Fill gaps between sections with VAL. This operation applies to
959 the _load address_ (LMA) of the sections. It is done by increasing
960 the size of the section with the lower address, and filling in the
961 extra space created with VAL.
964 Pad the output file up to the load address ADDRESS. This is done
965 by increasing the size of the last section. The extra space is
966 filled in with the value specified by `--gap-fill' (default zero).
969 Set the start address of the new file to VAL. Not all object file
970 formats support setting the start address.
972 `--change-start INCR'
973 `--adjust-start INCR'
974 Change the start address by adding INCR. Not all object file
975 formats support setting the start address.
977 `--change-addresses INCR'
979 Change the VMA and LMA addresses of all sections, as well as the
980 start address, by adding INCR. Some object file formats do not
981 permit section addresses to be changed arbitrarily. Note that
982 this does not relocate the sections; if the program expects
983 sections to be loaded at a certain address, and this option is
984 used to change the sections such that they are loaded at a
985 different address, the program may fail.
987 `--change-section-address SECTION{=,+,-}VAL'
988 `--adjust-section-vma SECTION{=,+,-}VAL'
989 Set or change both the VMA address and the LMA address of the named
990 SECTION. If `=' is used, the section address is set to VAL.
991 Otherwise, VAL is added to or subtracted from the section address.
992 See the comments under `--change-addresses', above. If SECTION
993 does not exist in the input file, a warning will be issued, unless
994 `--no-change-warnings' is used.
996 `--change-section-lma SECTION{=,+,-}VAL'
997 Set or change the LMA address of the named SECTION. The LMA
998 address is the address where the section will be loaded into
999 memory at program load time. Normally this is the same as the VMA
1000 address, which is the address of the section at program run time,
1001 but on some systems, especially those where a program is held in
1002 ROM, the two can be different. If `=' is used, the section
1003 address is set to VAL. Otherwise, VAL is added to or subtracted
1004 from the section address. See the comments under
1005 `--change-addresses', above. If SECTION does not exist in the
1006 input file, a warning will be issued, unless
1007 `--no-change-warnings' is used.
1009 `--change-section-vma SECTION{=,+,-}VAL'
1010 Set or change the VMA address of the named SECTION. The VMA
1011 address is the address where the section will be located once the
1012 program has started executing. Normally this is the same as the
1013 LMA address, which is the address where the section will be loaded
1014 into memory, but on some systems, especially those where a program
1015 is held in ROM, the two can be different. If `=' is used, the
1016 section address is set to VAL. Otherwise, VAL is added to or
1017 subtracted from the section address. See the comments under
1018 `--change-addresses', above. If SECTION does not exist in the
1019 input file, a warning will be issued, unless
1020 `--no-change-warnings' is used.
1024 If `--change-section-address' or `--change-section-lma' or
1025 `--change-section-vma' is used, and the named section does not
1026 exist, issue a warning. This is the default.
1028 `--no-change-warnings'
1029 `--no-adjust-warnings'
1030 Do not issue a warning if `--change-section-address' or
1031 `--adjust-section-lma' or `--adjust-section-vma' is used, even if
1032 the named section does not exist.
1034 `--set-section-flags SECTION=FLAGS'
1035 Set the flags for the named section. The FLAGS argument is a
1036 comma separated string of flag names. The recognized names are
1037 `alloc', `contents', `load', `noload', `readonly', `code', `data',
1038 `rom', `share', and `debug'. You can set the `contents' flag for
1039 a section which does not have contents, but it is not meaningful
1040 to clear the `contents' flag of a section which does have
1041 contents-just remove the section instead. Not all flags are
1042 meaningful for all object file formats.
1044 `--add-section SECTIONNAME=FILENAME'
1045 Add a new section named SECTIONNAME while copying the file. The
1046 contents of the new section are taken from the file FILENAME. The
1047 size of the section will be the size of the file. This option only
1048 works on file formats which can support sections with arbitrary
1051 `--rename-section OLDNAME=NEWNAME[,FLAGS]'
1052 Rename a section from OLDNAME to NEWNAME, optionally changing the
1053 section's flags to FLAGS in the process. This has the advantage
1054 over usng a linker script to perform the rename in that the output
1055 stays as an object file and does not become a linked executable.
1057 This option is particularly helpful when the input format is
1058 binary, since this will always create a section called .data. If
1059 for example, you wanted instead to create a section called .rodata
1060 containing binary data you could use the following command line to
1063 objcopy -I binary -O <output_format> -B <architecture> \
1064 --rename-section .data=.rodata,alloc,load,readonly,data,contents \
1065 <input_binary_file> <output_object_file>
1067 `--change-leading-char'
1068 Some object file formats use special characters at the start of
1069 symbols. The most common such character is underscore, which
1070 compilers often add before every symbol. This option tells
1071 `objcopy' to change the leading character of every symbol when it
1072 converts between object file formats. If the object file formats
1073 use the same leading character, this option has no effect.
1074 Otherwise, it will add a character, or remove a character, or
1075 change a character, as appropriate.
1077 `--remove-leading-char'
1078 If the first character of a global symbol is a special symbol
1079 leading character used by the object file format, remove the
1080 character. The most common symbol leading character is
1081 underscore. This option will remove a leading underscore from all
1082 global symbols. This can be useful if you want to link together
1083 objects of different file formats with different conventions for
1084 symbol names. This is different from `--change-leading-char'
1085 because it always changes the symbol name when appropriate,
1086 regardless of the object file format of the output file.
1088 `--reverse-bytes=NUM'
1089 Reverse the bytes in a section with output contents. A section
1090 length must be evenly divisible by the value given in order for
1091 the swap to be able to take place. Reversing takes place before
1092 the interleaving is performed.
1094 This option is used typically in generating ROM images for
1095 problematic target systems. For example, on some target boards,
1096 the 32-bit words fetched from 8-bit ROMs are re-assembled in
1097 little-endian byte order regardless of the CPU byte order.
1098 Depending on the programming model, the endianness of the ROM may
1099 need to be modified.
1101 Consider a simple file with a section containing the following
1102 eight bytes: `12345678'.
1104 Using `--reverse-bytes=2' for the above example, the bytes in the
1105 output file would be ordered `21436587'.
1107 Using `--reverse-bytes=4' for the above example, the bytes in the
1108 output file would be ordered `43218765'.
1110 By using `--reverse-bytes=2' for the above example, followed by
1111 `--reverse-bytes=4' on the output file, the bytes in the second
1112 output file would be ordered `34127856'.
1115 Meaningful only for srec output. Set the maximum length of the
1116 Srecords being produced to IVAL. This length covers both address,
1117 data and crc fields.
1120 Meaningful only for srec output. Avoid generation of S1/S2
1121 records, creating S3-only record format.
1123 `--redefine-sym OLD=NEW'
1124 Change the name of a symbol OLD, to NEW. This can be useful when
1125 one is trying link two things together for which you have no
1126 source, and there are name collisions.
1128 `--redefine-syms=FILENAME'
1129 Apply `--redefine-sym' to each symbol pair "OLD NEW" listed in the
1130 file FILENAME. FILENAME is simply a flat file, with one symbol
1131 pair per line. Line comments may be introduced by the hash
1132 character. This option may be given more than once.
1135 Change all global symbols in the file to be weak. This can be
1136 useful when building an object which will be linked against other
1137 objects using the `-R' option to the linker. This option is only
1138 effective when using an object file format which supports weak
1141 `--keep-symbols=FILENAME'
1142 Apply `--keep-symbol' option to each symbol listed in the file
1143 FILENAME. FILENAME is simply a flat file, with one symbol name
1144 per line. Line comments may be introduced by the hash character.
1145 This option may be given more than once.
1147 `--strip-symbols=FILENAME'
1148 Apply `--strip-symbol' option to each symbol listed in the file
1149 FILENAME. FILENAME is simply a flat file, with one symbol name
1150 per line. Line comments may be introduced by the hash character.
1151 This option may be given more than once.
1153 `--strip-unneeded-symbols=FILENAME'
1154 Apply `--strip-unneeded-symbol' option to each symbol listed in
1155 the file FILENAME. FILENAME is simply a flat file, with one
1156 symbol name per line. Line comments may be introduced by the hash
1157 character. This option may be given more than once.
1159 `--keep-global-symbols=FILENAME'
1160 Apply `--keep-global-symbol' option to each symbol listed in the
1161 file FILENAME. FILENAME is simply a flat file, with one symbol
1162 name per line. Line comments may be introduced by the hash
1163 character. This option may be given more than once.
1165 `--localize-symbols=FILENAME'
1166 Apply `--localize-symbol' option to each symbol listed in the file
1167 FILENAME. FILENAME is simply a flat file, with one symbol name
1168 per line. Line comments may be introduced by the hash character.
1169 This option may be given more than once.
1171 `--globalize-symbols=FILENAME'
1172 Apply `--globalize-symbol' option to each symbol listed in the file
1173 FILENAME. FILENAME is simply a flat file, with one symbol name
1174 per line. Line comments may be introduced by the hash character.
1175 This option may be given more than once.
1177 `--weaken-symbols=FILENAME'
1178 Apply `--weaken-symbol' option to each symbol listed in the file
1179 FILENAME. FILENAME is simply a flat file, with one symbol name
1180 per line. Line comments may be introduced by the hash character.
1181 This option may be given more than once.
1183 `--alt-machine-code=INDEX'
1184 If the output architecture has alternate machine codes, use the
1185 INDEXth code instead of the default one. This is useful in case a
1186 machine is assigned an official code and the tool-chain adopts the
1187 new code, but other applications still depend on the original code
1188 being used. For ELF based architectures if the INDEX alternative
1189 does not exist then the value is treated as an absolute number to
1190 be stored in the e_machine field of the ELF header.
1193 Mark the output text as writable. This option isn't meaningful
1194 for all object file formats.
1197 Make the output text write protected. This option isn't
1198 meaningful for all object file formats.
1201 Mark the output file as demand paged. This option isn't
1202 meaningful for all object file formats.
1205 Mark the output file as impure. This option isn't meaningful for
1206 all object file formats.
1208 `--prefix-symbols=STRING'
1209 Prefix all symbols in the output file with STRING.
1211 `--prefix-sections=STRING'
1212 Prefix all section names in the output file with STRING.
1214 `--prefix-alloc-sections=STRING'
1215 Prefix all the names of all allocated sections in the output file
1218 `--add-gnu-debuglink=PATH-TO-FILE'
1219 Creates a .gnu_debuglink section which contains a reference to
1220 PATH-TO-FILE and adds it to the output file.
1222 `--keep-file-symbols'
1223 When stripping a file, perhaps with `--strip-debug' or
1224 `--strip-unneeded', retain any symbols specifying source file
1225 names, which would otherwise get stripped.
1228 Strip a file, removing contents of any sections that would not be
1229 stripped by `--strip-debug' and leaving the debugging sections
1230 intact. In ELF files, this preserves all note sections in the
1233 The intention is that this option will be used in conjunction with
1234 `--add-gnu-debuglink' to create a two part executable. One a
1235 stripped binary which will occupy less space in RAM and in a
1236 distribution and the second a debugging information file which is
1237 only needed if debugging abilities are required. The suggested
1238 procedure to create these files is as follows:
1240 1. Link the executable as normal. Assuming that is is called
1243 2. Run `objcopy --only-keep-debug foo foo.dbg' to create a file
1244 containing the debugging info.
1246 3. Run `objcopy --strip-debug foo' to create a stripped
1249 4. Run `objcopy --add-gnu-debuglink=foo.dbg foo' to add a link
1250 to the debugging info into the stripped executable.
1252 Note - the choice of `.dbg' as an extension for the debug info
1253 file is arbitrary. Also the `--only-keep-debug' step is optional.
1254 You could instead do this:
1256 1. Link the executable as normal.
1258 2. Copy `foo' to `foo.full'
1260 3. Run `objcopy --strip-debug foo'
1262 4. Run `objcopy --add-gnu-debuglink=foo.full foo'
1264 i.e., the file pointed to by the `--add-gnu-debuglink' can be the
1265 full executable. It does not have to be a file created by the
1266 `--only-keep-debug' switch.
1268 Note - this switch is only intended for use on fully linked files.
1269 It does not make sense to use it on object files where the
1270 debugging information may be incomplete. Besides the
1271 gnu_debuglink feature currently only supports the presence of one
1272 filename containing debugging information, not multiple filenames
1273 on a one-per-object-file basis.
1276 Keep the file's section flags and symbols but remove all section
1277 data. Specifically, the option:
1279 * sets the virtual and load addresses of every section to zero;
1281 * removes the contents of all sections;
1283 * sets the size of every section to zero; and
1285 * sets the file's start address to zero.
1287 This option is used to build a `.sym' file for a VxWorks kernel.
1288 It can also be a useful way of reducing the size of a
1289 `--just-symbols' linker input file.
1293 Show the version number of `objcopy'.
1297 Verbose output: list all object files modified. In the case of
1298 archives, `objcopy -V' lists all members of the archive.
1301 Show a summary of the options to `objcopy'.
1304 Display a list showing all architectures and object formats
1308 File: binutils.info, Node: objdump, Next: ranlib, Prev: objcopy, Up: Top
1313 objdump [`-a'|`--archive-headers']
1314 [`-b' BFDNAME|`--target=BFDNAME']
1315 [`-C'|`--demangle'[=STYLE] ]
1316 [`-d'|`--disassemble']
1317 [`-D'|`--disassemble-all']
1318 [`-z'|`--disassemble-zeroes']
1319 [`-EB'|`-EL'|`--endian='{big | little }]
1320 [`-f'|`--file-headers']
1321 [`--file-start-context']
1322 [`-g'|`--debugging']
1323 [`-e'|`--debugging-tags']
1324 [`-h'|`--section-headers'|`--headers']
1326 [`-j' SECTION|`--section='SECTION]
1327 [`-l'|`--line-numbers']
1329 [`-m' MACHINE|`--architecture='MACHINE]
1330 [`-M' OPTIONS|`--disassembler-options='OPTIONS]
1331 [`-p'|`--private-headers']
1333 [`-R'|`--dynamic-reloc']
1334 [`-s'|`--full-contents']
1338 [`-T'|`--dynamic-syms']
1339 [`-x'|`--all-headers']
1341 [`--start-address='ADDRESS]
1342 [`--stop-address='ADDRESS]
1343 [`--prefix-addresses']
1344 [`--[no-]show-raw-insn']
1345 [`--adjust-vma='OFFSET]
1351 `objdump' displays information about one or more object files. The
1352 options control what particular information to display. This
1353 information is mostly useful to programmers who are working on the
1354 compilation tools, as opposed to programmers who just want their
1355 program to compile and work.
1357 OBJFILE... are the object files to be examined. When you specify
1358 archives, `objdump' shows information on each of the member object
1361 The long and short forms of options, shown here as alternatives, are
1362 equivalent. At least one option from the list
1363 `-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-r,-R,-s,-S,-t,-T,-V,-x' must be given.
1367 If any of the OBJFILE files are archives, display the archive
1368 header information (in a format similar to `ls -l'). Besides the
1369 information you could list with `ar tv', `objdump -a' shows the
1370 object file format of each archive member.
1372 `--adjust-vma=OFFSET'
1373 When dumping information, first add OFFSET to all the section
1374 addresses. This is useful if the section addresses do not
1375 correspond to the symbol table, which can happen when putting
1376 sections at particular addresses when using a format which can not
1377 represent section addresses, such as a.out.
1381 Specify that the object-code format for the object files is
1382 BFDNAME. This option may not be necessary; OBJDUMP can
1383 automatically recognize many formats.
1386 objdump -b oasys -m vax -h fu.o
1387 displays summary information from the section headers (`-h') of
1388 `fu.o', which is explicitly identified (`-m') as a VAX object file
1389 in the format produced by Oasys compilers. You can list the
1390 formats available with the `-i' option. *Note Target Selection::,
1391 for more information.
1394 `--demangle[=STYLE]'
1395 Decode ("demangle") low-level symbol names into user-level names.
1396 Besides removing any initial underscore prepended by the system,
1397 this makes C++ function names readable. Different compilers have
1398 different mangling styles. The optional demangling style argument
1399 can be used to choose an appropriate demangling style for your
1400 compiler. *Note c++filt::, for more information on demangling.
1404 Display debugging information. This attempts to parse debugging
1405 information stored in the file and print it out using a C like
1406 syntax. Only certain types of debugging information have been
1407 implemented. Some other types are supported by `readelf -w'.
1412 Like `-g', but the information is generated in a format compatible
1417 Display the assembler mnemonics for the machine instructions from
1418 OBJFILE. This option only disassembles those sections which are
1419 expected to contain instructions.
1423 Like `-d', but disassemble the contents of all sections, not just
1424 those expected to contain instructions.
1426 `--prefix-addresses'
1427 When disassembling, print the complete address on each line. This
1428 is the older disassembly format.
1432 `--endian={big|little}'
1433 Specify the endianness of the object files. This only affects
1434 disassembly. This can be useful when disassembling a file format
1435 which does not describe endianness information, such as S-records.
1439 Display summary information from the overall header of each of the
1442 `--file-start-context'
1443 Specify that when displaying interlisted source code/disassembly
1444 (assumes `-S') from a file that has not yet been displayed, extend
1445 the context to the start of the file.
1450 Display summary information from the section headers of the object
1453 File segments may be relocated to nonstandard addresses, for
1454 example by using the `-Ttext', `-Tdata', or `-Tbss' options to
1455 `ld'. However, some object file formats, such as a.out, do not
1456 store the starting address of the file segments. In those
1457 situations, although `ld' relocates the sections correctly, using
1458 `objdump -h' to list the file section headers cannot show the
1459 correct addresses. Instead, it shows the usual addresses, which
1460 are implicit for the target.
1464 Print a summary of the options to `objdump' and exit.
1468 Display a list showing all architectures and object formats
1469 available for specification with `-b' or `-m'.
1473 Display information only for section NAME.
1477 Label the display (using debugging information) with the filename
1478 and source line numbers corresponding to the object code or relocs
1479 shown. Only useful with `-d', `-D', or `-r'.
1482 `--architecture=MACHINE'
1483 Specify the architecture to use when disassembling object files.
1484 This can be useful when disassembling object files which do not
1485 describe architecture information, such as S-records. You can
1486 list the available architectures with the `-i' option.
1489 `--disassembler-options=OPTIONS'
1490 Pass target specific information to the disassembler. Only
1491 supported on some targets. If it is necessary to specify more
1492 than one disassembler option then multiple `-M' options can be
1493 used or can be placed together into a comma separated list.
1495 If the target is an ARM architecture then this switch can be used
1496 to select which register name set is used during disassembler.
1497 Specifying `-M reg-names-std' (the default) will select the
1498 register names as used in ARM's instruction set documentation, but
1499 with register 13 called 'sp', register 14 called 'lr' and register
1500 15 called 'pc'. Specifying `-M reg-names-apcs' will select the
1501 name set used by the ARM Procedure Call Standard, whilst
1502 specifying `-M reg-names-raw' will just use `r' followed by the
1505 There are also two variants on the APCS register naming scheme
1506 enabled by `-M reg-names-atpcs' and `-M reg-names-special-atpcs'
1507 which use the ARM/Thumb Procedure Call Standard naming
1508 conventions. (Either with the normal register names or the
1509 special register names).
1511 This option can also be used for ARM architectures to force the
1512 disassembler to interpret all instructions as Thumb instructions by
1513 using the switch `--disassembler-options=force-thumb'. This can be
1514 useful when attempting to disassemble thumb code produced by other
1517 For the x86, some of the options duplicate functions of the `-m'
1518 switch, but allow finer grained control. Multiple selections from
1519 the following may be specified as a comma separated string.
1520 `x86-64', `i386' and `i8086' select disassembly for the given
1521 architecture. `intel' and `att' select between intel syntax mode
1522 and AT&T syntax mode. `addr64', `addr32', `addr16', `data32' and
1523 `data16' specify the default address size and operand size. These
1524 four options will be overridden if `x86-64', `i386' or `i8086'
1525 appear later in the option string. Lastly, `suffix', when in AT&T
1526 mode, instructs the disassembler to print a mnemonic suffix even
1527 when the suffix could be inferred by the operands.
1529 For PPC, `booke', `booke32' and `booke64' select disassembly of
1530 BookE instructions. `32' and `64' select PowerPC and PowerPC64
1531 disassembly, respectively. `e300' selects disassembly for the
1532 e300 family. `440' selects disassembly for the PowerPC 440.
1534 For MIPS, this option controls the printing of instruction mnemonic
1535 names and register names in disassembled instructions. Multiple
1536 selections from the following may be specified as a comma separated
1537 string, and invalid options are ignored:
1540 Print the 'raw' instruction mnemonic instead of some pseudo
1541 instruction mnemonic. I.e., print 'daddu' or 'or' instead of
1542 'move', 'sll' instead of 'nop', etc.
1545 Print GPR (general-purpose register) names as appropriate for
1546 the specified ABI. By default, GPR names are selected
1547 according to the ABI of the binary being disassembled.
1550 Print FPR (floating-point register) names as appropriate for
1551 the specified ABI. By default, FPR numbers are printed
1555 Print CP0 (system control coprocessor; coprocessor 0)
1556 register names as appropriate for the CPU or architecture
1557 specified by ARCH. By default, CP0 register names are
1558 selected according to the architecture and CPU of the binary
1562 Print HWR (hardware register, used by the `rdhwr'
1563 instruction) names as appropriate for the CPU or architecture
1564 specified by ARCH. By default, HWR names are selected
1565 according to the architecture and CPU of the binary being
1569 Print GPR and FPR names as appropriate for the selected ABI.
1572 Print CPU-specific register names (CP0 register and HWR names)
1573 as appropriate for the selected CPU or architecture.
1575 For any of the options listed above, ABI or ARCH may be specified
1576 as `numeric' to have numbers printed rather than names, for the
1577 selected types of registers. You can list the available values of
1578 ABI and ARCH using the `--help' option.
1580 For VAX, you can specify function entry addresses with `-M
1581 entry:0xf00ba'. You can use this multiple times to properly
1582 disassemble VAX binary files that don't contain symbol tables (like
1583 ROM dumps). In these cases, the function entry mask would
1584 otherwise be decoded as VAX instructions, which would probably
1585 lead the rest of the function being wrongly disassembled.
1589 Print information that is specific to the object file format. The
1590 exact information printed depends upon the object file format.
1591 For some object file formats, no additional information is printed.
1595 Print the relocation entries of the file. If used with `-d' or
1596 `-D', the relocations are printed interspersed with the
1601 Print the dynamic relocation entries of the file. This is only
1602 meaningful for dynamic objects, such as certain types of shared
1607 Display the full contents of any sections requested. By default
1608 all non-empty sections are displayed.
1612 Display source code intermixed with disassembly, if possible.
1616 When disassembling instructions, print the instruction in hex as
1617 well as in symbolic form. This is the default except when
1618 `--prefix-addresses' is used.
1620 `--no-show-raw-insn'
1621 When disassembling instructions, do not print the instruction
1622 bytes. This is the default when `--prefix-addresses' is used.
1626 Displays the contents of the DWARF debug sections in the file, if
1631 Display the full contents of any sections requested. Display the
1632 contents of the .stab and .stab.index and .stab.excl sections from
1633 an ELF file. This is only useful on systems (such as Solaris 2.0)
1634 in which `.stab' debugging symbol-table entries are carried in an
1635 ELF section. In most other file formats, debugging symbol-table
1636 entries are interleaved with linkage symbols, and are visible in
1637 the `--syms' output. For more information on stabs symbols, see
1638 *Note Stabs: (stabs.info)Top.
1640 `--start-address=ADDRESS'
1641 Start displaying data at the specified address. This affects the
1642 output of the `-d', `-r' and `-s' options.
1644 `--stop-address=ADDRESS'
1645 Stop displaying data at the specified address. This affects the
1646 output of the `-d', `-r' and `-s' options.
1650 Print the symbol table entries of the file. This is similar to
1651 the information provided by the `nm' program.
1655 Print the dynamic symbol table entries of the file. This is only
1656 meaningful for dynamic objects, such as certain types of shared
1657 libraries. This is similar to the information provided by the `nm'
1658 program when given the `-D' (`--dynamic') option.
1661 When displaying symbols include those which the target considers
1662 to be special in some way and which would not normally be of
1663 interest to the user.
1667 Print the version number of `objdump' and exit.
1671 Display all available header information, including the symbol
1672 table and relocation entries. Using `-x' is equivalent to
1673 specifying all of `-a -f -h -p -r -t'.
1677 Format some lines for output devices that have more than 80
1678 columns. Also do not truncate symbol names when they are
1682 `--disassemble-zeroes'
1683 Normally the disassembly output will skip blocks of zeroes. This
1684 option directs the disassembler to disassemble those blocks, just
1685 like any other data.
1688 File: binutils.info, Node: ranlib, Next: readelf, Prev: objdump, Up: Top
1693 ranlib [`-vV'] ARCHIVE
1695 `ranlib' generates an index to the contents of an archive and stores
1696 it in the archive. The index lists each symbol defined by a member of
1697 an archive that is a relocatable object file.
1699 You may use `nm -s' or `nm --print-armap' to list this index.
1701 An archive with such an index speeds up linking to the library and
1702 allows routines in the library to call each other without regard to
1703 their placement in the archive.
1705 The GNU `ranlib' program is another form of GNU `ar'; running
1706 `ranlib' is completely equivalent to executing `ar -s'. *Note ar::.
1711 Show the version number of `ranlib'.
1714 File: binutils.info, Node: size, Next: strings, Prev: readelf, Up: Top
1719 size [`-A'|`-B'|`--format='COMPATIBILITY]
1721 [`-d'|`-o'|`-x'|`--radix='NUMBER]
1724 [`--target='BFDNAME] [`-V'|`--version']
1727 The GNU `size' utility lists the section sizes--and the total
1728 size--for each of the object or archive files OBJFILE in its argument
1729 list. By default, one line of output is generated for each object file
1730 or each module in an archive.
1732 OBJFILE... are the object files to be examined. If none are
1733 specified, the file `a.out' will be used.
1735 The command line options have the following meanings:
1739 `--format=COMPATIBILITY'
1740 Using one of these options, you can choose whether the output from
1741 GNU `size' resembles output from System V `size' (using `-A', or
1742 `--format=sysv'), or Berkeley `size' (using `-B', or
1743 `--format=berkeley'). The default is the one-line format similar
1746 Here is an example of the Berkeley (default) format of output from
1748 $ size --format=Berkeley ranlib size
1749 text data bss dec hex filename
1750 294880 81920 11592 388392 5ed28 ranlib
1751 294880 81920 11888 388688 5ee50 size
1753 This is the same data, but displayed closer to System V
1756 $ size --format=SysV ranlib size
1773 Show a summary of acceptable arguments and options.
1779 Using one of these options, you can control whether the size of
1780 each section is given in decimal (`-d', or `--radix=10'); octal
1781 (`-o', or `--radix=8'); or hexadecimal (`-x', or `--radix=16').
1782 In `--radix=NUMBER', only the three values (8, 10, 16) are
1783 supported. The total size is always given in two radices; decimal
1784 and hexadecimal for `-d' or `-x' output, or octal and hexadecimal
1785 if you're using `-o'.
1788 Print total size of common symbols in each file. When using
1789 Berkeley format these are included in the bss size.
1793 Show totals of all objects listed (Berkeley format listing mode
1797 Specify that the object-code format for OBJFILE is BFDNAME. This
1798 option may not be necessary; `size' can automatically recognize
1799 many formats. *Note Target Selection::, for more information.
1803 Display the version number of `size'.
1806 File: binutils.info, Node: strings, Next: strip, Prev: size, Up: Top
1811 strings [`-afov'] [`-'MIN-LEN]
1812 [`-n' MIN-LEN] [`--bytes='MIN-LEN]
1813 [`-t' RADIX] [`--radix='RADIX]
1814 [`-e' ENCODING] [`--encoding='ENCODING]
1815 [`-'] [`--all'] [`--print-file-name']
1816 [`-T' BFDNAME] [`--target='BFDNAME]
1817 [`--help'] [`--version'] FILE...
1819 For each FILE given, GNU `strings' prints the printable character
1820 sequences that are at least 4 characters long (or the number given with
1821 the options below) and are followed by an unprintable character. By
1822 default, it only prints the strings from the initialized and loaded
1823 sections of object files; for other types of files, it prints the
1824 strings from the whole file.
1826 `strings' is mainly useful for determining the contents of non-text
1832 Do not scan only the initialized and loaded sections of object
1833 files; scan the whole files.
1837 Print the name of the file before each string.
1840 Print a summary of the program usage on the standard output and
1846 Print sequences of characters that are at least MIN-LEN characters
1847 long, instead of the default 4.
1850 Like `-t o'. Some other versions of `strings' have `-o' act like
1851 `-t d' instead. Since we can not be compatible with both ways, we
1856 Print the offset within the file before each string. The single
1857 character argument specifies the radix of the offset--`o' for
1858 octal, `x' for hexadecimal, or `d' for decimal.
1861 `--encoding=ENCODING'
1862 Select the character encoding of the strings that are to be found.
1863 Possible values for ENCODING are: `s' = single-7-bit-byte
1864 characters (ASCII, ISO 8859, etc., default), `S' =
1865 single-8-bit-byte characters, `b' = 16-bit bigendian, `l' = 16-bit
1866 littleendian, `B' = 32-bit bigendian, `L' = 32-bit littleendian.
1867 Useful for finding wide character strings.
1871 Specify an object code format other than your system's default
1872 format. *Note Target Selection::, for more information.
1876 Print the program version number on the standard output and exit.
1879 File: binutils.info, Node: strip, Next: c++filt, Prev: strings, Up: Top
1884 strip [`-F' BFDNAME |`--target='BFDNAME]
1885 [`-I' BFDNAME |`--input-target='BFDNAME]
1886 [`-O' BFDNAME |`--output-target='BFDNAME]
1887 [`-s'|`--strip-all']
1888 [`-S'|`-g'|`-d'|`--strip-debug']
1889 [`-K' SYMBOLNAME |`--keep-symbol='SYMBOLNAME]
1890 [`-N' SYMBOLNAME |`--strip-symbol='SYMBOLNAME]
1892 [`-x'|`--discard-all'] [`-X' |`--discard-locals']
1893 [`-R' SECTIONNAME |`--remove-section='SECTIONNAME]
1894 [`-o' FILE] [`-p'|`--preserve-dates']
1895 [`--keep-file-symbols']
1896 [`--only-keep-debug']
1897 [`-v' |`--verbose'] [`-V'|`--version']
1898 [`--help'] [`--info']
1901 GNU `strip' discards all symbols from object files OBJFILE. The
1902 list of object files may include archives. At least one object file
1905 `strip' modifies the files named in its argument, rather than
1906 writing modified copies under different names.
1910 Treat the original OBJFILE as a file with the object code format
1911 BFDNAME, and rewrite it in the same format. *Note Target
1912 Selection::, for more information.
1915 Show a summary of the options to `strip' and exit.
1918 Display a list showing all architectures and object formats
1922 `--input-target=BFDNAME'
1923 Treat the original OBJFILE as a file with the object code format
1924 BFDNAME. *Note Target Selection::, for more information.
1927 `--output-target=BFDNAME'
1928 Replace OBJFILE with a file in the output format BFDNAME. *Note
1929 Target Selection::, for more information.
1932 `--remove-section=SECTIONNAME'
1933 Remove any section named SECTIONNAME from the output file. This
1934 option may be given more than once. Note that using this option
1935 inappropriately may make the output file unusable.
1945 Remove debugging symbols only.
1948 Remove all symbols that are not needed for relocation processing.
1951 `--keep-symbol=SYMBOLNAME'
1952 When stripping symbols, keep symbol SYMBOLNAME even if it would
1953 normally be stripped. This option may be given more than once.
1956 `--strip-symbol=SYMBOLNAME'
1957 Remove symbol SYMBOLNAME from the source file. This option may be
1958 given more than once, and may be combined with strip options other
1962 Put the stripped output in FILE, rather than replacing the
1963 existing file. When this argument is used, only one OBJFILE
1964 argument may be specified.
1968 Preserve the access and modification dates of the file.
1972 Permit regular expressions in SYMBOLNAMEs used in other command
1973 line options. The question mark (?), asterisk (*), backslash (\)
1974 and square brackets ([]) operators can be used anywhere in the
1975 symbol name. If the first character of the symbol name is the
1976 exclamation point (!) then the sense of the switch is reversed for
1977 that symbol. For example:
1981 would cause strip to only keep symbols that start with the letters
1982 "fo", but to discard the symbol "foo".
1986 Remove non-global symbols.
1990 Remove compiler-generated local symbols. (These usually start
1993 `--keep-file-symbols'
1994 When stripping a file, perhaps with `--strip-debug' or
1995 `--strip-unneeded', retain any symbols specifying source file
1996 names, which would otherwise get stripped.
1999 Strip a file, removing contents of any sections that would not be
2000 stripped by `--strip-debug' and leaving the debugging sections
2001 intact. In ELF files, this preserves all note sections in the
2004 The intention is that this option will be used in conjunction with
2005 `--add-gnu-debuglink' to create a two part executable. One a
2006 stripped binary which will occupy less space in RAM and in a
2007 distribution and the second a debugging information file which is
2008 only needed if debugging abilities are required. The suggested
2009 procedure to create these files is as follows:
2011 1. Link the executable as normal. Assuming that is is called
2014 2. Run `objcopy --only-keep-debug foo foo.dbg' to create a file
2015 containing the debugging info.
2017 3. Run `objcopy --strip-debug foo' to create a stripped
2020 4. Run `objcopy --add-gnu-debuglink=foo.dbg foo' to add a link
2021 to the debugging info into the stripped executable.
2023 Note - the choice of `.dbg' as an extension for the debug info
2024 file is arbitrary. Also the `--only-keep-debug' step is optional.
2025 You could instead do this:
2027 1. Link the executable as normal.
2029 2. Copy `foo' to `foo.full'
2031 3. Run `strip --strip-debug foo'
2033 4. Run `objcopy --add-gnu-debuglink=foo.full foo'
2035 ie the file pointed to by the `--add-gnu-debuglink' can be the
2036 full executable. It does not have to be a file created by the
2037 `--only-keep-debug' switch.
2039 Note - this switch is only intended for use on fully linked files.
2040 It does not make sense to use it on object files where the
2041 debugging information may be incomplete. Besides the
2042 gnu_debuglink feature currently only supports the presence of one
2043 filename containing debugging information, not multiple filenames
2044 on a one-per-object-file basis.
2048 Show the version number for `strip'.
2052 Verbose output: list all object files modified. In the case of
2053 archives, `strip -v' lists all members of the archive.
2056 File: binutils.info, Node: c++filt, Next: addr2line, Prev: strip, Up: Top
2061 c++filt [`-_'|`--strip-underscores']
2062 [`-n'|`--no-strip-underscores']
2063 [`-p'|`--no-params']
2065 [`-i'|`--no-verbose']
2066 [`-s' FORMAT|`--format='FORMAT]
2067 [`--help'] [`--version'] [SYMBOL...]
2069 The C++ and Java languages provide function overloading, which means
2070 that you can write many functions with the same name, providing that
2071 each function takes parameters of different types. In order to be able
2072 to distinguish these similarly named functions C++ and Java encode them
2073 into a low-level assembler name which uniquely identifies each
2074 different version. This process is known as "mangling". The `c++filt'
2075 (1) program does the inverse mapping: it decodes ("demangles") low-level
2076 names into user-level names so that they can be read.
2078 Every alphanumeric word (consisting of letters, digits, underscores,
2079 dollars, or periods) seen in the input is a potential mangled name. If
2080 the name decodes into a C++ name, the C++ name replaces the low-level
2081 name in the output, otherwise the original word is output. In this way
2082 you can pass an entire assembler source file, containing mangled names,
2083 through `c++filt' and see the same source file containing demangled
2086 You can also use `c++filt' to decipher individual symbols by passing
2087 them on the command line:
2091 If no SYMBOL arguments are given, `c++filt' reads symbol names from
2092 the standard input instead. All the results are printed on the
2093 standard output. The difference between reading names from the command
2094 line versus reading names from the standard input is that command line
2095 arguments are expected to be just mangled names and no checking is
2096 performed to separate them from surrounding text. Thus for example:
2100 will work and demangle the name to "f()" whereas:
2104 will not work. (Note the extra comma at the end of the mangled name
2105 which makes it invalid). This command however will work:
2107 echo _Z1fv, | c++filt -n
2109 and will display "f()," ie the demangled name followed by a trailing
2110 comma. This behaviour is because when the names are read from the
2111 standard input it is expected that they might be part of an assembler
2112 source file where there might be extra, extraneous characters trailing
2113 after a mangled name. eg:
2115 .type _Z1fv, @function
2118 `--strip-underscores'
2119 On some systems, both the C and C++ compilers put an underscore in
2120 front of every name. For example, the C name `foo' gets the
2121 low-level name `_foo'. This option removes the initial
2122 underscore. Whether `c++filt' removes the underscore by default
2123 is target dependent.
2127 Prints demangled names using Java syntax. The default is to use
2131 `--no-strip-underscores'
2132 Do not remove the initial underscore.
2136 When demangling the name of a function, do not display the types of
2137 the function's parameters.
2141 Attempt to demangle types as well as function names. This is
2142 disabled by default since mangled types are normally only used
2143 internally in the compiler, and they can be confused with
2144 non-mangled names. eg a function called "a" treated as a mangled
2145 type name would be demangled to "signed char".
2149 Do not include implementation details (if any) in the demangled
2154 `c++filt' can decode various methods of mangling, used by
2155 different compilers. The argument to this option selects which
2159 Automatic selection based on executable (the default method)
2162 the one used by the GNU C++ compiler (g++)
2165 the one used by the Lucid compiler (lcc)
2168 the one specified by the C++ Annotated Reference Manual
2171 the one used by the HP compiler (aCC)
2174 the one used by the EDG compiler
2177 the one used by the GNU C++ compiler (g++) with the V3 ABI.
2180 the one used by the GNU Java compiler (gcj)
2183 the one used by the GNU Ada compiler (GNAT).
2186 Print a summary of the options to `c++filt' and exit.
2189 Print the version number of `c++filt' and exit.
2191 _Warning:_ `c++filt' is a new utility, and the details of its user
2192 interface are subject to change in future releases. In particular,
2193 a command-line option may be required in the future to decode a
2194 name passed as an argument on the command line; in other words,
2198 may in a future release become
2200 c++filt OPTION SYMBOL
2202 ---------- Footnotes ----------
2204 (1) MS-DOS does not allow `+' characters in file names, so on MS-DOS
2205 this program is named `CXXFILT'.
2208 File: binutils.info, Node: addr2line, Next: nlmconv, Prev: c++filt, Up: Top
2213 addr2line [`-b' BFDNAME|`--target='BFDNAME]
2214 [`-C'|`--demangle'[=STYLE]]
2215 [`-e' FILENAME|`--exe='FILENAME]
2216 [`-f'|`--functions'] [`-s'|`--basename']
2218 [`-j'|`--section='NAME]
2219 [`-H'|`--help'] [`-V'|`--version']
2222 `addr2line' translates addresses into file names and line numbers.
2223 Given an address in an executable or an offset in a section of a
2224 relocatable object, it uses the debugging information to figure out
2225 which file name and line number are associated with it.
2227 The executable or relocatable object to use is specified with the
2228 `-e' option. The default is the file `a.out'. The section in the
2229 relocatable object to use is specified with the `-j' option.
2231 `addr2line' has two modes of operation.
2233 In the first, hexadecimal addresses are specified on the command
2234 line, and `addr2line' displays the file name and line number for each
2237 In the second, `addr2line' reads hexadecimal addresses from standard
2238 input, and prints the file name and line number for each address on
2239 standard output. In this mode, `addr2line' may be used in a pipe to
2240 convert dynamically chosen addresses.
2242 The format of the output is `FILENAME:LINENO'. The file name and
2243 line number for each address is printed on a separate line. If the
2244 `-f' option is used, then each `FILENAME:LINENO' line is preceded by a
2245 `FUNCTIONNAME' line which is the name of the function containing the
2248 If the file name or function name can not be determined, `addr2line'
2249 will print two question marks in their place. If the line number can
2250 not be determined, `addr2line' will print 0.
2252 The long and short forms of options, shown here as alternatives, are
2257 Specify that the object-code format for the object files is
2261 `--demangle[=STYLE]'
2262 Decode ("demangle") low-level symbol names into user-level names.
2263 Besides removing any initial underscore prepended by the system,
2264 this makes C++ function names readable. Different compilers have
2265 different mangling styles. The optional demangling style argument
2266 can be used to choose an appropriate demangling style for your
2267 compiler. *Note c++filt::, for more information on demangling.
2271 Specify the name of the executable for which addresses should be
2272 translated. The default file is `a.out'.
2276 Display function names as well as file and line number information.
2280 Display only the base of each file name.
2284 If the address belongs to a function that was inlined, the source
2285 information for all enclosing scopes back to the first non-inlined
2286 function will also be printed. For example, if `main' inlines
2287 `callee1' which inlines `callee2', and address is from `callee2',
2288 the source information for `callee1' and `main' will also be
2293 Read offsets relative to the specified section instead of absolute
2297 File: binutils.info, Node: nlmconv, Next: windres, Prev: addr2line, Up: Top
2302 `nlmconv' converts a relocatable object file into a NetWare Loadable
2305 _Warning:_ `nlmconv' is not always built as part of the binary
2306 utilities, since it is only useful for NLM targets.
2308 nlmconv [`-I' BFDNAME|`--input-target='BFDNAME]
2309 [`-O' BFDNAME|`--output-target='BFDNAME]
2310 [`-T' HEADERFILE|`--header-file='HEADERFILE]
2311 [`-d'|`--debug'] [`-l' LINKER|`--linker='LINKER]
2312 [`-h'|`--help'] [`-V'|`--version']
2315 `nlmconv' converts the relocatable `i386' object file INFILE into
2316 the NetWare Loadable Module OUTFILE, optionally reading HEADERFILE for
2317 NLM header information. For instructions on writing the NLM command
2318 file language used in header files, see the `linkers' section,
2319 `NLMLINK' in particular, of the `NLM Development and Tools Overview',
2320 which is part of the NLM Software Developer's Kit ("NLM SDK"),
2321 available from Novell, Inc. `nlmconv' uses the GNU Binary File
2322 Descriptor library to read INFILE; see *Note BFD: (ld.info)BFD, for
2325 `nlmconv' can perform a link step. In other words, you can list
2326 more than one object file for input if you list them in the definitions
2327 file (rather than simply specifying one input file on the command line).
2328 In this case, `nlmconv' calls the linker for you.
2331 `--input-target=BFDNAME'
2332 Object format of the input file. `nlmconv' can usually determine
2333 the format of a given file (so no default is necessary). *Note
2334 Target Selection::, for more information.
2337 `--output-target=BFDNAME'
2338 Object format of the output file. `nlmconv' infers the output
2339 format based on the input format, e.g. for a `i386' input file the
2340 output format is `nlm32-i386'. *Note Target Selection::, for more
2344 `--header-file=HEADERFILE'
2345 Reads HEADERFILE for NLM header information. For instructions on
2346 writing the NLM command file language used in header files, see
2347 see the `linkers' section, of the `NLM Development and Tools
2348 Overview', which is part of the NLM Software Developer's Kit,
2349 available from Novell, Inc.
2353 Displays (on standard error) the linker command line used by
2358 Use LINKER for any linking. LINKER can be an absolute or a
2363 Prints a usage summary.
2367 Prints the version number for `nlmconv'.
2370 File: binutils.info, Node: windmc, Next: dlltool, Prev: windres, Up: Top
2375 `windmc' may be used to generator Windows message resources.
2377 _Warning:_ `windmc' is not always built as part of the binary
2378 utilities, since it is only useful for Windows targets.
2380 windmc [options] input-file
2382 `windmc' reads message definitions from an input file (.mc) and
2383 translate them into a set of output files. The output files may be of
2387 A C header file containing the message definitions.
2390 A resource file compilable by the `windres' tool.
2393 One or more binary files containing the resource data for a
2394 specific message language.
2397 A C include file that maps message id's to their symbolic name.
2399 The exact description of these different formats is available in
2400 documentation from Microsoft.
2402 When `windmc' converts from the `mc' format to the `bin' format,
2403 `rc', `h', and optional `dbg' it is acting like the Windows Message
2408 Specifies that the input file specified is ANSI. This is the
2413 Specifies that messages in the output `bin' files should be in ANSI
2418 Specifies that `bin' filenames should have to be prefixed by the
2419 basename of the source file.
2423 Sets the customer bit in all message id's.
2426 `--codepage_in CODEPAGE'
2427 Sets the default codepage to be used to convert input file to
2428 UTF16. The default is ocdepage 1252.
2432 Outputs the constants in the header file in decimal. Default is
2433 using hexadecimal output.
2437 The extension for the header file. The default is .h extension.
2441 Specify the BFD format to use for a bin file as output. This is a
2442 BFD target name; you can use the `--help' option to see a list of
2443 supported targets. Normally `windmc' will use the default format,
2444 which is the first one listed by the `--help' option. *Note
2449 The target directory of the generated header file. The default is
2450 the current directory.
2454 Displays a list of command line options and then exits.
2457 `--maxlength CHARACTERS'
2458 Instructs `windmc' to generate a warning if the length of any
2459 message exceeds the number specified.
2463 Terminate message text in `bin' files by zero. By default they are
2464 terminated by CR/LF.
2468 Not yet implemented. Instructs `windmc' to generate an OLE2 header
2469 file, using HRESULT definitions. Status codes are used if the flag
2473 `--codepage_out CODEPAGE'
2474 Sets the default codepage to be used to output text files. The
2475 default is ocdepage 1252.
2479 The target directory for the generated `rc' script and the
2480 generated `bin' files that the resource compiler script includes.
2481 The default is the current directory.
2485 Specifies that the input file is UTF16.
2489 Specifies that messages in the output `bin' file should be in UTF16
2490 format. This is the default behaviour.
2495 Enable verbose mode. This tells you what the preprocessor is if
2496 you didn't specify one.
2501 Prints the version number for `windres'.
2505 The path of the `dbg' C include file that maps message id's to the
2506 symbolic name. No such file is generated without specifying the
2510 File: binutils.info, Node: windres, Next: windmc, Prev: nlmconv, Up: Top
2515 `windres' may be used to manipulate Windows resources.
2517 _Warning:_ `windres' is not always built as part of the binary
2518 utilities, since it is only useful for Windows targets.
2520 windres [options] [input-file] [output-file]
2522 `windres' reads resources from an input file and copies them into an
2523 output file. Either file may be in one of three formats:
2526 A text format read by the Resource Compiler.
2529 A binary format generated by the Resource Compiler.
2532 A COFF object or executable.
2534 The exact description of these different formats is available in
2535 documentation from Microsoft.
2537 When `windres' converts from the `rc' format to the `res' format, it
2538 is acting like the Windows Resource Compiler. When `windres' converts
2539 from the `res' format to the `coff' format, it is acting like the
2540 Windows `CVTRES' program.
2542 When `windres' generates an `rc' file, the output is similar but not
2543 identical to the format expected for the input. When an input `rc'
2544 file refers to an external filename, an output `rc' file will instead
2545 include the file contents.
2547 If the input or output format is not specified, `windres' will guess
2548 based on the file name, or, for the input file, the file contents. A
2549 file with an extension of `.rc' will be treated as an `rc' file, a file
2550 with an extension of `.res' will be treated as a `res' file, and a file
2551 with an extension of `.o' or `.exe' will be treated as a `coff' file.
2553 If no output file is specified, `windres' will print the resources
2554 in `rc' format to standard output.
2556 The normal use is for you to write an `rc' file, use `windres' to
2557 convert it to a COFF object file, and then link the COFF file into your
2558 application. This will make the resources described in the `rc' file
2559 available to Windows.
2563 The name of the input file. If this option is not used, then
2564 `windres' will use the first non-option argument as the input file
2565 name. If there are no non-option arguments, then `windres' will
2566 read from standard input. `windres' can not read a COFF file from
2571 The name of the output file. If this option is not used, then
2572 `windres' will use the first non-option argument, after any used
2573 for the input file name, as the output file name. If there is no
2574 non-option argument, then `windres' will write to standard output.
2575 `windres' can not write a COFF file to standard output. Note, for
2576 compatibility with `rc' the option `-fo' is also accepted, but its
2577 use is not recommended.
2580 `--input-format FORMAT'
2581 The input format to read. FORMAT may be `res', `rc', or `coff'.
2582 If no input format is specified, `windres' will guess, as
2586 `--output-format FORMAT'
2587 The output format to generate. FORMAT may be `res', `rc', or
2588 `coff'. If no output format is specified, `windres' will guess,
2593 Specify the BFD format to use for a COFF file as input or output.
2594 This is a BFD target name; you can use the `--help' option to see
2595 a list of supported targets. Normally `windres' will use the
2596 default format, which is the first one listed by the `--help'
2597 option. *Note Target Selection::.
2599 `--preprocessor PROGRAM'
2600 When `windres' reads an `rc' file, it runs it through the C
2601 preprocessor first. This option may be used to specify the
2602 preprocessor to use, including any leading arguments. The default
2603 preprocessor argument is `gcc -E -xc-header -DRC_INVOKED'.
2606 `--include-dir DIRECTORY'
2607 Specify an include directory to use when reading an `rc' file.
2608 `windres' will pass this to the preprocessor as an `-I' option.
2609 `windres' will also search this directory when looking for files
2610 named in the `rc' file. If the argument passed to this command
2611 matches any of the supported FORMATS (as described in the `-J'
2612 option), it will issue a deprecation warning, and behave just like
2613 the `-J' option. New programs should not use this behaviour. If a
2614 directory happens to match a FORMAT, simple prefix it with `./' to
2615 disable the backward compatibility.
2618 `--define SYM[=VAL]'
2619 Specify a `-D' option to pass to the preprocessor when reading an
2624 Specify a `-U' option to pass to the preprocessor when reading an
2628 Ignored for compatibility with rc.
2631 Enable verbose mode. This tells you what the preprocessor is if
2632 you didn't specify one.
2637 Specify the default codepage to use when reading an `rc' file.
2638 VAL should be a hexadecimal prefixed by `0x' or decimal codepage
2639 code. The valid range is from zero up to 0xffff, but the validity
2640 of the codepage is host and configuration dependent.
2645 Specify the default language to use when reading an `rc' file.
2646 VAL should be a hexadecimal language code. The low eight bits are
2647 the language, and the high eight bits are the sublanguage.
2650 Use a temporary file to instead of using popen to read the output
2651 of the preprocessor. Use this option if the popen implementation
2652 is buggy on the host (eg., certain non-English language versions
2653 of Windows 95 and Windows 98 are known to have buggy popen where
2654 the output will instead go the console).
2656 `--no-use-temp-file'
2657 Use popen, not a temporary file, to read the output of the
2658 preprocessor. This is the default behaviour.
2663 Prints a usage summary.
2668 Prints the version number for `windres'.
2671 If `windres' is compiled with `YYDEBUG' defined as `1', this will
2672 turn on parser debugging.
2675 File: binutils.info, Node: dlltool, Next: Common Options, Prev: windmc, Up: Top
2680 `dlltool' is used to create the files needed to create dynamic link
2681 libraries (DLLs) on systems which understand PE format image files such
2682 as Windows. A DLL contains an export table which contains information
2683 that the runtime loader needs to resolve references from a referencing
2686 The export table is generated by this program by reading in a `.def'
2687 file or scanning the `.a' and `.o' files which will be in the DLL. A
2688 `.o' file can contain information in special `.drectve' sections with
2691 _Note:_ `dlltool' is not always built as part of the binary
2692 utilities, since it is only useful for those targets which support
2695 dlltool [`-d'|`--input-def' DEF-FILE-NAME]
2696 [`-b'|`--base-file' BASE-FILE-NAME]
2697 [`-e'|`--output-exp' EXPORTS-FILE-NAME]
2698 [`-z'|`--output-def' DEF-FILE-NAME]
2699 [`-l'|`--output-lib' LIBRARY-FILE-NAME]
2700 [`--export-all-symbols'] [`--no-export-all-symbols']
2701 [`--exclude-symbols' LIST]
2702 [`--no-default-excludes']
2703 [`-S'|`--as' PATH-TO-ASSEMBLER] [`-f'|`--as-flags' OPTIONS]
2704 [`-D'|`--dllname' NAME] [`-m'|`--machine' MACHINE]
2705 [`-a'|`--add-indirect']
2706 [`-U'|`--add-underscore'] [`--add-stdcall-underscore']
2707 [`-k'|`--kill-at'] [`-A'|`--add-stdcall-alias']
2708 [`-p'|`--ext-prefix-alias' PREFIX]
2709 [`-x'|`--no-idata4'] [`-c'|`--no-idata5'] [`-i'|`--interwork']
2710 [`-n'|`--nodelete'] [`-t'|`--temp-prefix' PREFIX]
2712 [`-h'|`--help'] [`-V'|`--version']
2715 `dlltool' reads its inputs, which can come from the `-d' and `-b'
2716 options as well as object files specified on the command line. It then
2717 processes these inputs and if the `-e' option has been specified it
2718 creates a exports file. If the `-l' option has been specified it
2719 creates a library file and if the `-z' option has been specified it
2720 creates a def file. Any or all of the `-e', `-l' and `-z' options can
2721 be present in one invocation of dlltool.
2723 When creating a DLL, along with the source for the DLL, it is
2724 necessary to have three other files. `dlltool' can help with the
2725 creation of these files.
2727 The first file is a `.def' file which specifies which functions are
2728 exported from the DLL, which functions the DLL imports, and so on. This
2729 is a text file and can be created by hand, or `dlltool' can be used to
2730 create it using the `-z' option. In this case `dlltool' will scan the
2731 object files specified on its command line looking for those functions
2732 which have been specially marked as being exported and put entries for
2733 them in the `.def' file it creates.
2735 In order to mark a function as being exported from a DLL, it needs to
2736 have an `-export:<name_of_function>' entry in the `.drectve' section of
2737 the object file. This can be done in C by using the asm() operator:
2739 asm (".section .drectve");
2740 asm (".ascii \"-export:my_func\"");
2742 int my_func (void) { ... }
2744 The second file needed for DLL creation is an exports file. This
2745 file is linked with the object files that make up the body of the DLL
2746 and it handles the interface between the DLL and the outside world.
2747 This is a binary file and it can be created by giving the `-e' option to
2748 `dlltool' when it is creating or reading in a `.def' file.
2750 The third file needed for DLL creation is the library file that
2751 programs will link with in order to access the functions in the DLL.
2752 This file can be created by giving the `-l' option to dlltool when it
2753 is creating or reading in a `.def' file.
2755 `dlltool' builds the library file by hand, but it builds the exports
2756 file by creating temporary files containing assembler statements and
2757 then assembling these. The `-S' command line option can be used to
2758 specify the path to the assembler that dlltool will use, and the `-f'
2759 option can be used to pass specific flags to that assembler. The `-n'
2760 can be used to prevent dlltool from deleting these temporary assembler
2761 files when it is done, and if `-n' is specified twice then this will
2762 prevent dlltool from deleting the temporary object files it used to
2765 Here is an example of creating a DLL from a source file `dll.c' and
2766 also creating a program (from an object file called `program.o') that
2770 dlltool -e exports.o -l dll.lib dll.o
2771 gcc dll.o exports.o -o dll.dll
2772 gcc program.o dll.lib -o program
2774 The command line options have the following meanings:
2777 `--input-def FILENAME'
2778 Specifies the name of a `.def' file to be read in and processed.
2781 `--base-file FILENAME'
2782 Specifies the name of a base file to be read in and processed. The
2783 contents of this file will be added to the relocation section in
2784 the exports file generated by dlltool.
2787 `--output-exp FILENAME'
2788 Specifies the name of the export file to be created by dlltool.
2791 `--output-def FILENAME'
2792 Specifies the name of the `.def' file to be created by dlltool.
2795 `--output-lib FILENAME'
2796 Specifies the name of the library file to be created by dlltool.
2798 `--export-all-symbols'
2799 Treat all global and weak defined symbols found in the input object
2800 files as symbols to be exported. There is a small list of symbols
2801 which are not exported by default; see the `--no-default-excludes'
2802 option. You may add to the list of symbols to not export by using
2803 the `--exclude-symbols' option.
2805 `--no-export-all-symbols'
2806 Only export symbols explicitly listed in an input `.def' file or in
2807 `.drectve' sections in the input object files. This is the default
2808 behaviour. The `.drectve' sections are created by `dllexport'
2809 attributes in the source code.
2811 `--exclude-symbols LIST'
2812 Do not export the symbols in LIST. This is a list of symbol names
2813 separated by comma or colon characters. The symbol names should
2814 not contain a leading underscore. This is only meaningful when
2815 `--export-all-symbols' is used.
2817 `--no-default-excludes'
2818 When `--export-all-symbols' is used, it will by default avoid
2819 exporting certain special symbols. The current list of symbols to
2820 avoid exporting is `DllMain@12', `DllEntryPoint@0', `impure_ptr'.
2821 You may use the `--no-default-excludes' option to go ahead and
2822 export these special symbols. This is only meaningful when
2823 `--export-all-symbols' is used.
2827 Specifies the path, including the filename, of the assembler to be
2828 used to create the exports file.
2831 `--as-flags OPTIONS'
2832 Specifies any specific command line options to be passed to the
2833 assembler when building the exports file. This option will work
2834 even if the `-S' option is not used. This option only takes one
2835 argument, and if it occurs more than once on the command line,
2836 then later occurrences will override earlier occurrences. So if
2837 it is necessary to pass multiple options to the assembler they
2838 should be enclosed in double quotes.
2842 Specifies the name to be stored in the `.def' file as the name of
2843 the DLL when the `-e' option is used. If this option is not
2844 present, then the filename given to the `-e' option will be used
2845 as the name of the DLL.
2849 Specifies the type of machine for which the library file should be
2850 built. `dlltool' has a built in default type, depending upon how
2851 it was created, but this option can be used to override that.
2852 This is normally only useful when creating DLLs for an ARM
2853 processor, when the contents of the DLL are actually encode using
2858 Specifies that when `dlltool' is creating the exports file it
2859 should add a section which allows the exported functions to be
2860 referenced without using the import library. Whatever the hell
2865 Specifies that when `dlltool' is creating the exports file it
2866 should prepend an underscore to the names of _all_ exported
2869 `--add-stdcall-underscore'
2870 Specifies that when `dlltool' is creating the exports file it
2871 should prepend an underscore to the names of exported _stdcall_
2872 functions. Variable names and non-stdcall function names are not
2873 modified. This option is useful when creating GNU-compatible
2874 import libs for third party DLLs that were built with MS-Windows
2879 Specifies that when `dlltool' is creating the exports file it
2880 should not append the string `@ <number>'. These numbers are
2881 called ordinal numbers and they represent another way of accessing
2882 the function in a DLL, other than by name.
2885 `--add-stdcall-alias'
2886 Specifies that when `dlltool' is creating the exports file it
2887 should add aliases for stdcall symbols without `@ <number>' in
2888 addition to the symbols with `@ <number>'.
2891 `--ext-prefix-alias PREFIX'
2892 Causes `dlltool' to create external aliases for all DLL imports
2893 with the specified prefix. The aliases are created for both
2894 external and import symbols with no leading underscore.
2898 Specifies that when `dlltool' is creating the exports and library
2899 files it should omit the `.idata4' section. This is for
2900 compatibility with certain operating systems.
2904 Specifies that when `dlltool' is creating the exports and library
2905 files it should omit the `.idata5' section. This is for
2906 compatibility with certain operating systems.
2910 Specifies that `dlltool' should mark the objects in the library
2911 file and exports file that it produces as supporting interworking
2912 between ARM and Thumb code.
2916 Makes `dlltool' preserve the temporary assembler files it used to
2917 create the exports file. If this option is repeated then dlltool
2918 will also preserve the temporary object files it uses to create
2922 `--temp-prefix PREFIX'
2923 Makes `dlltool' use PREFIX when constructing the names of
2924 temporary assembler and object files. By default, the temp file
2925 prefix is generated from the pid.
2929 Make dlltool describe what it is doing.
2933 Displays a list of command line options and then exits.
2937 Displays dlltool's version number and then exits.
2942 * def file format:: The format of the dlltool `.def' file
2945 File: binutils.info, Node: def file format, Up: dlltool
2947 14.1 The format of the `dlltool' `.def' file
2948 ============================================
2950 A `.def' file contains any number of the following commands:
2952 `NAME' NAME `[ ,' BASE `]'
2953 The result is going to be named NAME`.exe'.
2955 `LIBRARY' NAME `[ ,' BASE `]'
2956 The result is going to be named NAME`.dll'.
2958 `EXPORTS ( ( (' NAME1 `[ = ' NAME2 `] ) | ( ' NAME1 `=' MODULE-NAME `.' EXTERNAL-NAME `) )'
2960 `[' INTEGER `] [ NONAME ] [ CONSTANT ] [ DATA ] [ PRIVATE ] ) *'
2961 Declares NAME1 as an exported symbol from the DLL, with optional
2962 ordinal number INTEGER, or declares NAME1 as an alias (forward) of
2963 the function EXTERNAL-NAME in the DLL MODULE-NAME.
2965 `IMPORTS ( (' INTERNAL-NAME `=' MODULE-NAME `.' INTEGER `) | [' INTERNAL-NAME `= ]' MODULE-NAME `.' EXTERNAL-NAME `) ) *'
2966 Declares that EXTERNAL-NAME or the exported function whose ordinal
2967 number is INTEGER is to be imported from the file MODULE-NAME. If
2968 INTERNAL-NAME is specified then this is the name that the imported
2969 function will be referred to in the body of the DLL.
2971 `DESCRIPTION' STRING
2972 Puts STRING into the output `.exp' file in the `.rdata' section.
2974 `STACKSIZE' NUMBER-RESERVE `[, ' NUMBER-COMMIT `]'
2976 `HEAPSIZE' NUMBER-RESERVE `[, ' NUMBER-COMMIT `]'
2977 Generates `--stack' or `--heap' NUMBER-RESERVE,NUMBER-COMMIT in
2978 the output `.drectve' section. The linker will see this and act
2985 `SECTIONS (' SECTION-NAME ATTR` + ) *'
2986 Generates `--attr' SECTION-NAME ATTR in the output `.drectve'
2987 section, where ATTR is one of `READ', `WRITE', `EXECUTE' or
2988 `SHARED'. The linker will see this and act upon it.
2992 File: binutils.info, Node: readelf, Next: size, Prev: ranlib, Up: Top
2997 readelf [`-a'|`--all']
2998 [`-h'|`--file-header']
2999 [`-l'|`--program-headers'|`--segments']
3000 [`-S'|`--section-headers'|`--sections']
3001 [`-g'|`--section-groups']
3002 [`-t'|`--section-details']
3004 [`-s'|`--syms'|`--symbols']
3009 [`-V'|`--version-info']
3010 [`-A'|`--arch-specific']
3011 [`-D'|`--use-dynamic']
3012 [`-x' <number or name>|`--hex-dump='<number or name>]
3014 `--debug-dump'[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]]
3021 `readelf' displays information about one or more ELF format object
3022 files. The options control what particular information to display.
3024 ELFFILE... are the object files to be examined. 32-bit and 64-bit
3025 ELF files are supported, as are archives containing ELF files.
3027 This program performs a similar function to `objdump' but it goes
3028 into more detail and it exists independently of the BFD library, so if
3029 there is a bug in BFD then readelf will not be affected.
3031 The long and short forms of options, shown here as alternatives, are
3032 equivalent. At least one option besides `-v' or `-H' must be given.
3036 Equivalent to specifying `--file-header', `--program-headers',
3037 `--sections', `--symbols', `--relocs', `--dynamic', `--notes' and
3042 Displays the information contained in the ELF header at the start
3048 Displays the information contained in the file's segment headers,
3054 Displays the information contained in the file's section headers,
3059 Displays the information contained in the file's section groups,
3064 Displays the detailed section information. Implies `-S'.
3069 Displays the entries in symbol table section of the file, if it
3074 Display all the headers in the file. Equivalent to `-h -l -S'.
3078 Displays the contents of the NOTE segments and/or sections, if any.
3082 Displays the contents of the file's relocation section, if it has
3087 Displays the contents of the file's unwind section, if it has one.
3088 Only the unwind sections for IA64 ELF files are currently
3093 Displays the contents of the file's dynamic section, if it has one.
3097 Displays the contents of the version sections in the file, it they
3102 Displays architecture-specific information in the file, if there
3107 When displaying symbols, this option makes `readelf' use the
3108 symbol table in the file's dynamic section, rather than the one in
3109 the symbols section.
3111 `-x <number or name>'
3112 `--hex-dump=<number or name>'
3113 Displays the contents of the indicated section as a hexadecimal
3114 dump. A number identifies a particular section by index in the
3115 section table; any other string identifies all sections with that
3116 name in the object file.
3119 `--debug-dump[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]'
3120 Displays the contents of the debug sections in the file, if any are
3121 present. If one of the optional letters or words follows the
3122 switch then only data found in those specific sections will be
3127 Display a histogram of bucket list lengths when displaying the
3128 contents of the symbol tables.
3132 Display the version number of readelf.
3136 Don't break output lines to fit into 80 columns. By default
3137 `readelf' breaks section header and segment listing lines for
3138 64-bit ELF files, so that they fit into 80 columns. This option
3139 causes `readelf' to print each section header resp. each segment
3140 one a single line, which is far more readable on terminals wider
3145 Display the command line options understood by `readelf'.
3149 File: binutils.info, Node: Common Options, Next: Selecting The Target System, Prev: dlltool, Up: Top
3154 The following command-line options are supported by all of the programs
3155 described in this manual.
3158 Read command-line options from FILE. The options read are
3159 inserted in place of the original @FILE option. If FILE does not
3160 exist, or cannot be read, then the option will be treated
3161 literally, and not removed.
3163 Options in FILE are separated by whitespace. A whitespace
3164 character may be included in an option by surrounding the entire
3165 option in either single or double quotes. Any character
3166 (including a backslash) may be included by prefixing the character
3167 to be included with a backslash. The FILE may itself contain
3168 additional @FILE options; any such options will be processed
3172 Display the command-line options supported by the program.
3175 Display the version number of the program.
3179 File: binutils.info, Node: Selecting The Target System, Next: Reporting Bugs, Prev: Common Options, Up: Top
3181 17 Selecting the Target System
3182 ******************************
3184 You can specify two aspects of the target system to the GNU binary file
3185 utilities, each in several ways:
3191 In the following summaries, the lists of ways to specify values are
3192 in order of decreasing precedence. The ways listed first override those
3195 The commands to list valid values only list the values for which the
3196 programs you are running were configured. If they were configured with
3197 `--enable-targets=all', the commands list most of the available values,
3198 but a few are left out; not all targets can be configured in at once
3199 because some of them can only be configured "native" (on hosts with the
3200 same type as the target system).
3204 * Target Selection::
3205 * Architecture Selection::
3208 File: binutils.info, Node: Target Selection, Next: Architecture Selection, Up: Selecting The Target System
3210 17.1 Target Selection
3211 =====================
3213 A "target" is an object file format. A given target may be supported
3214 for multiple architectures (*note Architecture Selection::). A target
3215 selection may also have variations for different operating systems or
3218 The command to list valid target values is `objdump -i' (the first
3219 column of output contains the relevant information).
3221 Some sample values are: `a.out-hp300bsd', `ecoff-littlemips',
3224 You can also specify a target using a configuration triplet. This is
3225 the same sort of name that is passed to `configure' to specify a
3226 target. When you use a configuration triplet as an argument, it must be
3227 fully canonicalized. You can see the canonical version of a triplet by
3228 running the shell script `config.sub' which is included with the
3231 Some sample configuration triplets are: `m68k-hp-bsd',
3232 `mips-dec-ultrix', `sparc-sun-sunos'.
3239 1. command line option: `-b' or `--target'
3241 2. environment variable `GNUTARGET'
3243 3. deduced from the input file
3245 `objcopy' and `strip' Input Target
3246 ----------------------------------
3250 1. command line options: `-I' or `--input-target', or `-F' or
3253 2. environment variable `GNUTARGET'
3255 3. deduced from the input file
3257 `objcopy' and `strip' Output Target
3258 -----------------------------------
3262 1. command line options: `-O' or `--output-target', or `-F' or
3265 2. the input target (see "`objcopy' and `strip' Input Target" above)
3267 3. environment variable `GNUTARGET'
3269 4. deduced from the input file
3271 `nm', `size', and `strings' Target
3272 ----------------------------------
3276 1. command line option: `--target'
3278 2. environment variable `GNUTARGET'
3280 3. deduced from the input file
3283 File: binutils.info, Node: Architecture Selection, Prev: Target Selection, Up: Selecting The Target System
3285 17.2 Architecture Selection
3286 ===========================
3288 An "architecture" is a type of CPU on which an object file is to run.
3289 Its name may contain a colon, separating the name of the processor
3290 family from the name of the particular CPU.
3292 The command to list valid architecture values is `objdump -i' (the
3293 second column contains the relevant information).
3295 Sample values: `m68k:68020', `mips:3000', `sparc'.
3297 `objdump' Architecture
3298 ----------------------
3302 1. command line option: `-m' or `--architecture'
3304 2. deduced from the input file
3306 `objcopy', `nm', `size', `strings' Architecture
3307 -----------------------------------------------
3311 1. deduced from the input file
3314 File: binutils.info, Node: Reporting Bugs, Next: GNU Free Documentation License, Prev: Selecting The Target System, Up: Top
3319 Your bug reports play an essential role in making the binary utilities
3322 Reporting a bug may help you by bringing a solution to your problem,
3323 or it may not. But in any case the principal function of a bug report
3324 is to help the entire community by making the next version of the binary
3325 utilities work better. Bug reports are your contribution to their
3328 In order for a bug report to serve its purpose, you must include the
3329 information that enables us to fix the bug.
3333 * Bug Criteria:: Have you found a bug?
3334 * Bug Reporting:: How to report bugs
3337 File: binutils.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
3339 18.1 Have You Found a Bug?
3340 ==========================
3342 If you are not sure whether you have found a bug, here are some
3345 * If a binary utility gets a fatal signal, for any input whatever,
3346 that is a bug. Reliable utilities never crash.
3348 * If a binary utility produces an error message for valid input,
3351 * If you are an experienced user of binary utilities, your
3352 suggestions for improvement are welcome in any case.
3355 File: binutils.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
3357 18.2 How to Report Bugs
3358 =======================
3360 A number of companies and individuals offer support for GNU products.
3361 If you obtained the binary utilities from a support organization, we
3362 recommend you contact that organization first.
3364 You can find contact information for many support companies and
3365 individuals in the file `etc/SERVICE' in the GNU Emacs distribution.
3367 In any event, we also recommend that you send bug reports for the
3368 binary utilities to `http://www.sourceware.org/bugzilla/'.
3370 The fundamental principle of reporting bugs usefully is this:
3371 *report all the facts*. If you are not sure whether to state a fact or
3372 leave it out, state it!
3374 Often people omit facts because they think they know what causes the
3375 problem and assume that some details do not matter. Thus, you might
3376 assume that the name of a file you use in an example does not matter.
3377 Well, probably it does not, but one cannot be sure. Perhaps the bug is
3378 a stray memory reference which happens to fetch from the location where
3379 that pathname is stored in memory; perhaps, if the pathname were
3380 different, the contents of that location would fool the utility into
3381 doing the right thing despite the bug. Play it safe and give a
3382 specific, complete example. That is the easiest thing for you to do,
3383 and the most helpful.
3385 Keep in mind that the purpose of a bug report is to enable us to fix
3386 the bug if it is new to us. Therefore, always write your bug reports
3387 on the assumption that the bug has not been reported previously.
3389 Sometimes people give a few sketchy facts and ask, "Does this ring a
3390 bell?" This cannot help us fix a bug, so it is basically useless. We
3391 respond by asking for enough details to enable us to investigate. You
3392 might as well expedite matters by sending them to begin with.
3394 To enable us to fix the bug, you should include all these things:
3396 * The version of the utility. Each utility announces it if you
3397 start it with the `--version' argument.
3399 Without this, we will not know whether there is any point in
3400 looking for the bug in the current version of the binary utilities.
3402 * Any patches you may have applied to the source, including any
3403 patches made to the `BFD' library.
3405 * The type of machine you are using, and the operating system name
3408 * What compiler (and its version) was used to compile the
3409 utilities--e.g. "`gcc-2.7'".
3411 * The command arguments you gave the utility to observe the bug. To
3412 guarantee you will not omit something important, list them all. A
3413 copy of the Makefile (or the output from make) is sufficient.
3415 If we were to try to guess the arguments, we would probably guess
3416 wrong and then we might not encounter the bug.
3418 * A complete input file, or set of input files, that will reproduce
3419 the bug. If the utility is reading an object file or files, then
3420 it is generally most helpful to send the actual object files.
3422 If the source files were produced exclusively using GNU programs
3423 (e.g., `gcc', `gas', and/or the GNU `ld'), then it may be OK to
3424 send the source files rather than the object files. In this case,
3425 be sure to say exactly what version of `gcc', or whatever, was
3426 used to produce the object files. Also say how `gcc', or
3427 whatever, was configured.
3429 * A description of what behavior you observe that you believe is
3430 incorrect. For example, "It gets a fatal signal."
3432 Of course, if the bug is that the utility gets a fatal signal,
3433 then we will certainly notice it. But if the bug is incorrect
3434 output, we might not notice unless it is glaringly wrong. You
3435 might as well not give us a chance to make a mistake.
3437 Even if the problem you experience is a fatal signal, you should
3438 still say so explicitly. Suppose something strange is going on,
3439 such as your copy of the utility is out of sync, or you have
3440 encountered a bug in the C library on your system. (This has
3441 happened!) Your copy might crash and ours would not. If you told
3442 us to expect a crash, then when ours fails to crash, we would know
3443 that the bug was not happening for us. If you had not told us to
3444 expect a crash, then we would not be able to draw any conclusion
3445 from our observations.
3447 * If you wish to suggest changes to the source, send us context
3448 diffs, as generated by `diff' with the `-u', `-c', or `-p' option.
3449 Always send diffs from the old file to the new file. If you wish
3450 to discuss something in the `ld' source, refer to it by context,
3453 The line numbers in our development sources will not match those
3454 in your sources. Your line numbers would convey no useful
3457 Here are some things that are not necessary:
3459 * A description of the envelope of the bug.
3461 Often people who encounter a bug spend a lot of time investigating
3462 which changes to the input file will make the bug go away and which
3463 changes will not affect it.
3465 This is often time consuming and not very useful, because the way
3466 we will find the bug is by running a single example under the
3467 debugger with breakpoints, not by pure deduction from a series of
3468 examples. We recommend that you save your time for something else.
3470 Of course, if you can find a simpler example to report _instead_
3471 of the original one, that is a convenience for us. Errors in the
3472 output will be easier to spot, running under the debugger will take
3473 less time, and so on.
3475 However, simplification is not vital; if you do not want to do
3476 this, report the bug anyway and send us the entire test case you
3479 * A patch for the bug.
3481 A patch for the bug does help us if it is a good one. But do not
3482 omit the necessary information, such as the test case, on the
3483 assumption that a patch is all we need. We might see problems
3484 with your patch and decide to fix the problem another way, or we
3485 might not understand it at all.
3487 Sometimes with programs as complicated as the binary utilities it
3488 is very hard to construct an example that will make the program
3489 follow a certain path through the code. If you do not send us the
3490 example, we will not be able to construct one, so we will not be
3491 able to verify that the bug is fixed.
3493 And if we cannot understand what bug you are trying to fix, or why
3494 your patch should be an improvement, we will not install it. A
3495 test case will help us to understand.
3497 * A guess about what the bug is or what it depends on.
3499 Such guesses are usually wrong. Even we cannot guess right about
3500 such things without first using the debugger to find the facts.
3503 File: binutils.info, Node: GNU Free Documentation License, Next: Binutils Index, Prev: Reporting Bugs, Up: Top
3505 Appendix A GNU Free Documentation License
3506 *****************************************
3508 Version 1.1, March 2000
3510 Copyright (C) 2000, 2003 Free Software Foundation, Inc.
3511 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
3513 Everyone is permitted to copy and distribute verbatim copies
3514 of this license document, but changing it is not allowed.
3519 The purpose of this License is to make a manual, textbook, or other
3520 written document "free" in the sense of freedom: to assure everyone
3521 the effective freedom to copy and redistribute it, with or without
3522 modifying it, either commercially or noncommercially. Secondarily,
3523 this License preserves for the author and publisher a way to get
3524 credit for their work, while not being considered responsible for
3525 modifications made by others.
3527 This License is a kind of "copyleft", which means that derivative
3528 works of the document must themselves be free in the same sense.
3529 It complements the GNU General Public License, which is a copyleft
3530 license designed for free software.
3532 We have designed this License in order to use it for manuals for
3533 free software, because free software needs free documentation: a
3534 free program should come with manuals providing the same freedoms
3535 that the software does. But this License is not limited to
3536 software manuals; it can be used for any textual work, regardless
3537 of subject matter or whether it is published as a printed book.
3538 We recommend this License principally for works whose purpose is
3539 instruction or reference.
3542 1. APPLICABILITY AND DEFINITIONS
3544 This License applies to any manual or other work that contains a
3545 notice placed by the copyright holder saying it can be distributed
3546 under the terms of this License. The "Document", below, refers to
3547 any such manual or work. Any member of the public is a licensee,
3548 and is addressed as "you."
3550 A "Modified Version" of the Document means any work containing the
3551 Document or a portion of it, either copied verbatim, or with
3552 modifications and/or translated into another language.
3554 A "Secondary Section" is a named appendix or a front-matter
3555 section of the Document that deals exclusively with the
3556 relationship of the publishers or authors of the Document to the
3557 Document's overall subject (or to related matters) and contains
3558 nothing that could fall directly within that overall subject.
3559 (For example, if the Document is in part a textbook of
3560 mathematics, a Secondary Section may not explain any mathematics.)
3561 The relationship could be a matter of historical connection with
3562 the subject or with related matters, or of legal, commercial,
3563 philosophical, ethical or political position regarding them.
3565 The "Invariant Sections" are certain Secondary Sections whose
3566 titles are designated, as being those of Invariant Sections, in
3567 the notice that says that the Document is released under this
3570 The "Cover Texts" are certain short passages of text that are
3571 listed, as Front-Cover Texts or Back-Cover Texts, in the notice
3572 that says that the Document is released under this License.
3574 A "Transparent" copy of the Document means a machine-readable copy,
3575 represented in a format whose specification is available to the
3576 general public, whose contents can be viewed and edited directly
3577 and straightforwardly with generic text editors or (for images
3578 composed of pixels) generic paint programs or (for drawings) some
3579 widely available drawing editor, and that is suitable for input to
3580 text formatters or for automatic translation to a variety of
3581 formats suitable for input to text formatters. A copy made in an
3582 otherwise Transparent file format whose markup has been designed
3583 to thwart or discourage subsequent modification by readers is not
3584 Transparent. A copy that is not "Transparent" is called "Opaque."
3586 Examples of suitable formats for Transparent copies include plain
3587 ASCII without markup, Texinfo input format, LaTeX input format,
3588 SGML or XML using a publicly available DTD, and
3589 standard-conforming simple HTML designed for human modification.
3590 Opaque formats include PostScript, PDF, proprietary formats that
3591 can be read and edited only by proprietary word processors, SGML
3592 or XML for which the DTD and/or processing tools are not generally
3593 available, and the machine-generated HTML produced by some word
3594 processors for output purposes only.
3596 The "Title Page" means, for a printed book, the title page itself,
3597 plus such following pages as are needed to hold, legibly, the
3598 material this License requires to appear in the title page. For
3599 works in formats which do not have any title page as such, "Title
3600 Page" means the text near the most prominent appearance of the
3601 work's title, preceding the beginning of the body of the text.
3605 You may copy and distribute the Document in any medium, either
3606 commercially or noncommercially, provided that this License, the
3607 copyright notices, and the license notice saying this License
3608 applies to the Document are reproduced in all copies, and that you
3609 add no other conditions whatsoever to those of this License. You
3610 may not use technical measures to obstruct or control the reading
3611 or further copying of the copies you make or distribute. However,
3612 you may accept compensation in exchange for copies. If you
3613 distribute a large enough number of copies you must also follow
3614 the conditions in section 3.
3616 You may also lend copies, under the same conditions stated above,
3617 and you may publicly display copies.
3619 3. COPYING IN QUANTITY
3621 If you publish printed copies of the Document numbering more than
3622 100, and the Document's license notice requires Cover Texts, you
3623 must enclose the copies in covers that carry, clearly and legibly,
3624 all these Cover Texts: Front-Cover Texts on the front cover, and
3625 Back-Cover Texts on the back cover. Both covers must also clearly
3626 and legibly identify you as the publisher of these copies. The
3627 front cover must present the full title with all words of the
3628 title equally prominent and visible. You may add other material
3629 on the covers in addition. Copying with changes limited to the
3630 covers, as long as they preserve the title of the Document and
3631 satisfy these conditions, can be treated as verbatim copying in
3634 If the required texts for either cover are too voluminous to fit
3635 legibly, you should put the first ones listed (as many as fit
3636 reasonably) on the actual cover, and continue the rest onto
3639 If you publish or distribute Opaque copies of the Document
3640 numbering more than 100, you must either include a
3641 machine-readable Transparent copy along with each Opaque copy, or
3642 state in or with each Opaque copy a publicly-accessible
3643 computer-network location containing a complete Transparent copy
3644 of the Document, free of added material, which the general
3645 network-using public has access to download anonymously at no
3646 charge using public-standard network protocols. If you use the
3647 latter option, you must take reasonably prudent steps, when you
3648 begin distribution of Opaque copies in quantity, to ensure that
3649 this Transparent copy will remain thus accessible at the stated
3650 location until at least one year after the last time you
3651 distribute an Opaque copy (directly or through your agents or
3652 retailers) of that edition to the public.
3654 It is requested, but not required, that you contact the authors of
3655 the Document well before redistributing any large number of
3656 copies, to give them a chance to provide you with an updated
3657 version of the Document.
3661 You may copy and distribute a Modified Version of the Document
3662 under the conditions of sections 2 and 3 above, provided that you
3663 release the Modified Version under precisely this License, with
3664 the Modified Version filling the role of the Document, thus
3665 licensing distribution and modification of the Modified Version to
3666 whoever possesses a copy of it. In addition, you must do these
3667 things in the Modified Version:
3669 A. Use in the Title Page (and on the covers, if any) a title
3670 distinct from that of the Document, and from those of previous
3671 versions (which should, if there were any, be listed in the
3672 History section of the Document). You may use the same title
3673 as a previous version if the original publisher of that version
3675 B. List on the Title Page, as authors, one or more persons or
3676 entities responsible for authorship of the modifications in the
3677 Modified Version, together with at least five of the principal
3678 authors of the Document (all of its principal authors, if it
3679 has less than five).
3680 C. State on the Title page the name of the publisher of the
3681 Modified Version, as the publisher.
3682 D. Preserve all the copyright notices of the Document.
3683 E. Add an appropriate copyright notice for your modifications
3684 adjacent to the other copyright notices.
3685 F. Include, immediately after the copyright notices, a license
3686 notice giving the public permission to use the Modified Version
3687 under the terms of this License, in the form shown in the
3689 G. Preserve in that license notice the full lists of Invariant
3690 Sections and required Cover Texts given in the Document's
3692 H. Include an unaltered copy of this License.
3693 I. Preserve the section entitled "History", and its title, and add
3694 to it an item stating at least the title, year, new authors, and
3695 publisher of the Modified Version as given on the Title Page.
3696 If there is no section entitled "History" in the Document,
3697 create one stating the title, year, authors, and publisher of
3698 the Document as given on its Title Page, then add an item
3699 describing the Modified Version as stated in the previous
3701 J. Preserve the network location, if any, given in the Document for
3702 public access to a Transparent copy of the Document, and
3703 likewise the network locations given in the Document for
3704 previous versions it was based on. These may be placed in the
3705 "History" section. You may omit a network location for a work
3706 that was published at least four years before the Document
3707 itself, or if the original publisher of the version it refers
3708 to gives permission.
3709 K. In any section entitled "Acknowledgements" or "Dedications",
3710 preserve the section's title, and preserve in the section all the
3711 substance and tone of each of the contributor acknowledgements
3712 and/or dedications given therein.
3713 L. Preserve all the Invariant Sections of the Document,
3714 unaltered in their text and in their titles. Section numbers
3715 or the equivalent are not considered part of the section titles.
3716 M. Delete any section entitled "Endorsements." Such a section
3717 may not be included in the Modified Version.
3718 N. Do not retitle any existing section as "Endorsements" or to
3719 conflict in title with any Invariant Section.
3721 If the Modified Version includes new front-matter sections or
3722 appendices that qualify as Secondary Sections and contain no
3723 material copied from the Document, you may at your option
3724 designate some or all of these sections as invariant. To do this,
3725 add their titles to the list of Invariant Sections in the Modified
3726 Version's license notice. These titles must be distinct from any
3727 other section titles.
3729 You may add a section entitled "Endorsements", provided it contains
3730 nothing but endorsements of your Modified Version by various
3731 parties-for example, statements of peer review or that the text has
3732 been approved by an organization as the authoritative definition
3735 You may add a passage of up to five words as a Front-Cover Text,
3736 and a passage of up to 25 words as a Back-Cover Text, to the end
3737 of the list of Cover Texts in the Modified Version. Only one
3738 passage of Front-Cover Text and one of Back-Cover Text may be
3739 added by (or through arrangements made by) any one entity. If the
3740 Document already includes a cover text for the same cover,
3741 previously added by you or by arrangement made by the same entity
3742 you are acting on behalf of, you may not add another; but you may
3743 replace the old one, on explicit permission from the previous
3744 publisher that added the old one.
3746 The author(s) and publisher(s) of the Document do not by this
3747 License give permission to use their names for publicity for or to
3748 assert or imply endorsement of any Modified Version.
3750 5. COMBINING DOCUMENTS
3752 You may combine the Document with other documents released under
3753 this License, under the terms defined in section 4 above for
3754 modified versions, provided that you include in the combination
3755 all of the Invariant Sections of all of the original documents,
3756 unmodified, and list them all as Invariant Sections of your
3757 combined work in its license notice.
3759 The combined work need only contain one copy of this License, and
3760 multiple identical Invariant Sections may be replaced with a single
3761 copy. If there are multiple Invariant Sections with the same name
3762 but different contents, make the title of each such section unique
3763 by adding at the end of it, in parentheses, the name of the
3764 original author or publisher of that section if known, or else a
3765 unique number. Make the same adjustment to the section titles in
3766 the list of Invariant Sections in the license notice of the
3769 In the combination, you must combine any sections entitled
3770 "History" in the various original documents, forming one section
3771 entitled "History"; likewise combine any sections entitled
3772 "Acknowledgements", and any sections entitled "Dedications." You
3773 must delete all sections entitled "Endorsements."
3775 6. COLLECTIONS OF DOCUMENTS
3777 You may make a collection consisting of the Document and other
3778 documents released under this License, and replace the individual
3779 copies of this License in the various documents with a single copy
3780 that is included in the collection, provided that you follow the
3781 rules of this License for verbatim copying of each of the
3782 documents in all other respects.
3784 You may extract a single document from such a collection, and
3785 distribute it individually under this License, provided you insert
3786 a copy of this License into the extracted document, and follow
3787 this License in all other respects regarding verbatim copying of
3790 7. AGGREGATION WITH INDEPENDENT WORKS
3792 A compilation of the Document or its derivatives with other
3793 separate and independent documents or works, in or on a volume of
3794 a storage or distribution medium, does not as a whole count as a
3795 Modified Version of the Document, provided no compilation
3796 copyright is claimed for the compilation. Such a compilation is
3797 called an "aggregate", and this License does not apply to the
3798 other self-contained works thus compiled with the Document, on
3799 account of their being thus compiled, if they are not themselves
3800 derivative works of the Document.
3802 If the Cover Text requirement of section 3 is applicable to these
3803 copies of the Document, then if the Document is less than one
3804 quarter of the entire aggregate, the Document's Cover Texts may be
3805 placed on covers that surround only the Document within the
3806 aggregate. Otherwise they must appear on covers around the whole
3811 Translation is considered a kind of modification, so you may
3812 distribute translations of the Document under the terms of section
3813 4. Replacing Invariant Sections with translations requires special
3814 permission from their copyright holders, but you may include
3815 translations of some or all Invariant Sections in addition to the
3816 original versions of these Invariant Sections. You may include a
3817 translation of this License provided that you also include the
3818 original English version of this License. In case of a
3819 disagreement between the translation and the original English
3820 version of this License, the original English version will prevail.
3824 You may not copy, modify, sublicense, or distribute the Document
3825 except as expressly provided for under this License. Any other
3826 attempt to copy, modify, sublicense or distribute the Document is
3827 void, and will automatically terminate your rights under this
3828 License. However, parties who have received copies, or rights,
3829 from you under this License will not have their licenses
3830 terminated so long as such parties remain in full compliance.
3832 10. FUTURE REVISIONS OF THIS LICENSE
3834 The Free Software Foundation may publish new, revised versions of
3835 the GNU Free Documentation License from time to time. Such new
3836 versions will be similar in spirit to the present version, but may
3837 differ in detail to address new problems or concerns. See
3838 http://www.gnu.org/copyleft/.
3840 Each version of the License is given a distinguishing version
3841 number. If the Document specifies that a particular numbered
3842 version of this License "or any later version" applies to it, you
3843 have the option of following the terms and conditions either of
3844 that specified version or of any later version that has been
3845 published (not as a draft) by the Free Software Foundation. If
3846 the Document does not specify a version number of this License,
3847 you may choose any version ever published (not as a draft) by the
3848 Free Software Foundation.
3851 ADDENDUM: How to use this License for your documents
3852 ====================================================
3854 To use this License in a document you have written, include a copy of
3855 the License in the document and put the following copyright and license
3856 notices just after the title page:
3858 Copyright (C) YEAR YOUR NAME.
3859 Permission is granted to copy, distribute and/or modify this document
3860 under the terms of the GNU Free Documentation License, Version 1.1
3861 or any later version published by the Free Software Foundation;
3862 with the Invariant Sections being LIST THEIR TITLES, with the
3863 Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
3864 A copy of the license is included in the section entitled "GNU
3865 Free Documentation License."
3867 If you have no Invariant Sections, write "with no Invariant Sections"
3868 instead of saying which ones are invariant. If you have no Front-Cover
3869 Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being
3870 LIST"; likewise for Back-Cover Texts.
3872 If your document contains nontrivial examples of program code, we
3873 recommend releasing these examples in parallel under your choice of
3874 free software license, such as the GNU General Public License, to
3875 permit their use in free software.
3878 File: binutils.info, Node: Binutils Index, Prev: GNU Free Documentation License, Up: Top
3886 * .stab: objdump. (line 324)
3887 * addr2line: addr2line. (line 6)
3888 * address to file name and line number: addr2line. (line 6)
3889 * all header information, object file: objdump. (line 364)
3891 * ar compatibility: ar. (line 40)
3892 * architecture: objdump. (line 176)
3893 * architectures available: objdump. (line 161)
3894 * archive contents: ranlib. (line 6)
3895 * archive headers: objdump. (line 60)
3896 * archives: ar. (line 6)
3897 * base files: dlltool. (line 108)
3898 * bug criteria: Bug Criteria. (line 6)
3899 * bug reports: Bug Reporting. (line 6)
3900 * bugs: Reporting Bugs. (line 6)
3901 * bugs, reporting: Bug Reporting. (line 6)
3902 * c++filt: c++filt. (line 6)
3903 * changing object addresses: objcopy. (line 275)
3904 * changing section address: objcopy. (line 285)
3905 * changing section LMA: objcopy. (line 293)
3906 * changing section VMA: objcopy. (line 306)
3907 * changing start address: objcopy. (line 270)
3908 * collections of files: ar. (line 6)
3909 * compatibility, ar: ar. (line 40)
3910 * contents of archive: ar cmdline. (line 88)
3911 * crash: Bug Criteria. (line 9)
3912 * creating archives: ar cmdline. (line 127)
3913 * cxxfilt: c++filt. (line 14)
3914 * dates in archive: ar cmdline. (line 154)
3915 * debug symbols: objdump. (line 319)
3916 * debugging symbols: nm. (line 116)
3917 * deleting from archive: ar cmdline. (line 26)
3918 * demangling C++ symbols: c++filt. (line 6)
3919 * demangling in nm: nm. (line 124)
3920 * demangling in objdump <1>: addr2line. (line 55)
3921 * demangling in objdump: objdump. (line 88)
3922 * disassembling object code: objdump. (line 110)
3923 * disassembly architecture: objdump. (line 176)
3924 * disassembly endianness: objdump. (line 126)
3925 * disassembly, with source: objdump. (line 305)
3926 * discarding symbols: strip. (line 6)
3927 * DLL: dlltool. (line 6)
3928 * dlltool: dlltool. (line 6)
3929 * DWARF: objdump. (line 319)
3930 * dynamic relocation entries, in object file: objdump. (line 294)
3931 * dynamic symbol table entries, printing: objdump. (line 348)
3932 * dynamic symbols: nm. (line 136)
3933 * ELF dynamic section information: readelf. (line 102)
3934 * ELF file header information: readelf. (line 51)
3935 * ELF file information: readelf. (line 6)
3936 * ELF notes: readelf. (line 87)
3937 * ELF object file format: objdump. (line 324)
3938 * ELF program header information: readelf. (line 57)
3939 * ELF reloc information: readelf. (line 91)
3940 * ELF section group information: readelf. (line 68)
3941 * ELF section information: readelf. (line 63)
3942 * ELF segment information: readelf. (line 57)
3943 * ELF symbol table information: readelf. (line 78)
3944 * ELF version sections informations: readelf. (line 106)
3945 * endianness: objdump. (line 126)
3946 * error on valid input: Bug Criteria. (line 12)
3947 * external symbols: nm. (line 148)
3948 * extract from archive: ar cmdline. (line 103)
3949 * fatal signal: Bug Criteria. (line 9)
3950 * file name: nm. (line 110)
3951 * header information, all: objdump. (line 364)
3952 * input .def file: dlltool. (line 104)
3953 * input file name: nm. (line 110)
3954 * libraries: ar. (line 25)
3955 * listings strings: strings. (line 6)
3956 * machine instructions: objdump. (line 110)
3957 * moving in archive: ar cmdline. (line 34)
3958 * MRI compatibility, ar: ar scripts. (line 8)
3959 * name duplication in archive: ar cmdline. (line 97)
3960 * name length: ar. (line 18)
3962 * nm compatibility: nm. (line 120)
3963 * nm format: nm. (line 120)
3964 * not writing archive index: ar cmdline. (line 173)
3965 * objdump: objdump. (line 6)
3966 * object code format <1>: addr2line. (line 50)
3967 * object code format <2>: strings. (line 66)
3968 * object code format <3>: size. (line 84)
3969 * object code format <4>: objdump. (line 74)
3970 * object code format: nm. (line 212)
3971 * object file header: objdump. (line 132)
3972 * object file information: objdump. (line 6)
3973 * object file sections: objdump. (line 300)
3974 * object formats available: objdump. (line 161)
3975 * operations on archive: ar cmdline. (line 22)
3976 * printing from archive: ar cmdline. (line 46)
3977 * printing strings: strings. (line 6)
3978 * quick append to archive: ar cmdline. (line 54)
3979 * radix for section sizes: size. (line 66)
3980 * ranlib: ranlib. (line 6)
3981 * readelf: readelf. (line 6)
3982 * relative placement in archive: ar cmdline. (line 115)
3983 * relocation entries, in object file: objdump. (line 288)
3984 * removing symbols: strip. (line 6)
3985 * repeated names in archive: ar cmdline. (line 97)
3986 * replacement in archive: ar cmdline. (line 70)
3987 * reporting bugs: Reporting Bugs. (line 6)
3988 * scripts, ar: ar scripts. (line 8)
3989 * section addresses in objdump: objdump. (line 66)
3990 * section headers: objdump. (line 143)
3991 * section information: objdump. (line 166)
3992 * section sizes: size. (line 6)
3993 * sections, full contents: objdump. (line 300)
3994 * size: size. (line 6)
3995 * size display format: size. (line 27)
3996 * size number format: size. (line 66)
3997 * sorting symbols: nm. (line 167)
3998 * source code context: objdump. (line 136)
3999 * source disassembly: objdump. (line 305)
4000 * source file name: nm. (line 110)
4001 * source filenames for object files: objdump. (line 170)
4002 * stab: objdump. (line 324)
4003 * start-address: objdump. (line 334)
4004 * stop-address: objdump. (line 338)
4005 * strings: strings. (line 6)
4006 * strings, printing: strings. (line 6)
4007 * strip: strip. (line 6)
4008 * symbol index <1>: ranlib. (line 6)
4009 * symbol index: ar. (line 28)
4010 * symbol index, listing: nm. (line 182)
4011 * symbol line numbers: nm. (line 152)
4012 * symbol table entries, printing: objdump. (line 343)
4013 * symbols: nm. (line 6)
4014 * symbols, discarding: strip. (line 6)
4015 * undefined symbols: nm. (line 217)
4016 * Unix compatibility, ar: ar cmdline. (line 8)
4017 * unwind information: readelf. (line 96)
4018 * updating an archive: ar cmdline. (line 180)
4019 * version: Top. (line 6)
4020 * VMA in objdump: objdump. (line 66)
4021 * wide output, printing: objdump. (line 370)
4022 * writing archive index: ar cmdline. (line 167)
4029 Node: ar cmdline
\x7f5590
4030 Node: ar scripts
\x7f13733
4032 Node: objcopy
\x7f27616
4033 Node: objdump
\x7f53142
4034 Node: ranlib
\x7f68108
4036 Node: strings
\x7f71868
4037 Node: strip
\x7f74246
4038 Node: c++filt
\x7f80196
4039 Ref: c++filt-Footnote-1
\x7f85120
4040 Node: addr2line
\x7f85226
4041 Node: nlmconv
\x7f88497
4042 Node: windmc
\x7f91103
4043 Node: windres
\x7f94824
4044 Node: dlltool
\x7f100851
4045 Node: def file format
\x7f111688
4046 Node: readelf
\x7f113426
4047 Node: Common Options
\x7f118133
4048 Node: Selecting The Target System
\x7f119173
4049 Node: Target Selection
\x7f120105
4050 Node: Architecture Selection
\x7f122087
4051 Node: Reporting Bugs
\x7f122915
4052 Node: Bug Criteria
\x7f123694
4053 Node: Bug Reporting
\x7f124247
4054 Node: GNU Free Documentation License
\x7f131117
4055 Node: Binutils Index
\x7f150858