1 This is binutils.info, produced by makeinfo version 6.7 from
4 Copyright (C) 1991-2022 Free Software Foundation, Inc.
6 Permission is granted to copy, distribute and/or modify this document
7 under the terms of the GNU Free Documentation License, Version 1.3 or
8 any later version published by the Free Software Foundation; with no
9 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
10 Texts. A copy of the license is included in the section entitled "GNU
11 Free Documentation License".
13 INFO-DIR-SECTION Software development
15 * Binutils: (binutils). The GNU binary utilities.
18 INFO-DIR-SECTION Individual utilities
20 * addr2line: (binutils)addr2line. Convert addresses to file and line.
21 * ar: (binutils)ar. Create, modify, and extract from archives.
22 * c++filt: (binutils)c++filt. Filter to demangle encoded C++ symbols.
23 * cxxfilt: (binutils)c++filt. MS-DOS name for c++filt.
24 * dlltool: (binutils)dlltool. Create files needed to build and use DLLs.
25 * nm: (binutils)nm. List symbols from object files.
26 * objcopy: (binutils)objcopy. Copy and translate object files.
27 * objdump: (binutils)objdump. Display information from object files.
28 * ranlib: (binutils)ranlib. Generate index to archive contents.
29 * readelf: (binutils)readelf. Display the contents of ELF format files.
30 * size: (binutils)size. List section sizes and total size.
31 * strings: (binutils)strings. List printable strings from files.
32 * strip: (binutils)strip. Discard symbols.
33 * elfedit: (binutils)elfedit. Update ELF header and property of ELF files.
34 * windmc: (binutils)windmc. Generator for Windows message resources.
35 * windres: (binutils)windres. Manipulate Windows resources.
39 File: binutils.info, Node: Top, Next: ar, Up: (dir)
44 This brief manual contains documentation for the GNU binary utilities
45 (GNU Binutils) version 2.38:
47 This document is distributed under the terms of the GNU Free
48 Documentation License version 1.3. A copy of the license is included in
49 the section entitled "GNU Free Documentation License".
53 * ar:: Create, modify, and extract from archives
54 * nm:: List symbols from object files
55 * objcopy:: Copy and translate object files
56 * objdump:: Display information from object files
57 * ranlib:: Generate index to archive contents
58 * size:: List section sizes and total size
59 * strings:: List printable strings from files
60 * strip:: Discard symbols
61 * c++filt:: Filter to demangle encoded C++ symbols
62 * cxxfilt: c++filt. MS-DOS name for c++filt
63 * addr2line:: Convert addresses to file and line
64 * windmc:: Generator for Windows message resources
65 * windres:: Manipulate Windows resources
66 * dlltool:: Create files needed to build and use DLLs
67 * readelf:: Display the contents of ELF format files
68 * elfedit:: Update ELF header and property of ELF files
69 * Common Options:: Command-line options for all utilities
70 * Selecting the Target System:: How these utilities determine the target
71 * debuginfod:: Using binutils with debuginfod
72 * Reporting Bugs:: Reporting Bugs
73 * GNU Free Documentation License:: GNU Free Documentation License
74 * Binutils Index:: Binutils Index
77 File: binutils.info, Node: ar, Next: nm, Prev: Top, Up: Top
82 ar [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [--record-libdeps LIBDEPS] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
85 The GNU 'ar' program creates, modifies, and extracts from archives.
86 An "archive" is a single file holding a collection of other files in a
87 structure that makes it possible to retrieve the original individual
88 files (called "members" of the archive).
90 The original files' contents, mode (permissions), timestamp, owner,
91 and group are preserved in the archive, and can be restored on
94 GNU 'ar' can maintain archives whose members have names of any
95 length; however, depending on how 'ar' is configured on your system, a
96 limit on member-name length may be imposed for compatibility with
97 archive formats maintained with other tools. If it exists, the limit is
98 often 15 characters (typical of formats related to a.out) or 16
99 characters (typical of formats related to coff).
101 'ar' is considered a binary utility because archives of this sort are
102 most often used as "libraries" holding commonly needed subroutines.
103 Since libraries often will depend on other libraries, 'ar' can also
104 record the dependencies of a library when the '--record-libdeps' option
107 'ar' creates an index to the symbols defined in relocatable object
108 modules in the archive when you specify the modifier 's'. Once created,
109 this index is updated in the archive whenever 'ar' makes a change to its
110 contents (save for the 'q' update operation). An archive with such an
111 index speeds up linking to the library, and allows routines in the
112 library to call each other without regard to their placement in the
115 You may use 'nm -s' or 'nm --print-armap' to list this index table.
116 If an archive lacks the table, another form of 'ar' called 'ranlib' can
117 be used to add just the table.
119 GNU 'ar' can optionally create a _thin_ archive, which contains a
120 symbol index and references to the original copies of the member files
121 of the archive. This is useful for building libraries for use within a
122 local build tree, where the relocatable objects are expected to remain
123 available, and copying the contents of each object would only waste time
126 An archive can either be _thin_ or it can be normal. It cannot be
127 both at the same time. Once an archive is created its format cannot be
128 changed without first deleting it and then creating a new archive in its
131 Thin archives are also _flattened_, so that adding one thin archive
132 to another thin archive does not nest it, as would happen with a normal
133 archive. Instead the elements of the first archive are added
134 individually to the second archive.
136 The paths to the elements of the archive are stored relative to the
139 GNU 'ar' is designed to be compatible with two different facilities.
140 You can control its activity using command-line options, like the
141 different varieties of 'ar' on Unix systems; or, if you specify the
142 single command-line option '-M', you can control it with a script
143 supplied via standard input, like the MRI "librarian" program.
147 * ar cmdline:: Controlling 'ar' on the command line
148 * ar scripts:: Controlling 'ar' with a script
151 File: binutils.info, Node: ar cmdline, Next: ar scripts, Up: ar
153 1.1 Controlling 'ar' on the Command Line
154 ========================================
156 ar [-X32_64] [-]P[MOD] [--plugin NAME] [--target BFDNAME] [--output DIRNAME] [--record-libdeps LIBDEPS] [--thin] [RELPOS] [COUNT] ARCHIVE [MEMBER...]
158 When you use 'ar' in the Unix style, 'ar' insists on at least two
159 arguments to execute: one keyletter specifying the _operation_
160 (optionally accompanied by other keyletters specifying _modifiers_), and
161 the archive name to act on.
163 Most operations can also accept further MEMBER arguments, specifying
164 particular files to operate on.
166 GNU 'ar' allows you to mix the operation code P and modifier flags
167 MOD in any order, within the first command-line argument.
169 If you wish, you may begin the first command-line argument with a
172 The P keyletter specifies what operation to execute; it may be any of
173 the following, but you must specify only one of them:
176 _Delete_ modules from the archive. Specify the names of modules to
177 be deleted as MEMBER...; the archive is untouched if you specify no
180 If you specify the 'v' modifier, 'ar' lists each module as it is
184 Use this operation to _move_ members in an archive.
186 The ordering of members in an archive can make a difference in how
187 programs are linked using the library, if a symbol is defined in
188 more than one member.
190 If no modifiers are used with 'm', any members you name in the
191 MEMBER arguments are moved to the _end_ of the archive; you can use
192 the 'a', 'b', or 'i' modifiers to move them to a specified place
196 _Print_ the specified members of the archive, to the standard
197 output file. If the 'v' modifier is specified, show the member
198 name before copying its contents to standard output.
200 If you specify no MEMBER arguments, all the files in the archive
204 _Quick append_; Historically, add the files MEMBER... to the end of
205 ARCHIVE, without checking for replacement.
207 The modifiers 'a', 'b', and 'i' do _not_ affect this operation; new
208 members are always placed at the end of the archive.
210 The modifier 'v' makes 'ar' list each file as it is appended.
212 Since the point of this operation is speed, implementations of 'ar'
213 have the option of not updating the archive's symbol table if one
214 exists. Too many different systems however assume that symbol
215 tables are always up-to-date, so GNU 'ar' will rebuild the table
216 even with a quick append.
218 Note - GNU 'ar' treats the command 'qs' as a synonym for 'r' -
219 replacing already existing files in the archive and appending new
223 Insert the files MEMBER... into ARCHIVE (with _replacement_). This
224 operation differs from 'q' in that any previously existing members
225 are deleted if their names match those being added.
227 If one of the files named in MEMBER... does not exist, 'ar'
228 displays an error message, and leaves undisturbed any existing
229 members of the archive matching that name.
231 By default, new members are added at the end of the file; but you
232 may use one of the modifiers 'a', 'b', or 'i' to request placement
233 relative to some existing member.
235 The modifier 'v' used with this operation elicits a line of output
236 for each file inserted, along with one of the letters 'a' or 'r' to
237 indicate whether the file was appended (no old member deleted) or
241 Add an index to the archive, or update it if it already exists.
242 Note this command is an exception to the rule that there can only
243 be one command letter, as it is possible to use it as either a
244 command or a modifier. In either case it does the same thing.
247 Display a _table_ listing the contents of ARCHIVE, or those of the
248 files listed in MEMBER... that are present in the archive.
249 Normally only the member name is shown, but if the modifier 'O' is
250 specified, then the corresponding offset of the member is also
251 displayed. Finally, in order to see the modes (permissions),
252 timestamp, owner, group, and size the 'v' modifier should be
255 If you do not specify a MEMBER, all files in the archive are
258 If there is more than one file with the same name (say, 'fie') in
259 an archive (say 'b.a'), 'ar t b.a fie' lists only the first
260 instance; to see them all, you must ask for a complete listing--in
261 our example, 'ar t b.a'.
264 _Extract_ members (named MEMBER) from the archive. You can use the
265 'v' modifier with this operation, to request that 'ar' list each
266 name as it extracts it.
268 If you do not specify a MEMBER, all files in the archive are
271 Files cannot be extracted from a thin archive, and there are
272 restrictions on extracting from archives created with 'P': The
273 paths must not be absolute, may not contain '..', and any
274 subdirectories in the paths must exist. If it is desired to avoid
275 these restrictions then used the '--output' option to specify an
278 A number of modifiers (MOD) may immediately follow the P keyletter,
279 to specify variations on an operation's behavior:
282 Add new files _after_ an existing member of the archive. If you
283 use the modifier 'a', the name of an existing archive member must
284 be present as the RELPOS argument, before the ARCHIVE
288 Add new files _before_ an existing member of the archive. If you
289 use the modifier 'b', the name of an existing archive member must
290 be present as the RELPOS argument, before the ARCHIVE
291 specification. (same as 'i').
294 _Create_ the archive. The specified ARCHIVE is always created if
295 it did not exist, when you request an update. But a warning is
296 issued unless you specify in advance that you expect to create it,
297 by using this modifier.
300 Operate in _deterministic_ mode. When adding files and the archive
301 index use zero for UIDs, GIDs, timestamps, and use consistent file
302 modes for all files. When this option is used, if 'ar' is used
303 with identical options and identical input files, multiple runs
304 will create identical output files regardless of the input files'
305 owners, groups, file modes, or modification times.
307 If 'binutils' was configured with
308 '--enable-deterministic-archives', then this mode is on by default.
309 It can be disabled with the 'U' modifier, below.
312 Truncate names in the archive. GNU 'ar' will normally permit file
313 names of any length. This will cause it to create archives which
314 are not compatible with the native 'ar' program on some systems.
315 If this is a concern, the 'f' modifier may be used to truncate file
316 names when putting them in the archive.
319 Insert new files _before_ an existing member of the archive. If
320 you use the modifier 'i', the name of an existing archive member
321 must be present as the RELPOS argument, before the ARCHIVE
322 specification. (same as 'b').
325 Specify dependencies of this library. The dependencies must
326 immediately follow this option character, must use the same syntax
327 as the linker command line, and must be specified within a single
328 argument. I.e., if multiple items are needed, they must be quoted
329 to form a single command line argument. For example 'L
330 "-L/usr/local/lib -lmydep1 -lmydep2"'
333 Uses the COUNT parameter. This is used if there are multiple
334 entries in the archive with the same name. Extract or delete
335 instance COUNT of the given name from the archive.
338 Preserve the _original_ dates of members when extracting them. If
339 you do not specify this modifier, files extracted from the archive
340 are stamped with the time of extraction.
343 Display member offsets inside the archive. Use together with the
347 Use the full path name when matching or storing names in the
348 archive. Archives created with full path names are not POSIX
349 compliant, and thus may not work with tools other than up to date
350 GNU tools. Modifying such archives with GNU 'ar' without using 'P'
351 will remove the full path names unless the archive is a thin
352 archive. Note that 'P' may be useful when adding files to a thin
353 archive since 'r' without 'P' ignores the path when choosing which
354 element to replace. Thus
355 ar rcST archive.a subdir/file1 subdir/file2 file1
356 will result in the first 'subdir/file1' being replaced with 'file1'
357 from the current directory. Adding 'P' will prevent this
361 Write an object-file index into the archive, or update an existing
362 one, even if no other change is made to the archive. You may use
363 this modifier flag either with any operation, or alone. Running
364 'ar s' on an archive is equivalent to running 'ranlib' on it.
367 Do not generate an archive symbol table. This can speed up
368 building a large library in several steps. The resulting archive
369 can not be used with the linker. In order to build a symbol table,
370 you must omit the 'S' modifier on the last execution of 'ar', or
371 you must run 'ranlib' on the archive.
374 Deprecated alias for '--thin'. 'T' is not recommended because in
375 many ar implementations 'T' has a different meaning, as specified
376 by X/Open System Interface.
379 Normally, 'ar r'... inserts all files listed into the archive. If
380 you would like to insert _only_ those of the files you list that
381 are newer than existing members of the same names, use this
382 modifier. The 'u' modifier is allowed only for the operation 'r'
383 (replace). In particular, the combination 'qu' is not allowed,
384 since checking the timestamps would lose any speed advantage from
388 Do _not_ operate in _deterministic_ mode. This is the inverse of
389 the 'D' modifier, above: added files and the archive index will get
390 their actual UID, GID, timestamp, and file mode values.
392 This is the default unless 'binutils' was configured with
393 '--enable-deterministic-archives'.
396 This modifier requests the _verbose_ version of an operation. Many
397 operations display additional information, such as filenames
398 processed, when the modifier 'v' is appended.
401 This modifier shows the version number of 'ar'.
403 The 'ar' program also supports some command-line options which are
404 neither modifiers nor actions, but which do change its behaviour in
408 Displays the list of command-line options supported by 'ar' and
412 Displays the version information of 'ar' and then exits.
415 'ar' ignores an initial option spelled '-X32_64', for compatibility
416 with AIX. The behaviour produced by this option is the default for
417 GNU 'ar'. 'ar' does not support any of the other '-X' options; in
418 particular, it does not support '-X32' which is the default for AIX
422 The optional command-line switch '--plugin NAME' causes 'ar' to
423 load the plugin called NAME which adds support for more file
424 formats, including object files with link-time optimization
427 This option is only available if the toolchain has been built with
428 plugin support enabled.
430 If '--plugin' is not provided, but plugin support has been enabled
431 then 'ar' iterates over the files in '${libdir}/bfd-plugins' in
432 alphabetic order and the first plugin that claims the object in
435 Please note that this plugin search directory is _not_ the one used
436 by 'ld''s '-plugin' option. In order to make 'ar' use the linker
437 plugin it must be copied into the '${libdir}/bfd-plugins'
438 directory. For GCC based compilations the linker plugin is called
439 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
440 called 'LLVMgold.so'. The GCC plugin is always backwards
441 compatible with earlier versions, so it is sufficient to just copy
445 The optional command-line switch '--target BFDNAME' specifies that
446 the archive members are in an object code format different from
447 your system's default format. See *Note Target Selection::, for
451 The '--output' option can be used to specify a path to a directory
452 into which archive members should be extracted. If this option is
453 not specified then the current directory will be used.
455 Note - although the presence of this option does imply a 'x'
456 extraction operation that option must still be included on the
459 '--record-libdeps LIBDEPS'
460 The '--record-libdeps' option is identical to the 'l' modifier,
461 just handled in long form.
464 Make the specified ARCHIVE a _thin_ archive. If it already exists
465 and is a regular archive, the existing members must be present in
466 the same directory as ARCHIVE.
469 File: binutils.info, Node: ar scripts, Prev: ar cmdline, Up: ar
471 1.2 Controlling 'ar' with a Script
472 ==================================
476 If you use the single command-line option '-M' with 'ar', you can
477 control its operation with a rudimentary command language. This form of
478 'ar' operates interactively if standard input is coming directly from a
479 terminal. During interactive use, 'ar' prompts for input (the prompt is
480 'AR >'), and continues executing even after errors. If you redirect
481 standard input to a script file, no prompts are issued, and 'ar'
482 abandons execution (with a nonzero exit code) on any error.
484 The 'ar' command language is _not_ designed to be equivalent to the
485 command-line options; in fact, it provides somewhat less control over
486 archives. The only purpose of the command language is to ease the
487 transition to GNU 'ar' for developers who already have scripts written
488 for the MRI "librarian" program.
490 The syntax for the 'ar' command language is straightforward:
491 * commands are recognized in upper or lower case; for example, 'LIST'
492 is the same as 'list'. In the following descriptions, commands are
493 shown in upper case for clarity.
495 * a single command may appear on each line; it is the first word on
498 * empty lines are allowed, and have no effect.
500 * comments are allowed; text after either of the characters '*' or
503 * Whenever you use a list of names as part of the argument to an 'ar'
504 command, you can separate the individual names with either commas
505 or blanks. Commas are shown in the explanations below, for
508 * '+' is used as a line continuation character; if '+' appears at the
509 end of a line, the text on the following line is considered part of
512 Here are the commands you can use in 'ar' scripts, or when using 'ar'
513 interactively. Three of them have special significance:
515 'OPEN' or 'CREATE' specify a "current archive", which is a temporary
516 file required for most of the other commands.
518 'SAVE' commits the changes so far specified by the script. Prior to
519 'SAVE', commands affect only the temporary copy of the current archive.
522 'ADDLIB ARCHIVE (MODULE, MODULE, ... MODULE)'
523 Add all the contents of ARCHIVE (or, if specified, each named
524 MODULE from ARCHIVE) to the current archive.
526 Requires prior use of 'OPEN' or 'CREATE'.
528 'ADDMOD MEMBER, MEMBER, ... MEMBER'
529 Add each named MEMBER as a module in the current archive.
531 Requires prior use of 'OPEN' or 'CREATE'.
534 Discard the contents of the current archive, canceling the effect
535 of any operations since the last 'SAVE'. May be executed (with no
536 effect) even if no current archive is specified.
539 Creates an archive, and makes it the current archive (required for
540 many other commands). The new archive is created with a temporary
541 name; it is not actually saved as ARCHIVE until you use 'SAVE'.
542 You can overwrite existing archives; similarly, the contents of any
543 existing file named ARCHIVE will not be destroyed until 'SAVE'.
545 'DELETE MODULE, MODULE, ... MODULE'
546 Delete each listed MODULE from the current archive; equivalent to
547 'ar -d ARCHIVE MODULE ... MODULE'.
549 Requires prior use of 'OPEN' or 'CREATE'.
551 'DIRECTORY ARCHIVE (MODULE, ... MODULE)'
552 'DIRECTORY ARCHIVE (MODULE, ... MODULE) OUTPUTFILE'
553 List each named MODULE present in ARCHIVE. The separate command
554 'VERBOSE' specifies the form of the output: when verbose output is
555 off, output is like that of 'ar -t ARCHIVE MODULE...'. When
556 verbose output is on, the listing is like 'ar -tv ARCHIVE
559 Output normally goes to the standard output stream; however, if you
560 specify OUTPUTFILE as a final argument, 'ar' directs the output to
564 Exit from 'ar', with a '0' exit code to indicate successful
565 completion. This command does not save the output file; if you
566 have changed the current archive since the last 'SAVE' command,
567 those changes are lost.
569 'EXTRACT MODULE, MODULE, ... MODULE'
570 Extract each named MODULE from the current archive, writing them
571 into the current directory as separate files. Equivalent to 'ar -x
574 Requires prior use of 'OPEN' or 'CREATE'.
577 Display full contents of the current archive, in "verbose" style
578 regardless of the state of 'VERBOSE'. The effect is like 'ar tv
579 ARCHIVE'. (This single command is a GNU 'ar' enhancement, rather
580 than present for MRI compatibility.)
582 Requires prior use of 'OPEN' or 'CREATE'.
585 Opens an existing archive for use as the current archive (required
586 for many other commands). Any changes as the result of subsequent
587 commands will not actually affect ARCHIVE until you next use
590 'REPLACE MODULE, MODULE, ... MODULE'
591 In the current archive, replace each existing MODULE (named in the
592 'REPLACE' arguments) from files in the current working directory.
593 To execute this command without errors, both the file, and the
594 module in the current archive, must exist.
596 Requires prior use of 'OPEN' or 'CREATE'.
599 Toggle an internal flag governing the output from 'DIRECTORY'.
600 When the flag is on, 'DIRECTORY' output matches output from 'ar -tv
604 Commit your changes to the current archive, and actually save it as
605 a file with the name specified in the last 'CREATE' or 'OPEN'
608 Requires prior use of 'OPEN' or 'CREATE'.
611 File: binutils.info, Node: nm, Next: objcopy, Prev: ar, Up: Top
616 nm [-A|-o|--print-file-name]
619 [-C|--demangle[=STYLE]]
621 [-fFORMAT|--format=FORMAT]
624 [--ifunc-chars=CHARS]
625 [-j|--format=just-symbols]
626 [-l|--line-numbers] [--inlines]
627 [-n|-v|--numeric-sort]
633 [-t RADIX|--radix=RADIX]
634 [-u|--undefined-only]
635 [-U METHOD] [--unicode=METHOD]
640 [--no-recurse-limit|--recurse-limit]]
646 [--with-symbol-versions]
647 [--without-symbol-versions]
650 GNU 'nm' lists the symbols from object files OBJFILE.... If no
651 object files are listed as arguments, 'nm' assumes the file 'a.out'.
653 For each symbol, 'nm' shows:
655 * The symbol value, in the radix selected by options (see below), or
656 hexadecimal by default.
658 * The symbol type. At least the following types are used; others
659 are, as well, depending on the object file format. If lowercase,
660 the symbol is usually local; if uppercase, the symbol is global
661 (external). There are however a few lowercase symbols that are
662 shown for special global symbols ('u', 'v' and 'w').
665 The symbol's value is absolute, and will not be changed by
670 The symbol is in the BSS data section. This section typically
671 contains zero-initialized or uninitialized data, although the
672 exact behavior is system dependent.
676 The symbol is common. Common symbols are uninitialized data.
677 When linking, multiple common symbols may appear with the same
678 name. If the symbol is defined anywhere, the common symbols
679 are treated as undefined references. For more details on
680 common symbols, see the discussion of -warn-common in *note
681 Linker options: (ld.info)Options. The lower case C character
682 is used when the symbol is in a special section for small
687 The symbol is in the initialized data section.
691 The symbol is in an initialized data section for small
692 objects. Some object file formats permit more efficient
693 access to small data objects, such as a global int variable as
694 opposed to a large global array.
697 For PE format files this indicates that the symbol is in a
698 section specific to the implementation of DLLs.
700 For ELF format files this indicates that the symbol is an
701 indirect function. This is a GNU extension to the standard
702 set of ELF symbol types. It indicates a symbol which if
703 referenced by a relocation does not evaluate to its address,
704 but instead must be invoked at runtime. The runtime execution
705 will then return the value to be used in the relocation.
707 Note - the actual symbols display for GNU indirect symbols is
708 controlled by the '--ifunc-chars' command line option. If
709 this option has been provided then the first character in the
710 string will be used for global indirect function symbols. If
711 the string contains a second character then that will be used
712 for local indirect function symbols.
715 The symbol is an indirect reference to another symbol.
718 The symbol is a debugging symbol.
721 The symbol is in the read-only data section.
724 The symbol is in a stack unwind section.
728 The symbol is in a read only data section.
732 The symbol is in an uninitialized or zero-initialized data
733 section for small objects.
737 The symbol is in the text (code) section.
740 The symbol is undefined.
743 The symbol is a unique global symbol. This is a GNU extension
744 to the standard set of ELF symbol bindings. For such a symbol
745 the dynamic linker will make sure that in the entire process
746 there is just one symbol with this name and type in use.
750 The symbol is a weak object. When a weak defined symbol is
751 linked with a normal defined symbol, the normal defined symbol
752 is used with no error. When a weak undefined symbol is linked
753 and the symbol is not defined, the value of the weak symbol
754 becomes zero with no error. On some systems, uppercase
755 indicates that a default value has been specified.
759 The symbol is a weak symbol that has not been specifically
760 tagged as a weak object symbol. When a weak defined symbol is
761 linked with a normal defined symbol, the normal defined symbol
762 is used with no error. When a weak undefined symbol is linked
763 and the symbol is not defined, the value of the symbol is
764 determined in a system-specific manner without error. On some
765 systems, uppercase indicates that a default value has been
769 The symbol is a stabs symbol in an a.out object file. In this
770 case, the next values printed are the stabs other field, the
771 stabs desc field, and the stab type. Stabs symbols are used
772 to hold debugging information.
775 The symbol type is unknown, or object file format specific.
777 * The symbol name. If a symbol has version information associated
778 with it, then the version information is displayed as well. If the
779 versioned symbol is undefined or hidden from linker, the version
780 string is displayed as a suffix to the symbol name, preceded by an
781 @ character. For example 'foo@VER_1'. If the version is the
782 default version to be used when resolving unversioned references to
783 the symbol, then it is displayed as a suffix preceded by two @
784 characters. For example 'foo@@VER_2'.
786 The long and short forms of options, shown here as alternatives, are
792 Precede each symbol by the name of the input file (or archive
793 member) in which it was found, rather than identifying the input
794 file once only, before all of its symbols.
798 Display all symbols, even debugger-only symbols; normally these are
802 The same as '--format=bsd' (for compatibility with the MIPS 'nm').
806 Decode ("demangle") low-level symbol names into user-level names.
807 Besides removing any initial underscore prepended by the system,
808 this makes C++ function names readable. Different compilers have
809 different mangling styles. The optional demangling style argument
810 can be used to choose an appropriate demangling style for your
811 compiler. *Note c++filt::, for more information on demangling.
814 Do not demangle low-level symbol names. This is the default.
819 '--no-recursion-limit'
820 Enables or disables a limit on the amount of recursion performed
821 whilst demangling strings. Since the name mangling formats allow
822 for an infinite level of recursion it is possible to create strings
823 whose decoding will exhaust the amount of stack space available on
824 the host machine, triggering a memory fault. The limit tries to
825 prevent this from happening by restricting recursion to 2048 levels
828 The default is for this limit to be enabled, but disabling it may
829 be necessary in order to demangle truly complicated names. Note
830 however that if the recursion limit is disabled then stack
831 exhaustion is possible and any bug reports about such an event will
836 Display the dynamic symbols rather than the normal symbols. This
837 is only meaningful for dynamic objects, such as certain types of
842 Use the output format FORMAT, which can be 'bsd', 'sysv', 'posix'
843 or 'just-symbols'. The default is 'bsd'. Only the first character
844 of FORMAT is significant; it can be either upper or lower case.
848 Display only external symbols.
852 Show a summary of the options to 'nm' and exit.
854 '--ifunc-chars=CHARS'
855 When display GNU indirect function symbols 'nm' will default to
856 using the 'i' character for both local indirect functions and
857 global indirect functions. The '--ifunc-chars' option allows the
858 user to specify a string containing one or two characters. The
859 first character will be used for global indirect function symbols
860 and the second character, if present, will be used for local
861 indirect function symbols.
864 The same as '--format=just-symbols'.
868 For each symbol, use debugging information to try to find a
869 filename and line number. For a defined symbol, look for the line
870 number of the address of the symbol. For an undefined symbol, look
871 for the line number of a relocation entry which refers to the
872 symbol. If line number information can be found, print it after
873 the other symbol information.
876 When option '-l' is active, if the address belongs to a function
877 that was inlined, then this option causes the source information
878 for all enclosing scopes back to the first non-inlined function to
879 be printed as well. For example, if 'main' inlines 'callee1' which
880 inlines 'callee2', and address is from 'callee2', the source
881 information for 'callee1' and 'main' will also be printed.
886 Sort symbols numerically by their addresses, rather than
887 alphabetically by their names.
891 Do not bother to sort the symbols in any order; print them in the
896 Use the POSIX.2 standard output format instead of the default
897 format. Equivalent to '-f posix'.
901 Reverse the order of the sort (whether numeric or alphabetic); let
906 Print both value and size of defined symbols for the 'bsd' output
907 style. This option has no effect for object formats that do not
908 record symbol sizes, unless '--size-sort' is also used in which
909 case a calculated size is displayed.
913 When listing symbols from archive members, include the index: a
914 mapping (stored in the archive by 'ar' or 'ranlib') of which
915 modules contain definitions for which names.
919 Use RADIX as the radix for printing the symbol values. It must be
920 'd' for decimal, 'o' for octal, or 'x' for hexadecimal.
924 Display only undefined symbols (those external to each object
928 '--unicode=[DEFAULT|INVALID|LOCALE|ESCAPE|HEX|HIGHLIGHT]'
929 Controls the display of UTF-8 encoded multibyte characters in
930 strings. The default ('--unicode=default') is to give them no
931 special treatment. The '--unicode=locale' option displays the
932 sequence in the current locale, which may or may not support them.
933 The options '--unicode=hex' and '--unicode=invalid' display them as
934 hex byte sequences enclosed by either angle brackets or curly
937 The '--unicode=escape' option displays them as escape sequences
938 (\UXXXX) and the '--unicode=highlight' option displays them as
939 escape sequences highlighted in red (if supported by the output
940 device). The colouring is intended to draw attention to the
941 presence of unicode sequences where they might not be expected.
945 Show the version number of 'nm' and exit.
948 This option is ignored for compatibility with the AIX version of
949 'nm'. It takes one parameter which must be the string '32_64'.
950 The default mode of AIX 'nm' corresponds to '-X 32', which is not
951 supported by GNU 'nm'.
954 Display only defined symbols for each object file.
957 Load the plugin called NAME to add support for extra target types.
958 This option is only available if the toolchain has been built with
959 plugin support enabled.
961 If '--plugin' is not provided, but plugin support has been enabled
962 then 'nm' iterates over the files in '${libdir}/bfd-plugins' in
963 alphabetic order and the first plugin that claims the object in
966 Please note that this plugin search directory is _not_ the one used
967 by 'ld''s '-plugin' option. In order to make 'nm' use the linker
968 plugin it must be copied into the '${libdir}/bfd-plugins'
969 directory. For GCC based compilations the linker plugin is called
970 'liblto_plugin.so.0.0.0'. For Clang based compilations it is
971 called 'LLVMgold.so'. The GCC plugin is always backwards
972 compatible with earlier versions, so it is sufficient to just copy
976 Sort symbols by size. For ELF objects symbol sizes are read from
977 the ELF, for other object types the symbol sizes are computed as
978 the difference between the value of the symbol and the value of the
979 symbol with the next higher value. If the 'bsd' output format is
980 used the size of the symbol is printed, rather than the value, and
981 '-S' must be used in order both size and value to be printed.
984 Display symbols which have a target-specific special meaning.
985 These symbols are usually used by the target for some special
986 processing and are not normally helpful when included in the normal
987 symbol lists. For example for ARM targets this option would skip
988 the mapping symbols used to mark transitions between ARM code,
992 Include synthetic symbols in the output. These are special symbols
993 created by the linker for various purposes. They are not shown by
994 default since they are not part of the binary's original source
997 '--with-symbol-versions'
998 '--without-symbol-versions'
999 Enables or disables the display of symbol version information. The
1000 version string is displayed as a suffix to the symbol name,
1001 preceded by an @ character. For example 'foo@VER_1'. If the
1002 version is the default version to be used when resolving
1003 unversioned references to the symbol then it is displayed as a
1004 suffix preceded by two @ characters. For example 'foo@@VER_2'. By
1005 default, symbol version information is displayed.
1008 Specify an object code format other than your system's default
1009 format. *Note Target Selection::, for more information.
1012 File: binutils.info, Node: objcopy, Next: objdump, Prev: nm, Up: Top
1017 objcopy [-F BFDNAME|--target=BFDNAME]
1018 [-I BFDNAME|--input-target=BFDNAME]
1019 [-O BFDNAME|--output-target=BFDNAME]
1020 [-B BFDARCH|--binary-architecture=BFDARCH]
1024 [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
1025 [--keep-file-symbols]
1026 [--keep-section-symbols]
1027 [-N SYMBOLNAME|--strip-symbol=SYMBOLNAME]
1028 [--strip-unneeded-symbol=SYMBOLNAME]
1029 [-G SYMBOLNAME|--keep-global-symbol=SYMBOLNAME]
1031 [-L SYMBOLNAME|--localize-symbol=SYMBOLNAME]
1032 [--globalize-symbol=SYMBOLNAME]
1033 [--globalize-symbols=FILENAME]
1034 [-W SYMBOLNAME|--weaken-symbol=SYMBOLNAME]
1037 [-X|--discard-locals]
1038 [-b BYTE|--byte=BYTE]
1039 [-i [BREADTH]|--interleave[=BREADTH]]
1040 [--interleave-width=WIDTH]
1041 [-j SECTIONPATTERN|--only-section=SECTIONPATTERN]
1042 [-R SECTIONPATTERN|--remove-section=SECTIONPATTERN]
1043 [--keep-section=SECTIONPATTERN]
1044 [--remove-relocations=SECTIONPATTERN]
1045 [-p|--preserve-dates]
1046 [-D|--enable-deterministic-archives]
1047 [-U|--disable-deterministic-archives]
1052 [--adjust-start=INCR]
1053 [--change-addresses=INCR]
1054 [--change-section-address SECTIONPATTERN{=,+,-}VAL]
1055 [--change-section-lma SECTIONPATTERN{=,+,-}VAL]
1056 [--change-section-vma SECTIONPATTERN{=,+,-}VAL]
1057 [--change-warnings] [--no-change-warnings]
1058 [--set-section-flags SECTIONPATTERN=FLAGS]
1059 [--set-section-alignment SECTIONPATTERN=ALIGN]
1060 [--add-section SECTIONNAME=FILENAME]
1061 [--dump-section SECTIONNAME=FILENAME]
1062 [--update-section SECTIONNAME=FILENAME]
1063 [--rename-section OLDNAME=NEWNAME[,FLAGS]]
1064 [--long-section-names {enable,disable,keep}]
1065 [--change-leading-char] [--remove-leading-char]
1066 [--reverse-bytes=NUM]
1067 [--srec-len=IVAL] [--srec-forceS3]
1068 [--redefine-sym OLD=NEW]
1069 [--redefine-syms=FILENAME]
1071 [--keep-symbols=FILENAME]
1072 [--strip-symbols=FILENAME]
1073 [--strip-unneeded-symbols=FILENAME]
1074 [--keep-global-symbols=FILENAME]
1075 [--localize-symbols=FILENAME]
1076 [--weaken-symbols=FILENAME]
1077 [--add-symbol NAME=[SECTION:]VALUE[,FLAGS]]
1078 [--alt-machine-code=INDEX]
1079 [--prefix-symbols=STRING]
1080 [--prefix-sections=STRING]
1081 [--prefix-alloc-sections=STRING]
1082 [--add-gnu-debuglink=PATH-TO-FILE]
1091 [--file-alignment=NUM]
1093 [--image-base=ADDRESS]
1094 [--section-alignment=NUM]
1096 [--subsystem=WHICH:MAJOR.MINOR]
1097 [--compress-debug-sections]
1098 [--decompress-debug-sections]
1099 [--elf-stt-common=VAL]
1102 [--verilog-data-width=VAL]
1108 The GNU 'objcopy' utility copies the contents of an object file to
1109 another. 'objcopy' uses the GNU BFD Library to read and write the
1110 object files. It can write the destination object file in a format
1111 different from that of the source object file. The exact behavior of
1112 'objcopy' is controlled by command-line options. Note that 'objcopy'
1113 should be able to copy a fully linked file between any two formats.
1114 However, copying a relocatable object file between any two formats may
1115 not work as expected.
1117 'objcopy' creates temporary files to do its translations and deletes
1118 them afterward. 'objcopy' uses BFD to do all its translation work; it
1119 has access to all the formats described in BFD and thus is able to
1120 recognize most formats without being told explicitly. *Note BFD:
1123 'objcopy' can be used to generate S-records by using an output target
1124 of 'srec' (e.g., use '-O srec').
1126 'objcopy' can be used to generate a raw binary file by using an
1127 output target of 'binary' (e.g., use '-O binary'). When 'objcopy'
1128 generates a raw binary file, it will essentially produce a memory dump
1129 of the contents of the input object file. All symbols and relocation
1130 information will be discarded. The memory dump will start at the load
1131 address of the lowest section copied into the output file.
1133 When generating an S-record or a raw binary file, it may be helpful
1134 to use '-S' to remove sections containing debugging information. In
1135 some cases '-R' will be useful to remove sections which contain
1136 information that is not needed by the binary file.
1138 Note--'objcopy' is not able to change the endianness of its input
1139 files. If the input format has an endianness (some formats do not),
1140 'objcopy' can only copy the inputs into file formats that have the same
1141 endianness or which have no endianness (e.g., 'srec'). (However, see
1142 the '--reverse-bytes' option.)
1146 The input and output files, respectively. If you do not specify
1147 OUTFILE, 'objcopy' creates a temporary file and destructively
1148 renames the result with the name of INFILE.
1151 '--input-target=BFDNAME'
1152 Consider the source file's object format to be BFDNAME, rather than
1153 attempting to deduce it. *Note Target Selection::, for more
1157 '--output-target=BFDNAME'
1158 Write the output file using the object format BFDNAME. *Note
1159 Target Selection::, for more information.
1163 Use BFDNAME as the object format for both the input and the output
1164 file; i.e., simply transfer data from source to destination with no
1165 translation. *Note Target Selection::, for more information.
1168 '--binary-architecture=BFDARCH'
1169 Useful when transforming a architecture-less input file into an
1170 object file. In this case the output architecture can be set to
1171 BFDARCH. This option will be ignored if the input file has a known
1172 BFDARCH. You can access this binary data inside a program by
1173 referencing the special symbols that are created by the conversion
1174 process. These symbols are called _binary_OBJFILE_start,
1175 _binary_OBJFILE_end and _binary_OBJFILE_size. e.g. you can
1176 transform a picture file into an object file and then access it in
1177 your code using these symbols.
1180 '--only-section=SECTIONPATTERN'
1181 Copy only the indicated sections from the input file to the output
1182 file. This option may be given more than once. Note that using
1183 this option inappropriately may make the output file unusable.
1184 Wildcard characters are accepted in SECTIONPATTERN.
1186 If the first character of SECTIONPATTERN is the exclamation point
1187 (!) then matching sections will not be copied, even if earlier use
1188 of '--only-section' on the same command line would otherwise copy
1191 --only-section=.text.* --only-section=!.text.foo
1193 will copy all sectinos matching '.text.*' but not the section
1197 '--remove-section=SECTIONPATTERN'
1198 Remove any section matching SECTIONPATTERN from the output file.
1199 This option may be given more than once. Note that using this
1200 option inappropriately may make the output file unusable. Wildcard
1201 characters are accepted in SECTIONPATTERN. Using both the '-j' and
1202 '-R' options together results in undefined behaviour.
1204 If the first character of SECTIONPATTERN is the exclamation point
1205 (!) then matching sections will not be removed even if an earlier
1206 use of '--remove-section' on the same command line would otherwise
1207 remove it. For example:
1209 --remove-section=.text.* --remove-section=!.text.foo
1211 will remove all sections matching the pattern '.text.*', but will
1212 not remove the section '.text.foo'.
1214 '--keep-section=SECTIONPATTERN'
1215 When removing sections from the output file, keep sections that
1216 match SECTIONPATTERN.
1218 '--remove-relocations=SECTIONPATTERN'
1219 Remove non-dynamic relocations from the output file for any section
1220 matching SECTIONPATTERN. This option may be given more than once.
1221 Note that using this option inappropriately may make the output
1222 file unusable, and attempting to remove a dynamic relocation
1223 section such as '.rela.plt' from an executable or shared library
1224 with '--remove-relocations=.plt' will not work. Wildcard
1225 characters are accepted in SECTIONPATTERN. For example:
1227 --remove-relocations=.text.*
1229 will remove the relocations for all sections matching the pattern
1232 If the first character of SECTIONPATTERN is the exclamation point
1233 (!) then matching sections will not have their relocation removed
1234 even if an earlier use of '--remove-relocations' on the same
1235 command line would otherwise cause the relocations to be removed.
1238 --remove-relocations=.text.* --remove-relocations=!.text.foo
1240 will remove all relocations for sections matching the pattern
1241 '.text.*', but will not remove relocations for the section
1246 Do not copy relocation and symbol information from the source file.
1247 Also deletes debug sections.
1251 Do not copy debugging symbols or sections from the source file.
1254 Remove all symbols that are not needed for relocation processing in
1255 addition to debugging symbols and sections stripped by
1259 '--keep-symbol=SYMBOLNAME'
1260 When stripping symbols, keep symbol SYMBOLNAME even if it would
1261 normally be stripped. This option may be given more than once.
1264 '--strip-symbol=SYMBOLNAME'
1265 Do not copy symbol SYMBOLNAME from the source file. This option
1266 may be given more than once.
1268 '--strip-unneeded-symbol=SYMBOLNAME'
1269 Do not copy symbol SYMBOLNAME from the source file unless it is
1270 needed by a relocation. This option may be given more than once.
1273 '--keep-global-symbol=SYMBOLNAME'
1274 Keep only symbol SYMBOLNAME global. Make all other symbols local
1275 to the file, so that they are not visible externally. This option
1276 may be given more than once. Note: this option cannot be used in
1277 conjunction with the '--globalize-symbol' or '--globalize-symbols'
1281 In an ELF object, mark all symbols that have hidden or internal
1282 visibility as local. This option applies on top of symbol-specific
1283 localization options such as '-L'.
1286 '--localize-symbol=SYMBOLNAME'
1287 Convert a global or weak symbol called SYMBOLNAME into a local
1288 symbol, so that it is not visible externally. This option may be
1289 given more than once. Note - unique symbols are not converted.
1292 '--weaken-symbol=SYMBOLNAME'
1293 Make symbol SYMBOLNAME weak. This option may be given more than
1296 '--globalize-symbol=SYMBOLNAME'
1297 Give symbol SYMBOLNAME global scoping so that it is visible outside
1298 of the file in which it is defined. This option may be given more
1299 than once. Note: this option cannot be used in conjunction with
1300 the '-G' or '--keep-global-symbol' options.
1304 Permit regular expressions in SYMBOLNAMEs used in other command
1305 line options. The question mark (?), asterisk (*), backslash (\)
1306 and square brackets ([]) operators can be used anywhere in the
1307 symbol name. If the first character of the symbol name is the
1308 exclamation point (!) then the sense of the switch is reversed for
1309 that symbol. For example:
1313 would cause objcopy to weaken all symbols that start with "fo"
1314 except for the symbol "foo".
1318 Do not copy non-global symbols from the source file.
1322 Do not copy compiler-generated local symbols. (These usually start
1327 If interleaving has been enabled via the '--interleave' option then
1328 start the range of bytes to keep at the BYTEth byte. BYTE can be
1329 in the range from 0 to BREADTH-1, where BREADTH is the value given
1330 by the '--interleave' option.
1333 '--interleave[=BREADTH]'
1334 Only copy a range out of every BREADTH bytes. (Header data is not
1335 affected). Select which byte in the range begins the copy with the
1336 '--byte' option. Select the width of the range with the
1337 '--interleave-width' option.
1339 This option is useful for creating files to program ROM. It is
1340 typically used with an 'srec' output target. Note that 'objcopy'
1341 will complain if you do not specify the '--byte' option as well.
1343 The default interleave breadth is 4, so with '--byte' set to 0,
1344 'objcopy' would copy the first byte out of every four bytes from
1345 the input to the output.
1347 '--interleave-width=WIDTH'
1348 When used with the '--interleave' option, copy WIDTH bytes at a
1349 time. The start of the range of bytes to be copied is set by the
1350 '--byte' option, and the extent of the range is set with the
1351 '--interleave' option.
1353 The default value for this option is 1. The value of WIDTH plus
1354 the BYTE value set by the '--byte' option must not exceed the
1355 interleave breadth set by the '--interleave' option.
1357 This option can be used to create images for two 16-bit flashes
1358 interleaved in a 32-bit bus by passing '-b 0 -i 4
1359 --interleave-width=2' and '-b 2 -i 4 --interleave-width=2' to two
1360 'objcopy' commands. If the input was '12345678' then the outputs
1361 would be '1256' and '3478' respectively.
1365 Set the access and modification dates of the output file to be the
1366 same as those of the input file.
1369 '--enable-deterministic-archives'
1370 Operate in _deterministic_ mode. When copying archive members and
1371 writing the archive index, use zero for UIDs, GIDs, timestamps, and
1372 use consistent file modes for all files.
1374 If 'binutils' was configured with
1375 '--enable-deterministic-archives', then this mode is on by default.
1376 It can be disabled with the '-U' option, below.
1379 '--disable-deterministic-archives'
1380 Do _not_ operate in _deterministic_ mode. This is the inverse of
1381 the '-D' option, above: when copying archive members and writing
1382 the archive index, use their actual UID, GID, timestamp, and file
1385 This is the default unless 'binutils' was configured with
1386 '--enable-deterministic-archives'.
1389 Convert debugging information, if possible. This is not the
1390 default because only certain debugging formats are supported, and
1391 the conversion process can be time consuming.
1394 Fill gaps between sections with VAL. This operation applies to the
1395 _load address_ (LMA) of the sections. It is done by increasing the
1396 size of the section with the lower address, and filling in the
1397 extra space created with VAL.
1400 Pad the output file up to the load address ADDRESS. This is done
1401 by increasing the size of the last section. The extra space is
1402 filled in with the value specified by '--gap-fill' (default zero).
1405 Set the start address (also known as the entry address) of the new
1406 file to VAL. Not all object file formats support setting the start
1409 '--change-start INCR'
1410 '--adjust-start INCR'
1411 Change the start address (also known as the entry address) by
1412 adding INCR. Not all object file formats support setting the start
1415 '--change-addresses INCR'
1417 Change the VMA and LMA addresses of all sections, as well as the
1418 start address, by adding INCR. Some object file formats do not
1419 permit section addresses to be changed arbitrarily. Note that this
1420 does not relocate the sections; if the program expects sections to
1421 be loaded at a certain address, and this option is used to change
1422 the sections such that they are loaded at a different address, the
1425 '--change-section-address SECTIONPATTERN{=,+,-}VAL'
1426 '--adjust-section-vma SECTIONPATTERN{=,+,-}VAL'
1427 Set or change both the VMA address and the LMA address of any
1428 section matching SECTIONPATTERN. If '=' is used, the section
1429 address is set to VAL. Otherwise, VAL is added to or subtracted
1430 from the section address. See the comments under
1431 '--change-addresses', above. If SECTIONPATTERN does not match any
1432 sections in the input file, a warning will be issued, unless
1433 '--no-change-warnings' is used.
1435 '--change-section-lma SECTIONPATTERN{=,+,-}VAL'
1436 Set or change the LMA address of any sections matching
1437 SECTIONPATTERN. The LMA address is the address where the section
1438 will be loaded into memory at program load time. Normally this is
1439 the same as the VMA address, which is the address of the section at
1440 program run time, but on some systems, especially those where a
1441 program is held in ROM, the two can be different. If '=' is used,
1442 the section address is set to VAL. Otherwise, VAL is added to or
1443 subtracted from the section address. See the comments under
1444 '--change-addresses', above. If SECTIONPATTERN does not match any
1445 sections in the input file, a warning will be issued, unless
1446 '--no-change-warnings' is used.
1448 '--change-section-vma SECTIONPATTERN{=,+,-}VAL'
1449 Set or change the VMA address of any section matching
1450 SECTIONPATTERN. The VMA address is the address where the section
1451 will be located once the program has started executing. Normally
1452 this is the same as the LMA address, which is the address where the
1453 section will be loaded into memory, but on some systems, especially
1454 those where a program is held in ROM, the two can be different. If
1455 '=' is used, the section address is set to VAL. Otherwise, VAL is
1456 added to or subtracted from the section address. See the comments
1457 under '--change-addresses', above. If SECTIONPATTERN does not
1458 match any sections in the input file, a warning will be issued,
1459 unless '--no-change-warnings' is used.
1463 If '--change-section-address' or '--change-section-lma' or
1464 '--change-section-vma' is used, and the section pattern does not
1465 match any sections, issue a warning. This is the default.
1467 '--no-change-warnings'
1468 '--no-adjust-warnings'
1469 Do not issue a warning if '--change-section-address' or
1470 '--adjust-section-lma' or '--adjust-section-vma' is used, even if
1471 the section pattern does not match any sections.
1473 '--set-section-flags SECTIONPATTERN=FLAGS'
1474 Set the flags for any sections matching SECTIONPATTERN. The FLAGS
1475 argument is a comma separated string of flag names. The recognized
1476 names are 'alloc', 'contents', 'load', 'noload', 'readonly',
1477 'code', 'data', 'rom', 'exclude', 'share', and 'debug'. You can
1478 set the 'contents' flag for a section which does not have contents,
1479 but it is not meaningful to clear the 'contents' flag of a section
1480 which does have contents-just remove the section instead. Not all
1481 flags are meaningful for all object file formats. In particular
1482 the 'share' flag is only meaningful for COFF format files and not
1483 for ELF format files.
1485 '--set-section-alignment SECTIONPATTERN=ALIGN'
1486 Set the alignment for any sections matching SECTIONPATTERN. ALIGN
1487 specifies the alignment in bytes and must be a power of two, i.e.
1490 '--add-section SECTIONNAME=FILENAME'
1491 Add a new section named SECTIONNAME while copying the file. The
1492 contents of the new section are taken from the file FILENAME. The
1493 size of the section will be the size of the file. This option only
1494 works on file formats which can support sections with arbitrary
1495 names. Note - it may be necessary to use the '--set-section-flags'
1496 option to set the attributes of the newly created section.
1498 '--dump-section SECTIONNAME=FILENAME'
1499 Place the contents of section named SECTIONNAME into the file
1500 FILENAME, overwriting any contents that may have been there
1501 previously. This option is the inverse of '--add-section'. This
1502 option is similar to the '--only-section' option except that it
1503 does not create a formatted file, it just dumps the contents as raw
1504 binary data, without applying any relocations. The option can be
1505 specified more than once.
1507 '--update-section SECTIONNAME=FILENAME'
1508 Replace the existing contents of a section named SECTIONNAME with
1509 the contents of file FILENAME. The size of the section will be
1510 adjusted to the size of the file. The section flags for
1511 SECTIONNAME will be unchanged. For ELF format files the section to
1512 segment mapping will also remain unchanged, something which is not
1513 possible using '--remove-section' followed by '--add-section'. The
1514 option can be specified more than once.
1516 Note - it is possible to use '--rename-section' and
1517 '--update-section' to both update and rename a section from one
1518 command line. In this case, pass the original section name to
1519 '--update-section', and the original and new section names to
1522 '--add-symbol NAME=[SECTION:]VALUE[,FLAGS]'
1523 Add a new symbol named NAME while copying the file. This option
1524 may be specified multiple times. If the SECTION is given, the
1525 symbol will be associated with and relative to that section,
1526 otherwise it will be an ABS symbol. Specifying an undefined
1527 section will result in a fatal error. There is no check for the
1528 value, it will be taken as specified. Symbol flags can be
1529 specified and not all flags will be meaningful for all object file
1530 formats. By default, the symbol will be global. The special flag
1531 'before=OTHERSYM' will insert the new symbol in front of the
1532 specified OTHERSYM, otherwise the symbol(s) will be added at the
1533 end of the symbol table in the order they appear.
1535 '--rename-section OLDNAME=NEWNAME[,FLAGS]'
1536 Rename a section from OLDNAME to NEWNAME, optionally changing the
1537 section's flags to FLAGS in the process. This has the advantage
1538 over using a linker script to perform the rename in that the output
1539 stays as an object file and does not become a linked executable.
1540 This option accepts the same set of flags as the
1541 '--sect-section-flags' option.
1543 This option is particularly helpful when the input format is
1544 binary, since this will always create a section called .data. If
1545 for example, you wanted instead to create a section called .rodata
1546 containing binary data you could use the following command line to
1549 objcopy -I binary -O <output_format> -B <architecture> \
1550 --rename-section .data=.rodata,alloc,load,readonly,data,contents \
1551 <input_binary_file> <output_object_file>
1553 '--long-section-names {enable,disable,keep}'
1554 Controls the handling of long section names when processing 'COFF'
1555 and 'PE-COFF' object formats. The default behaviour, 'keep', is to
1556 preserve long section names if any are present in the input file.
1557 The 'enable' and 'disable' options forcibly enable or disable the
1558 use of long section names in the output object; when 'disable' is
1559 in effect, any long section names in the input object will be
1560 truncated. The 'enable' option will only emit long section names
1561 if any are present in the inputs; this is mostly the same as
1562 'keep', but it is left undefined whether the 'enable' option might
1563 force the creation of an empty string table in the output file.
1565 '--change-leading-char'
1566 Some object file formats use special characters at the start of
1567 symbols. The most common such character is underscore, which
1568 compilers often add before every symbol. This option tells
1569 'objcopy' to change the leading character of every symbol when it
1570 converts between object file formats. If the object file formats
1571 use the same leading character, this option has no effect.
1572 Otherwise, it will add a character, or remove a character, or
1573 change a character, as appropriate.
1575 '--remove-leading-char'
1576 If the first character of a global symbol is a special symbol
1577 leading character used by the object file format, remove the
1578 character. The most common symbol leading character is underscore.
1579 This option will remove a leading underscore from all global
1580 symbols. This can be useful if you want to link together objects
1581 of different file formats with different conventions for symbol
1582 names. This is different from '--change-leading-char' because it
1583 always changes the symbol name when appropriate, regardless of the
1584 object file format of the output file.
1586 '--reverse-bytes=NUM'
1587 Reverse the bytes in a section with output contents. A section
1588 length must be evenly divisible by the value given in order for the
1589 swap to be able to take place. Reversing takes place before the
1590 interleaving is performed.
1592 This option is used typically in generating ROM images for
1593 problematic target systems. For example, on some target boards,
1594 the 32-bit words fetched from 8-bit ROMs are re-assembled in
1595 little-endian byte order regardless of the CPU byte order.
1596 Depending on the programming model, the endianness of the ROM may
1597 need to be modified.
1599 Consider a simple file with a section containing the following
1600 eight bytes: '12345678'.
1602 Using '--reverse-bytes=2' for the above example, the bytes in the
1603 output file would be ordered '21436587'.
1605 Using '--reverse-bytes=4' for the above example, the bytes in the
1606 output file would be ordered '43218765'.
1608 By using '--reverse-bytes=2' for the above example, followed by
1609 '--reverse-bytes=4' on the output file, the bytes in the second
1610 output file would be ordered '34127856'.
1613 Meaningful only for srec output. Set the maximum length of the
1614 Srecords being produced to IVAL. This length covers both address,
1615 data and crc fields.
1618 Meaningful only for srec output. Avoid generation of S1/S2
1619 records, creating S3-only record format.
1621 '--redefine-sym OLD=NEW'
1622 Change the name of a symbol OLD, to NEW. This can be useful when
1623 one is trying link two things together for which you have no
1624 source, and there are name collisions.
1626 '--redefine-syms=FILENAME'
1627 Apply '--redefine-sym' to each symbol pair "OLD NEW" listed in the
1628 file FILENAME. FILENAME is simply a flat file, with one symbol
1629 pair per line. Line comments may be introduced by the hash
1630 character. This option may be given more than once.
1633 Change all global symbols in the file to be weak. This can be
1634 useful when building an object which will be linked against other
1635 objects using the '-R' option to the linker. This option is only
1636 effective when using an object file format which supports weak
1639 '--keep-symbols=FILENAME'
1640 Apply '--keep-symbol' option to each symbol listed in the file
1641 FILENAME. FILENAME is simply a flat file, with one symbol name per
1642 line. Line comments may be introduced by the hash character. This
1643 option may be given more than once.
1645 '--strip-symbols=FILENAME'
1646 Apply '--strip-symbol' option to each symbol listed in the file
1647 FILENAME. FILENAME is simply a flat file, with one symbol name per
1648 line. Line comments may be introduced by the hash character. This
1649 option may be given more than once.
1651 '--strip-unneeded-symbols=FILENAME'
1652 Apply '--strip-unneeded-symbol' option to each symbol listed in the
1653 file FILENAME. FILENAME is simply a flat file, with one symbol
1654 name per line. Line comments may be introduced by the hash
1655 character. This option may be given more than once.
1657 '--keep-global-symbols=FILENAME'
1658 Apply '--keep-global-symbol' option to each symbol listed in the
1659 file FILENAME. FILENAME is simply a flat file, with one symbol
1660 name per line. Line comments may be introduced by the hash
1661 character. This option may be given more than once.
1663 '--localize-symbols=FILENAME'
1664 Apply '--localize-symbol' option to each symbol listed in the file
1665 FILENAME. FILENAME is simply a flat file, with one symbol name per
1666 line. Line comments may be introduced by the hash character. This
1667 option may be given more than once.
1669 '--globalize-symbols=FILENAME'
1670 Apply '--globalize-symbol' option to each symbol listed in the file
1671 FILENAME. FILENAME is simply a flat file, with one symbol name per
1672 line. Line comments may be introduced by the hash character. This
1673 option may be given more than once. Note: this option cannot be
1674 used in conjunction with the '-G' or '--keep-global-symbol'
1677 '--weaken-symbols=FILENAME'
1678 Apply '--weaken-symbol' option to each symbol listed in the file
1679 FILENAME. FILENAME is simply a flat file, with one symbol name per
1680 line. Line comments may be introduced by the hash character. This
1681 option may be given more than once.
1683 '--alt-machine-code=INDEX'
1684 If the output architecture has alternate machine codes, use the
1685 INDEXth code instead of the default one. This is useful in case a
1686 machine is assigned an official code and the tool-chain adopts the
1687 new code, but other applications still depend on the original code
1688 being used. For ELF based architectures if the INDEX alternative
1689 does not exist then the value is treated as an absolute number to
1690 be stored in the e_machine field of the ELF header.
1693 Mark the output text as writable. This option isn't meaningful for
1694 all object file formats.
1697 Make the output text write protected. This option isn't meaningful
1698 for all object file formats.
1701 Mark the output file as demand paged. This option isn't meaningful
1702 for all object file formats.
1705 Mark the output file as impure. This option isn't meaningful for
1706 all object file formats.
1708 '--prefix-symbols=STRING'
1709 Prefix all symbols in the output file with STRING.
1711 '--prefix-sections=STRING'
1712 Prefix all section names in the output file with STRING.
1714 '--prefix-alloc-sections=STRING'
1715 Prefix all the names of all allocated sections in the output file
1718 '--add-gnu-debuglink=PATH-TO-FILE'
1719 Creates a .gnu_debuglink section which contains a reference to
1720 PATH-TO-FILE and adds it to the output file. Note: the file at
1721 PATH-TO-FILE must exist. Part of the process of adding the
1722 .gnu_debuglink section involves embedding a checksum of the
1723 contents of the debug info file into the section.
1725 If the debug info file is built in one location but it is going to
1726 be installed at a later time into a different location then do not
1727 use the path to the installed location. The '--add-gnu-debuglink'
1728 option will fail because the installed file does not exist yet.
1729 Instead put the debug info file in the current directory and use
1730 the '--add-gnu-debuglink' option without any directory components,
1733 objcopy --add-gnu-debuglink=foo.debug
1735 At debug time the debugger will attempt to look for the separate
1736 debug info file in a set of known locations. The exact set of
1737 these locations varies depending upon the distribution being used,
1738 but it typically includes:
1740 '* The same directory as the executable.'
1742 '* A sub-directory of the directory containing the executable'
1745 '* A global debug directory such as /usr/lib/debug.'
1747 As long as the debug info file has been installed into one of these
1748 locations before the debugger is run everything should work
1751 '--keep-section-symbils'
1752 When stripping a file, perhaps with '--strip-debug' or
1753 '--strip-unneeded', retain any symbols specifying section names,
1754 which would otherwise get stripped.
1756 '--keep-file-symbols'
1757 When stripping a file, perhaps with '--strip-debug' or
1758 '--strip-unneeded', retain any symbols specifying source file
1759 names, which would otherwise get stripped.
1762 Strip a file, removing contents of any sections that would not be
1763 stripped by '--strip-debug' and leaving the debugging sections
1764 intact. In ELF files, this preserves all note sections in the
1767 Note - the section headers of the stripped sections are preserved,
1768 including their sizes, but the contents of the section are
1769 discarded. The section headers are preserved so that other tools
1770 can match up the debuginfo file with the real executable, even if
1771 that executable has been relocated to a different address space.
1773 The intention is that this option will be used in conjunction with
1774 '--add-gnu-debuglink' to create a two part executable. One a
1775 stripped binary which will occupy less space in RAM and in a
1776 distribution and the second a debugging information file which is
1777 only needed if debugging abilities are required. The suggested
1778 procedure to create these files is as follows:
1780 1. Link the executable as normal. Assuming that it is called
1782 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
1783 containing the debugging info.
1784 3. Run 'objcopy --strip-debug foo' to create a stripped
1786 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
1787 the debugging info into the stripped executable.
1789 Note--the choice of '.dbg' as an extension for the debug info file
1790 is arbitrary. Also the '--only-keep-debug' step is optional. You
1791 could instead do this:
1793 1. Link the executable as normal.
1794 2. Copy 'foo' to 'foo.full'
1795 3. Run 'objcopy --strip-debug foo'
1796 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
1798 i.e., the file pointed to by the '--add-gnu-debuglink' can be the
1799 full executable. It does not have to be a file created by the
1800 '--only-keep-debug' switch.
1802 Note--this switch is only intended for use on fully linked files.
1803 It does not make sense to use it on object files where the
1804 debugging information may be incomplete. Besides the gnu_debuglink
1805 feature currently only supports the presence of one filename
1806 containing debugging information, not multiple filenames on a
1807 one-per-object-file basis.
1810 Remove the contents of all DWARF .dwo sections, leaving the
1811 remaining debugging sections and all symbols intact. This option
1812 is intended for use by the compiler as part of the '-gsplit-dwarf'
1813 option, which splits debug information between the .o file and a
1814 separate .dwo file. The compiler generates all debug information
1815 in the same file, then uses the '--extract-dwo' option to copy the
1816 .dwo sections to the .dwo file, then the '--strip-dwo' option to
1817 remove those sections from the original .o file.
1820 Extract the contents of all DWARF .dwo sections. See the
1821 '--strip-dwo' option for more information.
1823 '--file-alignment NUM'
1824 Specify the file alignment. Sections in the file will always begin
1825 at file offsets which are multiples of this number. This defaults
1826 to 512. [This option is specific to PE targets.]
1829 '--heap RESERVE,COMMIT'
1830 Specify the number of bytes of memory to reserve (and optionally
1831 commit) to be used as heap for this program. [This option is
1832 specific to PE targets.]
1834 '--image-base VALUE'
1835 Use VALUE as the base address of your program or dll. This is the
1836 lowest memory location that will be used when your program or dll
1837 is loaded. To reduce the need to relocate and improve performance
1838 of your dlls, each should have a unique base address and not
1839 overlap any other dlls. The default is 0x400000 for executables,
1840 and 0x10000000 for dlls. [This option is specific to PE targets.]
1842 '--section-alignment NUM'
1843 Sets the section alignment field in the PE header. Sections in
1844 memory will always begin at addresses which are a multiple of this
1845 number. Defaults to 0x1000. [This option is specific to PE
1849 '--stack RESERVE,COMMIT'
1850 Specify the number of bytes of memory to reserve (and optionally
1851 commit) to be used as stack for this program. [This option is
1852 specific to PE targets.]
1855 '--subsystem WHICH:MAJOR'
1856 '--subsystem WHICH:MAJOR.MINOR'
1857 Specifies the subsystem under which your program will execute. The
1858 legal values for WHICH are 'native', 'windows', 'console', 'posix',
1859 'efi-app', 'efi-bsd', 'efi-rtd', 'sal-rtd', and 'xbox'. You may
1860 optionally set the subsystem version also. Numeric values are also
1861 accepted for WHICH. [This option is specific to PE targets.]
1864 Keep the file's section flags and symbols but remove all section
1865 data. Specifically, the option:
1867 * removes the contents of all sections;
1868 * sets the size of every section to zero; and
1869 * sets the file's start address to zero.
1871 This option is used to build a '.sym' file for a VxWorks kernel.
1872 It can also be a useful way of reducing the size of a
1873 '--just-symbols' linker input file.
1875 '--compress-debug-sections'
1876 Compress DWARF debug sections using zlib with SHF_COMPRESSED from
1877 the ELF ABI. Note - if compression would actually make a section
1878 _larger_, then it is not compressed.
1880 '--compress-debug-sections=none'
1881 '--compress-debug-sections=zlib'
1882 '--compress-debug-sections=zlib-gnu'
1883 '--compress-debug-sections=zlib-gabi'
1884 For ELF files, these options control how DWARF debug sections are
1885 compressed. '--compress-debug-sections=none' is equivalent to
1886 '--decompress-debug-sections'. '--compress-debug-sections=zlib'
1887 and '--compress-debug-sections=zlib-gabi' are equivalent to
1888 '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
1889 compresses DWARF debug sections using zlib. The debug sections are
1890 renamed to begin with '.zdebug' instead of '.debug'. Note - if
1891 compression would actually make a section _larger_, then it is not
1892 compressed nor renamed.
1894 '--decompress-debug-sections'
1895 Decompress DWARF debug sections using zlib. The original section
1896 names of the compressed sections are restored.
1898 '--elf-stt-common=yes'
1899 '--elf-stt-common=no'
1900 For ELF files, these options control whether common symbols should
1901 be converted to the 'STT_COMMON' or 'STT_OBJECT' type.
1902 '--elf-stt-common=yes' converts common symbol type to 'STT_COMMON'.
1903 '--elf-stt-common=no' converts common symbol type to 'STT_OBJECT'.
1907 For ELF files, attempt (or do not attempt) to reduce the size of
1908 any SHT_NOTE type sections by removing duplicate notes.
1912 Show the version number of 'objcopy'.
1914 '--verilog-data-width=BYTES'
1915 For Verilog output, this options controls the number of bytes
1916 converted for each output data element. The input target controls
1917 the endianness of the conversion.
1921 Verbose output: list all object files modified. In the case of
1922 archives, 'objcopy -V' lists all members of the archive.
1925 Show a summary of the options to 'objcopy'.
1928 Display a list showing all architectures and object formats
1932 File: binutils.info, Node: objdump, Next: ranlib, Prev: objcopy, Up: Top
1937 objdump [-a|--archive-headers]
1938 [-b BFDNAME|--target=BFDNAME]
1939 [-C|--demangle[=STYLE] ]
1940 [-d|--disassemble[=SYMBOL]]
1941 [-D|--disassemble-all]
1942 [-z|--disassemble-zeroes]
1943 [-EB|-EL|--endian={big | little }]
1946 [--file-start-context]
1948 [-e|--debugging-tags]
1949 [-h|--section-headers|--headers]
1951 [-j SECTION|--section=SECTION]
1954 [--source-comment[=TEXT]]
1955 [-m MACHINE|--architecture=MACHINE]
1956 [-M OPTIONS|--disassembler-options=OPTIONS]
1957 [-p|--private-headers]
1958 [-P OPTIONS|--private=OPTIONS]
1960 [-R|--dynamic-reloc]
1961 [-s|--full-contents]
1962 [-W[lLiaprmfFsoORtUuTgAck]|
1963 --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links]]
1964 [-WK|--dwarf=follow-links]
1965 [-WN|--dwarf=no-follow-links]
1966 [-L|--process-links]
1973 [--start-address=ADDRESS]
1974 [--stop-address=ADDRESS]
1976 [--prefix-addresses]
1977 [--[no-]show-raw-insn]
1978 [--adjust-vma=OFFSET]
1981 [--ctf-parent=SECTION]
1982 [--no-recurse-limit|--recurse-limit]
1985 [--prefix-strip=LEVEL]
1986 [--insn-width=WIDTH]
1987 [--visualize-jumps[=color|=extended-color|=off]
1988 [-U METHOD] [--unicode=METHOD]
1993 'objdump' displays information about one or more object files. The
1994 options control what particular information to display. This
1995 information is mostly useful to programmers who are working on the
1996 compilation tools, as opposed to programmers who just want their program
1997 to compile and work.
1999 OBJFILE... are the object files to be examined. When you specify
2000 archives, 'objdump' shows information on each of the member object
2003 The long and short forms of options, shown here as alternatives, are
2004 equivalent. At least one option from the list
2005 '-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-P,-r,-R,-s,-S,-t,-T,-V,-x' must be
2010 If any of the OBJFILE files are archives, display the archive
2011 header information (in a format similar to 'ls -l'). Besides the
2012 information you could list with 'ar tv', 'objdump -a' shows the
2013 object file format of each archive member.
2015 '--adjust-vma=OFFSET'
2016 When dumping information, first add OFFSET to all the section
2017 addresses. This is useful if the section addresses do not
2018 correspond to the symbol table, which can happen when putting
2019 sections at particular addresses when using a format which can not
2020 represent section addresses, such as a.out.
2024 Specify that the object-code format for the object files is
2025 BFDNAME. This option may not be necessary; OBJDUMP can
2026 automatically recognize many formats.
2029 objdump -b oasys -m vax -h fu.o
2030 displays summary information from the section headers ('-h') of
2031 'fu.o', which is explicitly identified ('-m') as a VAX object file
2032 in the format produced by Oasys compilers. You can list the
2033 formats available with the '-i' option. *Note Target Selection::,
2034 for more information.
2037 '--demangle[=STYLE]'
2038 Decode ("demangle") low-level symbol names into user-level names.
2039 Besides removing any initial underscore prepended by the system,
2040 this makes C++ function names readable. Different compilers have
2041 different mangling styles. The optional demangling style argument
2042 can be used to choose an appropriate demangling style for your
2043 compiler. *Note c++filt::, for more information on demangling.
2046 '--no-recurse-limit'
2048 '--no-recursion-limit'
2049 Enables or disables a limit on the amount of recursion performed
2050 whilst demangling strings. Since the name mangling formats allow
2051 for an infinite level of recursion it is possible to create strings
2052 whose decoding will exhaust the amount of stack space available on
2053 the host machine, triggering a memory fault. The limit tries to
2054 prevent this from happening by restricting recursion to 2048 levels
2057 The default is for this limit to be enabled, but disabling it may
2058 be necessary in order to demangle truly complicated names. Note
2059 however that if the recursion limit is disabled then stack
2060 exhaustion is possible and any bug reports about such an event will
2065 Display debugging information. This attempts to parse STABS
2066 debugging format information stored in the file and print it out
2067 using a C like syntax. If no STABS debugging was found this option
2068 falls back on the '-W' option to print any DWARF information in the
2073 Like '-g', but the information is generated in a format compatible
2078 '--disassemble=SYMBOL'
2079 Display the assembler mnemonics for the machine instructions from
2080 the input file. This option only disassembles those sections which
2081 are expected to contain instructions. If the optional SYMBOL
2082 argument is given, then display the assembler mnemonics starting at
2083 SYMBOL. If SYMBOL is a function name then disassembly will stop at
2084 the end of the function, otherwise it will stop when the next
2085 symbol is encountered. If there are no matches for SYMBOL then
2086 nothing will be displayed.
2088 Note if the '--dwarf=follow-links' option is enabled then any
2089 symbol tables in linked debug info files will be read in and used
2094 Like '-d', but disassemble the contents of all sections, not just
2095 those expected to contain instructions.
2097 This option also has a subtle effect on the disassembly of
2098 instructions in code sections. When option '-d' is in effect
2099 objdump will assume that any symbols present in a code section
2100 occur on the boundary between instructions and it will refuse to
2101 disassemble across such a boundary. When option '-D' is in effect
2102 however this assumption is supressed. This means that it is
2103 possible for the output of '-d' and '-D' to differ if, for example,
2104 data is stored in code sections.
2106 If the target is an ARM architecture this switch also has the
2107 effect of forcing the disassembler to decode pieces of data found
2108 in code sections as if they were instructions.
2110 Note if the '--dwarf=follow-links' option is enabled then any
2111 symbol tables in linked debug info files will be read in and used
2115 When disassembling, don't print addresses on each line or for
2116 symbols and relocation offsets. In combination with
2117 '--no-show-raw-insn' this may be useful for comparing compiler
2120 '--prefix-addresses'
2121 When disassembling, print the complete address on each line. This
2122 is the older disassembly format.
2126 '--endian={big|little}'
2127 Specify the endianness of the object files. This only affects
2128 disassembly. This can be useful when disassembling a file format
2129 which does not describe endianness information, such as S-records.
2133 Display summary information from the overall header of each of the
2138 When disassembling sections, whenever a symbol is displayed, also
2139 display the file offset of the region of data that is about to be
2140 dumped. If zeroes are being skipped, then when disassembly
2141 resumes, tell the user how many zeroes were skipped and the file
2142 offset of the location from where the disassembly resumes. When
2143 dumping sections, display the file offset of the location from
2144 where the dump starts.
2146 '--file-start-context'
2147 Specify that when displaying interlisted source code/disassembly
2148 (assumes '-S') from a file that has not yet been displayed, extend
2149 the context to the start of the file.
2154 Display summary information from the section headers of the object
2157 File segments may be relocated to nonstandard addresses, for
2158 example by using the '-Ttext', '-Tdata', or '-Tbss' options to
2159 'ld'. However, some object file formats, such as a.out, do not
2160 store the starting address of the file segments. In those
2161 situations, although 'ld' relocates the sections correctly, using
2162 'objdump -h' to list the file section headers cannot show the
2163 correct addresses. Instead, it shows the usual addresses, which
2164 are implicit for the target.
2166 Note, in some cases it is possible for a section to have both the
2167 READONLY and the NOREAD attributes set. In such cases the NOREAD
2168 attribute takes precedence, but 'objdump' will report both since
2169 the exact setting of the flag bits might be important.
2173 Print a summary of the options to 'objdump' and exit.
2177 Display a list showing all architectures and object formats
2178 available for specification with '-b' or '-m'.
2182 Display information only for section NAME.
2186 Display the contents of non-debug sections found in separate
2187 debuginfo files that are linked to the main file. This option
2188 automatically implies the '-WK' option, and only sections requested
2189 by other command line options will be displayed.
2193 Label the display (using debugging information) with the filename
2194 and source line numbers corresponding to the object code or relocs
2195 shown. Only useful with '-d', '-D', or '-r'.
2198 '--architecture=MACHINE'
2199 Specify the architecture to use when disassembling object files.
2200 This can be useful when disassembling object files which do not
2201 describe architecture information, such as S-records. You can list
2202 the available architectures with the '-i' option.
2204 If the target is an ARM architecture then this switch has an
2205 additional effect. It restricts the disassembly to only those
2206 instructions supported by the architecture specified by MACHINE.
2207 If it is necessary to use this switch because the input file does
2208 not contain any architecture information, but it is also desired to
2209 disassemble all the instructions use '-marm'.
2212 '--disassembler-options=OPTIONS'
2213 Pass target specific information to the disassembler. Only
2214 supported on some targets. If it is necessary to specify more than
2215 one disassembler option then multiple '-M' options can be used or
2216 can be placed together into a comma separated list.
2218 For ARC, 'dsp' controls the printing of DSP instructions, 'spfp'
2219 selects the printing of FPX single precision FP instructions,
2220 'dpfp' selects the printing of FPX double precision FP
2221 instructions, 'quarkse_em' selects the printing of special
2222 QuarkSE-EM instructions, 'fpuda' selects the printing of double
2223 precision assist instructions, 'fpus' selects the printing of FPU
2224 single precision FP instructions, while 'fpud' selects the printing
2225 of FPU double precision FP instructions. Additionally, one can
2226 choose to have all the immediates printed in hexadecimal using
2227 'hex'. By default, the short immediates are printed using the
2228 decimal representation, while the long immediate values are printed
2231 'cpu=...' allows one to enforce a particular ISA when disassembling
2232 instructions, overriding the '-m' value or whatever is in the ELF
2233 file. This might be useful to select ARC EM or HS ISA, because
2234 architecture is same for those and disassembler relies on private
2235 ELF header data to decide if code is for EM or HS. This option
2236 might be specified multiple times - only the latest value will be
2237 used. Valid values are same as for the assembler '-mcpu=...'
2240 If the target is an ARM architecture then this switch can be used
2241 to select which register name set is used during disassembler.
2242 Specifying '-M reg-names-std' (the default) will select the
2243 register names as used in ARM's instruction set documentation, but
2244 with register 13 called 'sp', register 14 called 'lr' and register
2245 15 called 'pc'. Specifying '-M reg-names-apcs' will select the
2246 name set used by the ARM Procedure Call Standard, whilst specifying
2247 '-M reg-names-raw' will just use 'r' followed by the register
2250 There are also two variants on the APCS register naming scheme
2251 enabled by '-M reg-names-atpcs' and '-M reg-names-special-atpcs'
2252 which use the ARM/Thumb Procedure Call Standard naming conventions.
2253 (Either with the normal register names or the special register
2256 This option can also be used for ARM architectures to force the
2257 disassembler to interpret all instructions as Thumb instructions by
2258 using the switch '--disassembler-options=force-thumb'. This can be
2259 useful when attempting to disassemble thumb code produced by other
2262 For AArch64 targets this switch can be used to set whether
2263 instructions are disassembled as the most general instruction using
2264 the '-M no-aliases' option or whether instruction notes should be
2265 generated as comments in the disasssembly using '-M notes'.
2267 For the x86, some of the options duplicate functions of the '-m'
2268 switch, but allow finer grained control.
2272 Select disassembly for the given architecture.
2276 Select between intel syntax mode and AT&T syntax mode.
2280 Select between AMD64 ISA and Intel64 ISA.
2284 Select between intel mnemonic mode and AT&T mnemonic mode.
2285 Note: 'intel-mnemonic' implies 'intel' and 'att-mnemonic'
2293 Specify the default address size and operand size. These five
2294 options will be overridden if 'x86-64', 'i386' or 'i8086'
2295 appear later in the option string.
2298 When in AT&T mode and also for a limited set of instructions
2299 when in Intel mode, instructs the disassembler to print a
2300 mnemonic suffix even when the suffix could be inferred by the
2301 operands or, for certain instructions, the execution mode's
2304 For PowerPC, the '-M' argument 'raw' selects disasssembly of
2305 hardware insns rather than aliases. For example, you will see
2306 'rlwinm' rather than 'clrlwi', and 'addi' rather than 'li'. All of
2307 the '-m' arguments for 'gas' that select a CPU are supported.
2308 These are: '403', '405', '440', '464', '476', '601', '603', '604',
2309 '620', '7400', '7410', '7450', '7455', '750cl', '821', '850',
2310 '860', 'a2', 'booke', 'booke32', 'cell', 'com', 'e200z4', 'e300',
2311 'e500', 'e500mc', 'e500mc64', 'e500x2', 'e5500', 'e6500', 'efs',
2312 'power4', 'power5', 'power6', 'power7', 'power8', 'power9',
2313 'power10', 'ppc', 'ppc32', 'ppc64', 'ppc64bridge', 'ppcps', 'pwr',
2314 'pwr2', 'pwr4', 'pwr5', 'pwr5x', 'pwr6', 'pwr7', 'pwr8', 'pwr9',
2315 'pwr10', 'pwrx', 'titan', and 'vle'. '32' and '64' modify the
2316 default or a prior CPU selection, disabling and enabling 64-bit
2317 insns respectively. In addition, 'altivec', 'any', 'htm', 'vsx',
2318 and 'spe' add capabilities to a previous _or later_ CPU selection.
2319 'any' will disassemble any opcode known to binutils, but in cases
2320 where an opcode has two different meanings or different arguments,
2321 you may not see the disassembly you expect. If you disassemble
2322 without giving a CPU selection, a default will be chosen from
2323 information gleaned by BFD from the object files headers, but the
2324 result again may not be as you expect.
2326 For MIPS, this option controls the printing of instruction mnemonic
2327 names and register names in disassembled instructions. Multiple
2328 selections from the following may be specified as a comma separated
2329 string, and invalid options are ignored:
2332 Print the 'raw' instruction mnemonic instead of some pseudo
2333 instruction mnemonic. I.e., print 'daddu' or 'or' instead of
2334 'move', 'sll' instead of 'nop', etc.
2337 Disassemble MSA instructions.
2340 Disassemble the virtualization ASE instructions.
2343 Disassemble the eXtended Physical Address (XPA) ASE
2347 Print GPR (general-purpose register) names as appropriate for
2348 the specified ABI. By default, GPR names are selected
2349 according to the ABI of the binary being disassembled.
2352 Print FPR (floating-point register) names as appropriate for
2353 the specified ABI. By default, FPR numbers are printed rather
2357 Print CP0 (system control coprocessor; coprocessor 0) register
2358 names as appropriate for the CPU or architecture specified by
2359 ARCH. By default, CP0 register names are selected according
2360 to the architecture and CPU of the binary being disassembled.
2363 Print HWR (hardware register, used by the 'rdhwr' instruction)
2364 names as appropriate for the CPU or architecture specified by
2365 ARCH. By default, HWR names are selected according to the
2366 architecture and CPU of the binary being disassembled.
2369 Print GPR and FPR names as appropriate for the selected ABI.
2372 Print CPU-specific register names (CP0 register and HWR names)
2373 as appropriate for the selected CPU or architecture.
2375 For any of the options listed above, ABI or ARCH may be specified
2376 as 'numeric' to have numbers printed rather than names, for the
2377 selected types of registers. You can list the available values of
2378 ABI and ARCH using the '--help' option.
2380 For VAX, you can specify function entry addresses with '-M
2381 entry:0xf00ba'. You can use this multiple times to properly
2382 disassemble VAX binary files that don't contain symbol tables (like
2383 ROM dumps). In these cases, the function entry mask would
2384 otherwise be decoded as VAX instructions, which would probably lead
2385 the rest of the function being wrongly disassembled.
2389 Print information that is specific to the object file format. The
2390 exact information printed depends upon the object file format. For
2391 some object file formats, no additional information is printed.
2395 Print information that is specific to the object file format. The
2396 argument OPTIONS is a comma separated list that depends on the
2397 format (the lists of options is displayed with the help).
2399 For XCOFF, the available options are:
2413 Not all object formats support this option. In particular the ELF
2414 format does not use it.
2418 Print the relocation entries of the file. If used with '-d' or
2419 '-D', the relocations are printed interspersed with the
2424 Print the dynamic relocation entries of the file. This is only
2425 meaningful for dynamic objects, such as certain types of shared
2426 libraries. As for '-r', if used with '-d' or '-D', the relocations
2427 are printed interspersed with the disassembly.
2431 Display the full contents of any sections requested. By default
2432 all non-empty sections are displayed.
2436 Display source code intermixed with disassembly, if possible.
2439 '--source-comment[=TXT]'
2440 Like the '-S' option, but all source code lines are displayed with
2441 a prefix of TXT. Typically TXT will be a comment string which can
2442 be used to distinguish the assembler code from the source code. If
2443 TXT is not provided then a default string of "# " (hash followed by
2444 a space), will be used.
2447 Specify PREFIX to add to the absolute paths when used with '-S'.
2449 '--prefix-strip=LEVEL'
2450 Indicate how many initial directory names to strip off the
2451 hardwired absolute paths. It has no effect without
2455 When disassembling instructions, print the instruction in hex as
2456 well as in symbolic form. This is the default except when
2457 '--prefix-addresses' is used.
2459 '--no-show-raw-insn'
2460 When disassembling instructions, do not print the instruction
2461 bytes. This is the default when '--prefix-addresses' is used.
2463 '--insn-width=WIDTH'
2464 Display WIDTH bytes on a single line when disassembling
2467 '--visualize-jumps[=color|=extended-color|=off]'
2468 Visualize jumps that stay inside a function by drawing ASCII art
2469 between the start and target addresses. The optional '=color'
2470 argument adds color to the output using simple terminal colors.
2471 Alternatively the '=extended-color' argument will add color using
2472 8bit colors, but these might not work on all terminals.
2474 If it is necessary to disable the 'visualize-jumps' option after it
2475 has previously been enabled then use 'visualize-jumps=off'.
2477 '-W[lLiaprmfFsoORtUuTgAckK]'
2478 '--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
2480 Displays the contents of the DWARF debug sections in the file, if
2481 any are present. Compressed debug sections are automatically
2482 decompressed (temporarily) before they are displayed. If one or
2483 more of the optional letters or words follows the switch then only
2484 those type(s) of data will be dumped. The letters and words refer
2485 to the following information:
2489 Displays the contents of the '.debug_abbrev' section.
2493 Displays the contents of the '.debug_addr' section.
2497 Displays the contents of the '.debug_cu_index' and/or
2498 '.debug_tu_index' sections.
2502 Display the raw contents of a '.debug_frame' section.
2506 Display the interpreted contents of a '.debug_frame' section.
2510 Displays the contents of the '.gdb_index' and/or
2511 '.debug_names' sections.
2515 Displays the contents of the '.debug_info' section. Note: the
2516 output from this option can also be restricted by the use of
2517 the '--dwarf-depth' and '--dwarf-start' options.
2521 Displays the contents of the '.gnu_debuglink',
2522 '.gnu_debugaltlink' and '.debug_sup' sections, if any of them
2523 are present. Also displays any links to separate dwarf object
2524 files (dwo), if they are specified by the DW_AT_GNU_dwo_name
2525 or DW_AT_dwo_name attributes in the '.debug_info' section.
2529 Display the contents of any selected debug sections that are
2530 found in linked, separate debug info file(s). This can result
2531 in multiple versions of the same debug section being displayed
2532 if it exists in more than one file.
2534 In addition, when displaying DWARF attributes, if a form is
2535 found that references the separate debug info file, then the
2536 referenced contents will also be displayed.
2538 Note - in some distributions this option is enabled by
2539 default. It can be disabled via the 'N' debug option. The
2540 default can be chosen when configuring the binutils via the
2541 '--enable-follow-debug-links=yes' or
2542 '--enable-follow-debug-links=no' options. If these are not
2543 used then the default is to enable the following of debug
2548 Disables the following of links to separate debug info files.
2552 Displays the contents of the '.debug_line' section in a raw
2557 Displays the interpreted contents of the '.debug_line'
2562 Displays the contents of the '.debug_macro' and/or
2563 '.debug_macinfo' sections.
2567 Displays the contents of the '.debug_loc' and/or
2568 '.debug_loclists' sections.
2572 Displays the contents of the '.debug_str_offsets' section.
2576 Displays the contents of the '.debug_pubnames' and/or
2577 '.debug_gnu_pubnames' sections.
2581 Displays the contents of the '.debug_aranges' section.
2585 Displays the contents of the '.debug_ranges' and/or
2586 '.debug_rnglists' sections.
2590 Displays the contents of the '.debug_str', '.debug_line_str'
2591 and/or '.debug_str_offsets' sections.
2595 Displays the contents of the '.debug_pubtypes' and/or
2596 '.debug_gnu_pubtypes' sections.
2600 Displays the contents of the '.trace_aranges' section.
2604 Displays the contents of the '.trace_abbrev' section.
2608 Displays the contents of the '.trace_info' section.
2610 Note: displaying the contents of '.debug_static_funcs',
2611 '.debug_static_vars' and 'debug_weaknames' sections is not
2612 currently supported.
2615 Limit the dump of the '.debug_info' section to N children. This is
2616 only useful with '--debug-dump=info'. The default is to print all
2617 DIEs; the special value 0 for N will also have this effect.
2619 With a non-zero value for N, DIEs at or deeper than N levels will
2620 not be printed. The range for N is zero-based.
2623 Print only DIEs beginning with the DIE numbered N. This is only
2624 useful with '--debug-dump=info'.
2626 If specified, this option will suppress printing of any header
2627 information and all DIEs before the DIE numbered N. Only siblings
2628 and children of the specified DIE will be printed.
2630 This can be used in conjunction with '--dwarf-depth'.
2633 Enable additional checks for consistency of Dwarf information.
2637 Display the contents of the specified CTF section. CTF sections
2638 themselves contain many subsections, all of which are displayed in
2641 By default, display the name of the section named .CTF, which is
2642 the name emitted by 'ld'.
2644 '--ctf-parent=MEMBER'
2646 If the CTF section contains ambiguously-defined types, it will
2647 consist of an archive of many CTF dictionaries, all inheriting from
2648 one dictionary containing unambiguous types. This member is by
2649 default named .CTF, like the section containing it, but it is
2650 possible to change this name using the
2651 'ctf_link_set_memb_name_changer' function at link time. When
2652 looking at CTF archives that have been created by a linker that
2653 uses the name changer to rename the parent archive member,
2654 '--ctf-parent' can be used to specify the name used for the parent.
2658 Display the full contents of any sections requested. Display the
2659 contents of the .stab and .stab.index and .stab.excl sections from
2660 an ELF file. This is only useful on systems (such as Solaris 2.0)
2661 in which '.stab' debugging symbol-table entries are carried in an
2662 ELF section. In most other file formats, debugging symbol-table
2663 entries are interleaved with linkage symbols, and are visible in
2664 the '--syms' output.
2666 '--start-address=ADDRESS'
2667 Start displaying data at the specified address. This affects the
2668 output of the '-d', '-r' and '-s' options.
2670 '--stop-address=ADDRESS'
2671 Stop displaying data at the specified address. This affects the
2672 output of the '-d', '-r' and '-s' options.
2676 Print the symbol table entries of the file. This is similar to the
2677 information provided by the 'nm' program, although the display
2678 format is different. The format of the output depends upon the
2679 format of the file being dumped, but there are two main types. One
2682 [ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss
2683 [ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fred
2685 where the number inside the square brackets is the number of the
2686 entry in the symbol table, the SEC number is the section number,
2687 the FL value are the symbol's flag bits, the TY number is the
2688 symbol's type, the SCL number is the symbol's storage class and the
2689 NX value is the number of auxiliary entries associated with the
2690 symbol. The last two fields are the symbol's value and its name.
2692 The other common output format, usually seen with ELF based files,
2695 00000000 l d .bss 00000000 .bss
2696 00000000 g .text 00000000 fred
2698 Here the first number is the symbol's value (sometimes referred to
2699 as its address). The next field is actually a set of characters
2700 and spaces indicating the flag bits that are set on the symbol.
2701 These characters are described below. Next is the section with
2702 which the symbol is associated or _*ABS*_ if the section is
2703 absolute (ie not connected with any section), or _*UND*_ if the
2704 section is referenced in the file being dumped, but not defined
2707 After the section name comes another field, a number, which for
2708 common symbols is the alignment and for other symbol is the size.
2709 Finally the symbol's name is displayed.
2711 The flag characters are divided into 7 groups as follows:
2716 The symbol is a local (l), global (g), unique global (u),
2717 neither global nor local (a space) or both global and local
2718 (!). A symbol can be neither local or global for a variety of
2719 reasons, e.g., because it is used for debugging, but it is
2720 probably an indication of a bug if it is ever both local and
2721 global. Unique global symbols are a GNU extension to the
2722 standard set of ELF symbol bindings. For such a symbol the
2723 dynamic linker will make sure that in the entire process there
2724 is just one symbol with this name and type in use.
2727 The symbol is weak (w) or strong (a space).
2730 The symbol denotes a constructor (C) or an ordinary symbol (a
2734 The symbol is a warning (W) or a normal symbol (a space). A
2735 warning symbol's name is a message to be displayed if the
2736 symbol following the warning symbol is ever referenced.
2740 The symbol is an indirect reference to another symbol (I), a
2741 function to be evaluated during reloc processing (i) or a
2742 normal symbol (a space).
2746 The symbol is a debugging symbol (d) or a dynamic symbol (D)
2747 or a normal symbol (a space).
2752 The symbol is the name of a function (F) or a file (f) or an
2753 object (O) or just a normal symbol (a space).
2757 Print the dynamic symbol table entries of the file. This is only
2758 meaningful for dynamic objects, such as certain types of shared
2759 libraries. This is similar to the information provided by the 'nm'
2760 program when given the '-D' ('--dynamic') option.
2762 The output format is similar to that produced by the '--syms'
2763 option, except that an extra field is inserted before the symbol's
2764 name, giving the version information associated with the symbol.
2765 If the version is the default version to be used when resolving
2766 unversioned references to the symbol then it's displayed as is,
2767 otherwise it's put into parentheses.
2770 When displaying symbols include those which the target considers to
2771 be special in some way and which would not normally be of interest
2775 '--unicode=[DEFAULT|INVALID|LOCALE|ESCAPE|HEX|HIGHLIGHT]'
2776 Controls the display of UTF-8 encoded multibyte characters in
2777 strings. The default ('--unicode=default') is to give them no
2778 special treatment. The '--unicode=locale' option displays the
2779 sequence in the current locale, which may or may not support them.
2780 The options '--unicode=hex' and '--unicode=invalid' display them as
2781 hex byte sequences enclosed by either angle brackets or curly
2784 The '--unicode=escape' option displays them as escape sequences
2785 (\UXXXX) and the '--unicode=highlight' option displays them as
2786 escape sequences highlighted in red (if supported by the output
2787 device). The colouring is intended to draw attention to the
2788 presence of unicode sequences where they might not be expected.
2792 Print the version number of 'objdump' and exit.
2796 Display all available header information, including the symbol
2797 table and relocation entries. Using '-x' is equivalent to
2798 specifying all of '-a -f -h -p -r -t'.
2802 Format some lines for output devices that have more than 80
2803 columns. Also do not truncate symbol names when they are
2807 '--disassemble-zeroes'
2808 Normally the disassembly output will skip blocks of zeroes. This
2809 option directs the disassembler to disassemble those blocks, just
2810 like any other data.
2813 File: binutils.info, Node: ranlib, Next: size, Prev: objdump, Up: Top
2818 ranlib [--plugin NAME] [-DhHvVt] ARCHIVE
2820 'ranlib' generates an index to the contents of an archive and stores
2821 it in the archive. The index lists each symbol defined by a member of
2822 an archive that is a relocatable object file.
2824 You may use 'nm -s' or 'nm --print-armap' to list this index.
2826 An archive with such an index speeds up linking to the library and
2827 allows routines in the library to call each other without regard to
2828 their placement in the archive.
2830 The GNU 'ranlib' program is another form of GNU 'ar'; running
2831 'ranlib' is completely equivalent to executing 'ar -s'. *Note ar::.
2836 Show usage information for 'ranlib'.
2841 Show the version number of 'ranlib'.
2844 Operate in _deterministic_ mode. The symbol map archive member's
2845 header will show zero for the UID, GID, and timestamp. When this
2846 option is used, multiple runs will produce identical output files.
2848 If 'binutils' was configured with
2849 '--enable-deterministic-archives', then this mode is on by default.
2850 It can be disabled with the '-U' option, described below.
2853 Update the timestamp of the symbol map of an archive.
2856 Do _not_ operate in _deterministic_ mode. This is the inverse of
2857 the '-D' option, above: the archive index will get actual UID, GID,
2858 timestamp, and file mode values.
2860 If 'binutils' was configured _without_
2861 '--enable-deterministic-archives', then this mode is on by default.
2864 File: binutils.info, Node: size, Next: strings, Prev: ranlib, Up: Top
2869 size [-A|-B|-G|--format=COMPATIBILITY]
2871 [-d|-o|-x|--radix=NUMBER]
2874 [--target=BFDNAME] [-V|--version]
2877 The GNU 'size' utility lists the section sizes and the total size for
2878 each of the binary files OBJFILE on its argument list. By default, one
2879 line of output is generated for each file or each module if the file is
2882 OBJFILE... are the files to be examined. If none are specified, the
2883 file 'a.out' will be used instead.
2885 The command-line options have the following meanings:
2890 '--format=COMPATIBILITY'
2891 Using one of these options, you can choose whether the output from
2892 GNU 'size' resembles output from System V 'size' (using '-A', or
2893 '--format=sysv'), or Berkeley 'size' (using '-B', or
2894 '--format=berkeley'). The default is the one-line format similar
2895 to Berkeley's. Alternatively, you can choose the GNU format output
2896 (using '-G', or '--format=gnu'), this is similar to Berkeley's
2897 output format, but sizes are counted differently.
2899 Here is an example of the Berkeley (default) format of output from
2901 $ size --format=Berkeley ranlib size
2902 text data bss dec hex filename
2903 294880 81920 11592 388392 5ed28 ranlib
2904 294880 81920 11888 388688 5ee50 size
2906 The Berkeley style output counts read only data in the 'text'
2907 column, not in the 'data' column, the 'dec' and 'hex' columns both
2908 display the sum of the 'text', 'data', and 'bss' columns in decimal
2909 and hexadecimal respectively.
2911 The GNU format counts read only data in the 'data' column, not the
2912 'text' column, and only displays the sum of the 'text', 'data', and
2913 'bss' columns once, in the 'total' column. The '--radix' option
2914 can be used to change the number base for all columns. Here is the
2915 same data displayed with GNU conventions:
2917 $ size --format=GNU ranlib size
2918 text data bss total filename
2919 279880 96920 11592 388392 ranlib
2920 279880 96920 11888 388688 size
2922 This is the same data, but displayed closer to System V
2925 $ size --format=SysV ranlib size
2942 Show a summary of acceptable arguments and options.
2948 Using one of these options, you can control whether the size of
2949 each section is given in decimal ('-d', or '--radix=10'); octal
2950 ('-o', or '--radix=8'); or hexadecimal ('-x', or '--radix=16'). In
2951 '--radix=NUMBER', only the three values (8, 10, 16) are supported.
2952 The total size is always given in two radices; decimal and
2953 hexadecimal for '-d' or '-x' output, or octal and hexadecimal if
2957 Print total size of common symbols in each file. When using
2958 Berkeley or GNU format these are included in the bss size.
2962 Show totals of all objects listed (Berkeley or GNU format mode
2966 Specify that the object-code format for OBJFILE is BFDNAME. This
2967 option may not be necessary; 'size' can automatically recognize
2968 many formats. *Note Target Selection::, for more information.
2972 Display the version number of 'size'.
2975 File: binutils.info, Node: strings, Next: strip, Prev: size, Up: Top
2980 strings [-afovV] [-MIN-LEN]
2981 [-n MIN-LEN] [--bytes=MIN-LEN]
2982 [-t RADIX] [--radix=RADIX]
2983 [-e ENCODING] [--encoding=ENCODING]
2984 [-U METHOD] [--unicode=METHOD]
2985 [-] [--all] [--print-file-name]
2986 [-T BFDNAME] [--target=BFDNAME]
2987 [-w] [--include-all-whitespace]
2988 [-s] [--output-separator SEP_STRING]
2989 [--help] [--version] FILE...
2991 For each FILE given, GNU 'strings' prints the printable character
2992 sequences that are at least 4 characters long (or the number given with
2993 the options below) and are followed by an unprintable character.
2995 Depending upon how the strings program was configured it will default
2996 to either displaying all the printable sequences that it can find in
2997 each file, or only those sequences that are in loadable, initialized
2998 data sections. If the file type is unrecognizable, or if strings is
2999 reading from stdin then it will always display all of the printable
3000 sequences that it can find.
3002 For backwards compatibility any file that occurs after a command-line
3003 option of just '-' will also be scanned in full, regardless of the
3004 presence of any '-d' option.
3006 'strings' is mainly useful for determining the contents of non-text
3012 Scan the whole file, regardless of what sections it contains or
3013 whether those sections are loaded or initialized. Normally this is
3014 the default behaviour, but strings can be configured so that the
3015 '-d' is the default instead.
3017 The '-' option is position dependent and forces strings to perform
3018 full scans of any file that is mentioned after the '-' on the
3019 command line, even if the '-d' option has been specified.
3023 Only print strings from initialized, loaded data sections in the
3024 file. This may reduce the amount of garbage in the output, but it
3025 also exposes the strings program to any security flaws that may be
3026 present in the BFD library used to scan and load sections. Strings
3027 can be configured so that this option is the default behaviour. In
3028 such cases the '-a' option can be used to avoid using the BFD
3029 library and instead just print all of the strings found in the
3034 Print the name of the file before each string.
3037 Print a summary of the program usage on the standard output and
3043 Print sequences of displayable characters that are at least MIN-LEN
3044 characters long. If not specified a default minimum length of 4 is
3045 used. The distinction between displayable and non-displayable
3046 characters depends upon the setting of the '-e' and '-U' options.
3047 Sequences are always terminated at control characters such as
3048 new-line and carriage-return, but not the tab character.
3051 Like '-t o'. Some other versions of 'strings' have '-o' act like
3052 '-t d' instead. Since we can not be compatible with both ways, we
3057 Print the offset within the file before each string. The single
3058 character argument specifies the radix of the offset--'o' for
3059 octal, 'x' for hexadecimal, or 'd' for decimal.
3062 '--encoding=ENCODING'
3063 Select the character encoding of the strings that are to be found.
3064 Possible values for ENCODING are: 's' = single-7-bit-byte
3065 characters (ASCII, ISO 8859, etc., default), 'S' =
3066 single-8-bit-byte characters, 'b' = 16-bit bigendian, 'l' = 16-bit
3067 littleendian, 'B' = 32-bit bigendian, 'L' = 32-bit littleendian.
3068 Useful for finding wide character strings. ('l' and 'b' apply to,
3069 for example, Unicode UTF-16/UCS-2 encodings).
3072 '--unicode=[DEFAULT|INVALID|LOCALE|ESCAPE|HEX|HIGHLIGHT]'
3073 Controls the display of UTF-8 encoded multibyte characters in
3074 strings. The default ('--unicode=default') is to give them no
3075 special treatment, and instead rely upon the setting of the
3076 '--encoding' option. The other values for this option
3077 automatically enable '--encoding=S'.
3079 The '--unicode=invalid' option treats them as non-graphic
3080 characters and hence not part of a valid string. All the remaining
3081 options treat them as valid string characters.
3083 The '--unicode=locale' option displays them in the current locale,
3084 which may or may not support UTF-8 encoding. The '--unicode=hex'
3085 option displays them as hex byte sequences enclosed between <>
3086 characters. The '--unicode=escape' option displays them as escape
3087 sequences (\UXXXX) and the '--unicode=highlight' option displays
3088 them as escape sequences highlighted in red (if supported by the
3089 output device). The colouring is intended to draw attention to the
3090 presence of unicode sequences where they might not be expected.
3094 Specify an object code format other than your system's default
3095 format. *Note Target Selection::, for more information.
3100 Print the program version number on the standard output and exit.
3103 '--include-all-whitespace'
3104 By default tab and space characters are included in the strings
3105 that are displayed, but other whitespace characters, such a
3106 newlines and carriage returns, are not. The '-w' option changes
3107 this so that all whitespace characters are considered to be part of
3111 '--output-separator'
3112 By default, output strings are delimited by a new-line. This
3113 option allows you to supply any string to be used as the output
3114 record separator. Useful with -include-all-whitespace where
3115 strings may contain new-lines internally.
3118 File: binutils.info, Node: strip, Next: c++filt, Prev: strings, Up: Top
3123 strip [-F BFDNAME |--target=BFDNAME]
3124 [-I BFDNAME |--input-target=BFDNAME]
3125 [-O BFDNAME |--output-target=BFDNAME]
3127 [-S|-g|-d|--strip-debug]
3129 [-K SYMBOLNAME|--keep-symbol=SYMBOLNAME]
3130 [-M|--merge-notes][--no-merge-notes]
3131 [-N SYMBOLNAME |--strip-symbol=SYMBOLNAME]
3133 [-x|--discard-all] [-X |--discard-locals]
3134 [-R SECTIONNAME |--remove-section=SECTIONNAME]
3135 [--keep-section=SECTIONPATTERN]
3136 [--remove-relocations=SECTIONPATTERN]
3137 [-o FILE] [-p|--preserve-dates]
3138 [-D|--enable-deterministic-archives]
3139 [-U|--disable-deterministic-archives]
3140 [--keep-section-symbols]
3141 [--keep-file-symbols]
3143 [-v |--verbose] [-V|--version]
3147 GNU 'strip' discards all symbols from object files OBJFILE. The list
3148 of object files may include archives. At least one object file must be
3151 'strip' modifies the files named in its argument, rather than writing
3152 modified copies under different names.
3156 Treat the original OBJFILE as a file with the object code format
3157 BFDNAME, and rewrite it in the same format. *Note Target
3158 Selection::, for more information.
3161 Show a summary of the options to 'strip' and exit.
3164 Display a list showing all architectures and object formats
3168 '--input-target=BFDNAME'
3169 Treat the original OBJFILE as a file with the object code format
3170 BFDNAME. *Note Target Selection::, for more information.
3173 '--output-target=BFDNAME'
3174 Replace OBJFILE with a file in the output format BFDNAME. *Note
3175 Target Selection::, for more information.
3178 '--remove-section=SECTIONNAME'
3179 Remove any section named SECTIONNAME from the output file, in
3180 addition to whatever sections would otherwise be removed. This
3181 option may be given more than once. Note that using this option
3182 inappropriately may make the output file unusable. The wildcard
3183 character '*' may be given at the end of SECTIONNAME. If so, then
3184 any section starting with SECTIONNAME will be removed.
3186 If the first character of SECTIONPATTERN is the exclamation point
3187 (!) then matching sections will not be removed even if an earlier
3188 use of '--remove-section' on the same command line would otherwise
3189 remove it. For example:
3191 --remove-section=.text.* --remove-section=!.text.foo
3193 will remove all sections matching the pattern '.text.*', but will
3194 not remove the section '.text.foo'.
3196 '--keep-section=SECTIONPATTERN'
3197 When removing sections from the output file, keep sections that
3198 match SECTIONPATTERN.
3200 '--remove-relocations=SECTIONPATTERN'
3201 Remove relocations from the output file for any section matching
3202 SECTIONPATTERN. This option may be given more than once. Note
3203 that using this option inappropriately may make the output file
3204 unusable. Wildcard characters are accepted in SECTIONPATTERN. For
3207 --remove-relocations=.text.*
3209 will remove the relocations for all sections matching the patter
3212 If the first character of SECTIONPATTERN is the exclamation point
3213 (!) then matching sections will not have their relocation removed
3214 even if an earlier use of '--remove-relocations' on the same
3215 command line would otherwise cause the relocations to be removed.
3218 --remove-relocations=.text.* --remove-relocations=!.text.foo
3220 will remove all relocations for sections matching the pattern
3221 '.text.*', but will not remove relocations for the section
3232 Remove debugging symbols only.
3235 Remove the contents of all DWARF .dwo sections, leaving the
3236 remaining debugging sections and all symbols intact. See the
3237 description of this option in the 'objcopy' section for more
3241 Remove all symbols that are not needed for relocation processing in
3242 addition to debugging symbols and sections stripped by
3246 '--keep-symbol=SYMBOLNAME'
3247 When stripping symbols, keep symbol SYMBOLNAME even if it would
3248 normally be stripped. This option may be given more than once.
3253 For ELF files, attempt (or do not attempt) to reduce the size of
3254 any SHT_NOTE type sections by removing duplicate notes. The
3255 default is to attempt this reduction unless stripping debug or DWO
3259 '--strip-symbol=SYMBOLNAME'
3260 Remove symbol SYMBOLNAME from the source file. This option may be
3261 given more than once, and may be combined with strip options other
3265 Put the stripped output in FILE, rather than replacing the existing
3266 file. When this argument is used, only one OBJFILE argument may be
3271 Preserve the access and modification dates of the file.
3274 '--enable-deterministic-archives'
3275 Operate in _deterministic_ mode. When copying archive members and
3276 writing the archive index, use zero for UIDs, GIDs, timestamps, and
3277 use consistent file modes for all files.
3279 If 'binutils' was configured with
3280 '--enable-deterministic-archives', then this mode is on by default.
3281 It can be disabled with the '-U' option, below.
3284 '--disable-deterministic-archives'
3285 Do _not_ operate in _deterministic_ mode. This is the inverse of
3286 the '-D' option, above: when copying archive members and writing
3287 the archive index, use their actual UID, GID, timestamp, and file
3290 This is the default unless 'binutils' was configured with
3291 '--enable-deterministic-archives'.
3295 Permit regular expressions in SYMBOLNAMEs used in other command
3296 line options. The question mark (?), asterisk (*), backslash (\)
3297 and square brackets ([]) operators can be used anywhere in the
3298 symbol name. If the first character of the symbol name is the
3299 exclamation point (!) then the sense of the switch is reversed for
3300 that symbol. For example:
3304 would cause strip to only keep symbols that start with the letters
3305 "fo", but to discard the symbol "foo".
3309 Remove non-global symbols.
3313 Remove compiler-generated local symbols. (These usually start with
3316 '--keep-section-symbols'
3317 When stripping a file, perhaps with '--strip-debug' or
3318 '--strip-unneeded', retain any symbols specifying section names,
3319 which would otherwise get stripped.
3321 '--keep-file-symbols'
3322 When stripping a file, perhaps with '--strip-debug' or
3323 '--strip-unneeded', retain any symbols specifying source file
3324 names, which would otherwise get stripped.
3327 Strip a file, emptying the contents of any sections that would not
3328 be stripped by '--strip-debug' and leaving the debugging sections
3329 intact. In ELF files, this preserves all the note sections in the
3332 Note - the section headers of the stripped sections are preserved,
3333 including their sizes, but the contents of the section are
3334 discarded. The section headers are preserved so that other tools
3335 can match up the debuginfo file with the real executable, even if
3336 that executable has been relocated to a different address space.
3338 The intention is that this option will be used in conjunction with
3339 '--add-gnu-debuglink' to create a two part executable. One a
3340 stripped binary which will occupy less space in RAM and in a
3341 distribution and the second a debugging information file which is
3342 only needed if debugging abilities are required. The suggested
3343 procedure to create these files is as follows:
3345 1. Link the executable as normal. Assuming that it is called
3347 2. Run 'objcopy --only-keep-debug foo foo.dbg' to create a file
3348 containing the debugging info.
3349 3. Run 'objcopy --strip-debug foo' to create a stripped
3351 4. Run 'objcopy --add-gnu-debuglink=foo.dbg foo' to add a link to
3352 the debugging info into the stripped executable.
3354 Note--the choice of '.dbg' as an extension for the debug info file
3355 is arbitrary. Also the '--only-keep-debug' step is optional. You
3356 could instead do this:
3358 1. Link the executable as normal.
3359 2. Copy 'foo' to 'foo.full'
3360 3. Run 'strip --strip-debug foo'
3361 4. Run 'objcopy --add-gnu-debuglink=foo.full foo'
3363 i.e., the file pointed to by the '--add-gnu-debuglink' can be the
3364 full executable. It does not have to be a file created by the
3365 '--only-keep-debug' switch.
3367 Note--this switch is only intended for use on fully linked files.
3368 It does not make sense to use it on object files where the
3369 debugging information may be incomplete. Besides the gnu_debuglink
3370 feature currently only supports the presence of one filename
3371 containing debugging information, not multiple filenames on a
3372 one-per-object-file basis.
3376 Show the version number for 'strip'.
3380 Verbose output: list all object files modified. In the case of
3381 archives, 'strip -v' lists all members of the archive.
3384 File: binutils.info, Node: c++filt, Next: addr2line, Prev: strip, Up: Top
3389 c++filt [-_|--strip-underscore]
3390 [-n|--no-strip-underscore]
3394 [-r|--no-recurse-limit]
3395 [-R|--recurse-limit]
3396 [-s FORMAT|--format=FORMAT]
3397 [--help] [--version] [SYMBOL...]
3399 The C++ and Java languages provide function overloading, which means
3400 that you can write many functions with the same name, providing that
3401 each function takes parameters of different types. In order to be able
3402 to distinguish these similarly named functions C++ and Java encode them
3403 into a low-level assembler name which uniquely identifies each different
3404 version. This process is known as "mangling". The 'c++filt' (1)
3405 program does the inverse mapping: it decodes ("demangles") low-level
3406 names into user-level names so that they can be read.
3408 Every alphanumeric word (consisting of letters, digits, underscores,
3409 dollars, or periods) seen in the input is a potential mangled name. If
3410 the name decodes into a C++ name, the C++ name replaces the low-level
3411 name in the output, otherwise the original word is output. In this way
3412 you can pass an entire assembler source file, containing mangled names,
3413 through 'c++filt' and see the same source file containing demangled
3416 You can also use 'c++filt' to decipher individual symbols by passing
3417 them on the command line:
3421 If no SYMBOL arguments are given, 'c++filt' reads symbol names from
3422 the standard input instead. All the results are printed on the standard
3423 output. The difference between reading names from the command line
3424 versus reading names from the standard input is that command-line
3425 arguments are expected to be just mangled names and no checking is
3426 performed to separate them from surrounding text. Thus for example:
3430 will work and demangle the name to "f()" whereas:
3434 will not work. (Note the extra comma at the end of the mangled name
3435 which makes it invalid). This command however will work:
3437 echo _Z1fv, | c++filt -n
3439 and will display "f(),", i.e., the demangled name followed by a
3440 trailing comma. This behaviour is because when the names are read from
3441 the standard input it is expected that they might be part of an
3442 assembler source file where there might be extra, extraneous characters
3443 trailing after a mangled name. For example:
3445 .type _Z1fv, @function
3448 '--strip-underscore'
3449 On some systems, both the C and C++ compilers put an underscore in
3450 front of every name. For example, the C name 'foo' gets the
3451 low-level name '_foo'. This option removes the initial underscore.
3452 Whether 'c++filt' removes the underscore by default is target
3456 '--no-strip-underscore'
3457 Do not remove the initial underscore.
3461 When demangling the name of a function, do not display the types of
3462 the function's parameters.
3466 Attempt to demangle types as well as function names. This is
3467 disabled by default since mangled types are normally only used
3468 internally in the compiler, and they can be confused with
3469 non-mangled names. For example, a function called "a" treated as a
3470 mangled type name would be demangled to "signed char".
3474 Do not include implementation details (if any) in the demangled
3480 '--no-recurse-limit'
3482 '--no-recursion-limit'
3483 Enables or disables a limit on the amount of recursion performed
3484 whilst demangling strings. Since the name mangling formats allow
3485 for an infinite level of recursion it is possible to create strings
3486 whose decoding will exhaust the amount of stack space available on
3487 the host machine, triggering a memory fault. The limit tries to
3488 prevent this from happening by restricting recursion to 2048 levels
3491 The default is for this limit to be enabled, but disabling it may
3492 be necessary in order to demangle truly complicated names. Note
3493 however that if the recursion limit is disabled then stack
3494 exhaustion is possible and any bug reports about such an event will
3497 The '-r' option is a synonym for the '--no-recurse-limit' option.
3498 The '-R' option is a synonym for the '--recurse-limit' option.
3502 'c++filt' can decode various methods of mangling, used by different
3503 compilers. The argument to this option selects which method it
3507 Automatic selection based on executable (the default method)
3509 the one used by the GNU C++ compiler (g++)
3511 the one used by the Lucid compiler (lcc)
3513 the one specified by the C++ Annotated Reference Manual
3515 the one used by the HP compiler (aCC)
3517 the one used by the EDG compiler
3519 the one used by the GNU C++ compiler (g++) with the V3 ABI.
3521 the one used by the GNU Java compiler (gcj)
3523 the one used by the GNU Ada compiler (GNAT).
3526 Print a summary of the options to 'c++filt' and exit.
3529 Print the version number of 'c++filt' and exit.
3531 _Warning:_ 'c++filt' is a new utility, and the details of its user
3532 interface are subject to change in future releases. In particular,
3533 a command-line option may be required in the future to decode a
3534 name passed as an argument on the command line; in other words,
3538 may in a future release become
3540 c++filt OPTION SYMBOL
3542 ---------- Footnotes ----------
3544 (1) MS-DOS does not allow '+' characters in file names, so on MS-DOS
3545 this program is named 'CXXFILT'.
3548 File: binutils.info, Node: addr2line, Next: windmc, Prev: c++filt, Up: Top
3553 addr2line [-a|--addresses]
3554 [-b BFDNAME|--target=BFDNAME]
3555 [-C|--demangle[=STYLE]]
3556 [-r|--no-recurse-limit]
3557 [-R|--recurse-limit]
3558 [-e FILENAME|--exe=FILENAME]
3559 [-f|--functions] [-s|--basename]
3563 [-H|--help] [-V|--version]
3566 'addr2line' translates addresses into file names and line numbers.
3567 Given an address in an executable or an offset in a section of a
3568 relocatable object, it uses the debugging information to figure out
3569 which file name and line number are associated with it.
3571 The executable or relocatable object to use is specified with the
3572 '-e' option. The default is the file 'a.out'. The section in the
3573 relocatable object to use is specified with the '-j' option.
3575 'addr2line' has two modes of operation.
3577 In the first, hexadecimal addresses are specified on the command
3578 line, and 'addr2line' displays the file name and line number for each
3581 In the second, 'addr2line' reads hexadecimal addresses from standard
3582 input, and prints the file name and line number for each address on
3583 standard output. In this mode, 'addr2line' may be used in a pipe to
3584 convert dynamically chosen addresses.
3586 The format of the output is 'FILENAME:LINENO'. By default each input
3587 address generates one line of output.
3589 Two options can generate additional lines before each
3590 'FILENAME:LINENO' line (in that order).
3592 If the '-a' option is used then a line with the input address is
3595 If the '-f' option is used, then a line with the 'FUNCTIONNAME' is
3596 displayed. This is the name of the function containing the address.
3598 One option can generate additional lines after the 'FILENAME:LINENO'
3601 If the '-i' option is used and the code at the given address is
3602 present there because of inlining by the compiler then additional lines
3603 are displayed afterwards. One or two extra lines (if the '-f' option is
3604 used) are displayed for each inlined function.
3606 Alternatively if the '-p' option is used then each input address
3607 generates a single, long, output line containing the address, the
3608 function name, the file name and the line number. If the '-i' option
3609 has also been used then any inlined functions will be displayed in the
3610 same manner, but on separate lines, and prefixed by the text '(inlined
3613 If the file name or function name can not be determined, 'addr2line'
3614 will print two question marks in their place. If the line number can
3615 not be determined, 'addr2line' will print 0.
3617 The long and short forms of options, shown here as alternatives, are
3622 Display the address before the function name, file and line number
3623 information. The address is printed with a '0x' prefix to easily
3628 Specify that the object-code format for the object files is
3632 '--demangle[=STYLE]'
3633 Decode ("demangle") low-level symbol names into user-level names.
3634 Besides removing any initial underscore prepended by the system,
3635 this makes C++ function names readable. Different compilers have
3636 different mangling styles. The optional demangling style argument
3637 can be used to choose an appropriate demangling style for your
3638 compiler. *Note c++filt::, for more information on demangling.
3642 Specify the name of the executable for which addresses should be
3643 translated. The default file is 'a.out'.
3647 Display function names as well as file and line number information.
3651 Display only the base of each file name.
3655 If the address belongs to a function that was inlined, the source
3656 information for all enclosing scopes back to the first non-inlined
3657 function will also be printed. For example, if 'main' inlines
3658 'callee1' which inlines 'callee2', and address is from 'callee2',
3659 the source information for 'callee1' and 'main' will also be
3664 Read offsets relative to the specified section instead of absolute
3669 Make the output more human friendly: each location are printed on
3670 one line. If option '-i' is specified, lines for all enclosing
3671 scopes are prefixed with '(inlined by)'.
3676 '--no-recurse-limit'
3678 '--no-recursion-limit'
3679 Enables or disables a limit on the amount of recursion performed
3680 whilst demangling strings. Since the name mangling formats allow
3681 for an infinite level of recursion it is possible to create strings
3682 whose decoding will exhaust the amount of stack space available on
3683 the host machine, triggering a memory fault. The limit tries to
3684 prevent this from happening by restricting recursion to 2048 levels
3687 The default is for this limit to be enabled, but disabling it may
3688 be necessary in order to demangle truly complicated names. Note
3689 however that if the recursion limit is disabled then stack
3690 exhaustion is possible and any bug reports about such an event will
3693 The '-r' option is a synonym for the '--no-recurse-limit' option.
3694 The '-R' option is a synonym for the '--recurse-limit' option.
3696 Note this option is only effective if the '-C' or '--demangle'
3697 option has been enabled.
3700 File: binutils.info, Node: windmc, Next: windres, Prev: addr2line, Up: Top
3705 'windmc' may be used to generator Windows message resources.
3707 _Warning:_ 'windmc' is not always built as part of the binary
3708 utilities, since it is only useful for Windows targets.
3710 windmc [options] input-file
3712 'windmc' reads message definitions from an input file (.mc) and
3713 translate them into a set of output files. The output files may be of
3717 A C header file containing the message definitions.
3720 A resource file compilable by the 'windres' tool.
3723 One or more binary files containing the resource data for a
3724 specific message language.
3727 A C include file that maps message id's to their symbolic name.
3729 The exact description of these different formats is available in
3730 documentation from Microsoft.
3732 When 'windmc' converts from the 'mc' format to the 'bin' format,
3733 'rc', 'h', and optional 'dbg' it is acting like the Windows Message
3738 Specifies that the input file specified is ASCII. This is the
3743 Specifies that messages in the output 'bin' files should be in
3748 Specifies that 'bin' filenames should have to be prefixed by the
3749 basename of the source file.
3753 Sets the customer bit in all message id's.
3756 '--codepage_in CODEPAGE'
3757 Sets the default codepage to be used to convert input file to
3758 UTF16. The default is ocdepage 1252.
3762 Outputs the constants in the header file in decimal. Default is
3763 using hexadecimal output.
3767 The extension for the header file. The default is .h extension.
3771 Specify the BFD format to use for a bin file as output. This is a
3772 BFD target name; you can use the '--help' option to see a list of
3773 supported targets. Normally 'windmc' will use the default format,
3774 which is the first one listed by the '--help' option. *note Target
3779 The target directory of the generated header file. The default is
3780 the current directory.
3784 Displays a list of command-line options and then exits.
3787 '--maxlength CHARACTERS'
3788 Instructs 'windmc' to generate a warning if the length of any
3789 message exceeds the number specified.
3793 Terminate message text in 'bin' files by zero. By default they are
3794 terminated by CR/LF.
3798 Not yet implemented. Instructs 'windmc' to generate an OLE2 header
3799 file, using HRESULT definitions. Status codes are used if the flag
3803 '--codepage_out CODEPAGE'
3804 Sets the default codepage to be used to output text files. The
3805 default is ocdepage 1252.
3809 The target directory for the generated 'rc' script and the
3810 generated 'bin' files that the resource compiler script includes.
3811 The default is the current directory.
3815 Specifies that the input file is UTF16.
3819 Specifies that messages in the output 'bin' file should be in UTF16
3820 format. This is the default behaviour.
3824 Enable verbose mode.
3828 Prints the version number for 'windmc'.
3832 The path of the 'dbg' C include file that maps message id's to the
3833 symbolic name. No such file is generated without specifying the
3837 File: binutils.info, Node: windres, Next: dlltool, Prev: windmc, Up: Top
3842 'windres' may be used to manipulate Windows resources.
3844 _Warning:_ 'windres' is not always built as part of the binary
3845 utilities, since it is only useful for Windows targets.
3847 windres [options] [input-file] [output-file]
3849 'windres' reads resources from an input file and copies them into an
3850 output file. Either file may be in one of three formats:
3853 A text format read by the Resource Compiler.
3856 A binary format generated by the Resource Compiler.
3859 A COFF object or executable.
3861 The exact description of these different formats is available in
3862 documentation from Microsoft.
3864 When 'windres' converts from the 'rc' format to the 'res' format, it
3865 is acting like the Windows Resource Compiler. When 'windres' converts
3866 from the 'res' format to the 'coff' format, it is acting like the
3867 Windows 'CVTRES' program.
3869 When 'windres' generates an 'rc' file, the output is similar but not
3870 identical to the format expected for the input. When an input 'rc' file
3871 refers to an external filename, an output 'rc' file will instead include
3874 If the input or output format is not specified, 'windres' will guess
3875 based on the file name, or, for the input file, the file contents. A
3876 file with an extension of '.rc' will be treated as an 'rc' file, a file
3877 with an extension of '.res' will be treated as a 'res' file, and a file
3878 with an extension of '.o' or '.exe' will be treated as a 'coff' file.
3880 If no output file is specified, 'windres' will print the resources in
3881 'rc' format to standard output.
3883 The normal use is for you to write an 'rc' file, use 'windres' to
3884 convert it to a COFF object file, and then link the COFF file into your
3885 application. This will make the resources described in the 'rc' file
3886 available to Windows.
3890 The name of the input file. If this option is not used, then
3891 'windres' will use the first non-option argument as the input file
3892 name. If there are no non-option arguments, then 'windres' will
3893 read from standard input. 'windres' can not read a COFF file from
3898 The name of the output file. If this option is not used, then
3899 'windres' will use the first non-option argument, after any used
3900 for the input file name, as the output file name. If there is no
3901 non-option argument, then 'windres' will write to standard output.
3902 'windres' can not write a COFF file to standard output. Note, for
3903 compatibility with 'rc' the option '-fo' is also accepted, but its
3904 use is not recommended.
3907 '--input-format FORMAT'
3908 The input format to read. FORMAT may be 'res', 'rc', or 'coff'.
3909 If no input format is specified, 'windres' will guess, as described
3913 '--output-format FORMAT'
3914 The output format to generate. FORMAT may be 'res', 'rc', or
3915 'coff'. If no output format is specified, 'windres' will guess, as
3920 Specify the BFD format to use for a COFF file as input or output.
3921 This is a BFD target name; you can use the '--help' option to see a
3922 list of supported targets. Normally 'windres' will use the default
3923 format, which is the first one listed by the '--help' option.
3924 *note Target Selection::.
3926 '--preprocessor PROGRAM'
3927 When 'windres' reads an 'rc' file, it runs it through the C
3928 preprocessor first. This option may be used to specify the
3929 preprocessor to use. The default preprocessor is 'gcc'.
3931 '--preprocessor-arg OPTION'
3932 When 'windres' reads an 'rc' file, it runs it through the C
3933 preprocessor first. This option may be used to specify additional
3934 text to be passed to preprocessor on its command line. This option
3935 can be used multiple times to add multiple options to the
3936 preprocessor command line. If the '--preprocessor' option has not
3937 been specified then a default set of preprocessor arguments will be
3938 used, with any '--preprocessor-arg' options being placed after them
3939 on the command line. These default arguments are '-E',
3940 '-xc-header' and '-DRC_INVOKED'.
3943 '--include-dir DIRECTORY'
3944 Specify an include directory to use when reading an 'rc' file.
3945 'windres' will pass this to the preprocessor as an '-I' option.
3946 'windres' will also search this directory when looking for files
3947 named in the 'rc' file. If the argument passed to this command
3948 matches any of the supported FORMATS (as described in the '-J'
3949 option), it will issue a deprecation warning, and behave just like
3950 the '-J' option. New programs should not use this behaviour. If a
3951 directory happens to match a FORMAT, simple prefix it with './' to
3952 disable the backward compatibility.
3955 '--define SYM[=VAL]'
3956 Specify a '-D' option to pass to the preprocessor when reading an
3961 Specify a '-U' option to pass to the preprocessor when reading an
3965 Ignored for compatibility with rc.
3968 Enable verbose mode. This tells you what the preprocessor is if
3969 you didn't specify one.
3973 Specify the default codepage to use when reading an 'rc' file. VAL
3974 should be a hexadecimal prefixed by '0x' or decimal codepage code.
3975 The valid range is from zero up to 0xffff, but the validity of the
3976 codepage is host and configuration dependent.
3980 Specify the default language to use when reading an 'rc' file. VAL
3981 should be a hexadecimal language code. The low eight bits are the
3982 language, and the high eight bits are the sublanguage.
3985 Use a temporary file to instead of using popen to read the output
3986 of the preprocessor. Use this option if the popen implementation
3987 is buggy on the host (eg., certain non-English language versions of
3988 Windows 95 and Windows 98 are known to have buggy popen where the
3989 output will instead go the console).
3991 '--no-use-temp-file'
3992 Use popen, not a temporary file, to read the output of the
3993 preprocessor. This is the default behaviour.
3997 Prints a usage summary.
4001 Prints the version number for 'windres'.
4004 If 'windres' is compiled with 'YYDEBUG' defined as '1', this will
4005 turn on parser debugging.
4008 File: binutils.info, Node: dlltool, Next: readelf, Prev: windres, Up: Top
4013 'dlltool' is used to create the files needed to create dynamic link
4014 libraries (DLLs) on systems which understand PE format image files such
4015 as Windows. A DLL contains an export table which contains information
4016 that the runtime loader needs to resolve references from a referencing
4019 The export table is generated by this program by reading in a '.def'
4020 file or scanning the '.a' and '.o' files which will be in the DLL. A
4021 '.o' file can contain information in special '.drectve' sections with
4024 _Note:_ 'dlltool' is not always built as part of the binary
4025 utilities, since it is only useful for those targets which support
4028 dlltool [-d|--input-def DEF-FILE-NAME]
4029 [-b|--base-file BASE-FILE-NAME]
4030 [-e|--output-exp EXPORTS-FILE-NAME]
4031 [-z|--output-def DEF-FILE-NAME]
4032 [-l|--output-lib LIBRARY-FILE-NAME]
4033 [-y|--output-delaylib LIBRARY-FILE-NAME]
4034 [--export-all-symbols] [--no-export-all-symbols]
4035 [--exclude-symbols LIST]
4036 [--no-default-excludes]
4037 [-S|--as PATH-TO-ASSEMBLER] [-f|--as-flags OPTIONS]
4038 [-D|--dllname NAME] [-m|--machine MACHINE]
4040 [-U|--add-underscore] [--add-stdcall-underscore]
4041 [-k|--kill-at] [-A|--add-stdcall-alias]
4042 [-p|--ext-prefix-alias PREFIX]
4043 [-x|--no-idata4] [-c|--no-idata5]
4044 [--use-nul-prefixed-import-tables]
4045 [-I|--identify LIBRARY-FILE-NAME] [--identify-strict]
4047 [-n|--nodelete] [-t|--temp-prefix PREFIX]
4049 [-h|--help] [-V|--version]
4050 [--no-leading-underscore] [--leading-underscore]
4053 'dlltool' reads its inputs, which can come from the '-d' and '-b'
4054 options as well as object files specified on the command line. It then
4055 processes these inputs and if the '-e' option has been specified it
4056 creates a exports file. If the '-l' option has been specified it
4057 creates a library file and if the '-z' option has been specified it
4058 creates a def file. Any or all of the '-e', '-l' and '-z' options can
4059 be present in one invocation of dlltool.
4061 When creating a DLL, along with the source for the DLL, it is
4062 necessary to have three other files. 'dlltool' can help with the
4063 creation of these files.
4065 The first file is a '.def' file which specifies which functions are
4066 exported from the DLL, which functions the DLL imports, and so on. This
4067 is a text file and can be created by hand, or 'dlltool' can be used to
4068 create it using the '-z' option. In this case 'dlltool' will scan the
4069 object files specified on its command line looking for those functions
4070 which have been specially marked as being exported and put entries for
4071 them in the '.def' file it creates.
4073 In order to mark a function as being exported from a DLL, it needs to
4074 have an '-export:<name_of_function>' entry in the '.drectve' section of
4075 the object file. This can be done in C by using the asm() operator:
4077 asm (".section .drectve");
4078 asm (".ascii \"-export:my_func\"");
4080 int my_func (void) { ... }
4082 The second file needed for DLL creation is an exports file. This
4083 file is linked with the object files that make up the body of the DLL
4084 and it handles the interface between the DLL and the outside world.
4085 This is a binary file and it can be created by giving the '-e' option to
4086 'dlltool' when it is creating or reading in a '.def' file.
4088 The third file needed for DLL creation is the library file that
4089 programs will link with in order to access the functions in the DLL (an
4090 'import library'). This file can be created by giving the '-l' option
4091 to dlltool when it is creating or reading in a '.def' file.
4093 If the '-y' option is specified, dlltool generates a delay-import
4094 library that can be used instead of the normal import library to allow a
4095 program to link to the dll only as soon as an imported function is
4096 called for the first time. The resulting executable will need to be
4097 linked to the static delayimp library containing __delayLoadHelper2(),
4098 which in turn will import LoadLibraryA and GetProcAddress from kernel32.
4100 'dlltool' builds the library file by hand, but it builds the exports
4101 file by creating temporary files containing assembler statements and
4102 then assembling these. The '-S' command-line option can be used to
4103 specify the path to the assembler that dlltool will use, and the '-f'
4104 option can be used to pass specific flags to that assembler. The '-n'
4105 can be used to prevent dlltool from deleting these temporary assembler
4106 files when it is done, and if '-n' is specified twice then this will
4107 prevent dlltool from deleting the temporary object files it used to
4110 Here is an example of creating a DLL from a source file 'dll.c' and
4111 also creating a program (from an object file called 'program.o') that
4115 dlltool -e exports.o -l dll.lib dll.o
4116 gcc dll.o exports.o -o dll.dll
4117 gcc program.o dll.lib -o program
4119 'dlltool' may also be used to query an existing import library to
4120 determine the name of the DLL to which it is associated. See the
4121 description of the '-I' or '--identify' option.
4123 The command-line options have the following meanings:
4126 '--input-def FILENAME'
4127 Specifies the name of a '.def' file to be read in and processed.
4130 '--base-file FILENAME'
4131 Specifies the name of a base file to be read in and processed. The
4132 contents of this file will be added to the relocation section in
4133 the exports file generated by dlltool.
4136 '--output-exp FILENAME'
4137 Specifies the name of the export file to be created by dlltool.
4140 '--output-def FILENAME'
4141 Specifies the name of the '.def' file to be created by dlltool.
4144 '--output-lib FILENAME'
4145 Specifies the name of the library file to be created by dlltool.
4148 '--output-delaylib FILENAME'
4149 Specifies the name of the delay-import library file to be created
4152 '--export-all-symbols'
4153 Treat all global and weak defined symbols found in the input object
4154 files as symbols to be exported. There is a small list of symbols
4155 which are not exported by default; see the '--no-default-excludes'
4156 option. You may add to the list of symbols to not export by using
4157 the '--exclude-symbols' option.
4159 '--no-export-all-symbols'
4160 Only export symbols explicitly listed in an input '.def' file or in
4161 '.drectve' sections in the input object files. This is the default
4162 behaviour. The '.drectve' sections are created by 'dllexport'
4163 attributes in the source code.
4165 '--exclude-symbols LIST'
4166 Do not export the symbols in LIST. This is a list of symbol names
4167 separated by comma or colon characters. The symbol names should
4168 not contain a leading underscore. This is only meaningful when
4169 '--export-all-symbols' is used.
4171 '--no-default-excludes'
4172 When '--export-all-symbols' is used, it will by default avoid
4173 exporting certain special symbols. The current list of symbols to
4174 avoid exporting is 'DllMain@12', 'DllEntryPoint@0', 'impure_ptr'.
4175 You may use the '--no-default-excludes' option to go ahead and
4176 export these special symbols. This is only meaningful when
4177 '--export-all-symbols' is used.
4181 Specifies the path, including the filename, of the assembler to be
4182 used to create the exports file.
4185 '--as-flags OPTIONS'
4186 Specifies any specific command-line options to be passed to the
4187 assembler when building the exports file. This option will work
4188 even if the '-S' option is not used. This option only takes one
4189 argument, and if it occurs more than once on the command line, then
4190 later occurrences will override earlier occurrences. So if it is
4191 necessary to pass multiple options to the assembler they should be
4192 enclosed in double quotes.
4196 Specifies the name to be stored in the '.def' file as the name of
4197 the DLL when the '-e' option is used. If this option is not
4198 present, then the filename given to the '-e' option will be used as
4199 the name of the DLL.
4203 Specifies the type of machine for which the library file should be
4204 built. 'dlltool' has a built in default type, depending upon how
4205 it was created, but this option can be used to override that. This
4206 is normally only useful when creating DLLs for an ARM processor,
4207 when the contents of the DLL are actually encode using Thumb
4212 Specifies that when 'dlltool' is creating the exports file it
4213 should add a section which allows the exported functions to be
4214 referenced without using the import library. Whatever the hell
4219 Specifies that when 'dlltool' is creating the exports file it
4220 should prepend an underscore to the names of _all_ exported
4223 '--no-leading-underscore'
4224 '--leading-underscore'
4225 Specifies whether standard symbol should be forced to be prefixed,
4228 '--add-stdcall-underscore'
4229 Specifies that when 'dlltool' is creating the exports file it
4230 should prepend an underscore to the names of exported _stdcall_
4231 functions. Variable names and non-stdcall function names are not
4232 modified. This option is useful when creating GNU-compatible
4233 import libs for third party DLLs that were built with MS-Windows
4238 Specifies that '@<number>' suffixes should be omitted from the
4239 names of stdcall functions that will be imported from the DLL. This
4240 is useful when creating an import library for a DLL which exports
4241 stdcall functions but without the usual '@<number>' symbol name
4244 This does not change the naming of symbols provided by the import
4245 library to programs linked against it, but only the entries in the
4246 import table (ie the .idata section).
4249 '--add-stdcall-alias'
4250 Specifies that when 'dlltool' is creating the exports file it
4251 should add aliases for stdcall symbols without '@ <number>' in
4252 addition to the symbols with '@ <number>'.
4255 '--ext-prefix-alias PREFIX'
4256 Causes 'dlltool' to create external aliases for all DLL imports
4257 with the specified prefix. The aliases are created for both
4258 external and import symbols with no leading underscore.
4262 Specifies that when 'dlltool' is creating the exports and library
4263 files it should omit the '.idata4' section. This is for
4264 compatibility with certain operating systems.
4266 '--use-nul-prefixed-import-tables'
4267 Specifies that when 'dlltool' is creating the exports and library
4268 files it should prefix the '.idata4' and '.idata5' by zero an
4269 element. This emulates old gnu import library generation of
4270 'dlltool'. By default this option is turned off.
4274 Specifies that when 'dlltool' is creating the exports and library
4275 files it should omit the '.idata5' section. This is for
4276 compatibility with certain operating systems.
4279 '--identify FILENAME'
4280 Specifies that 'dlltool' should inspect the import library
4281 indicated by FILENAME and report, on 'stdout', the name(s) of the
4282 associated DLL(s). This can be performed in addition to any other
4283 operations indicated by the other options and arguments. 'dlltool'
4284 fails if the import library does not exist or is not actually an
4285 import library. See also '--identify-strict'.
4288 Modifies the behavior of the '--identify' option, such that an
4289 error is reported if FILENAME is associated with more than one DLL.
4293 Specifies that 'dlltool' should mark the objects in the library
4294 file and exports file that it produces as supporting interworking
4295 between ARM and Thumb code.
4299 Makes 'dlltool' preserve the temporary assembler files it used to
4300 create the exports file. If this option is repeated then dlltool
4301 will also preserve the temporary object files it uses to create the
4305 '--temp-prefix PREFIX'
4306 Makes 'dlltool' use PREFIX when constructing the names of temporary
4307 assembler and object files. By default, the temp file prefix is
4308 generated from the pid.
4312 Make dlltool describe what it is doing.
4316 Displays a list of command-line options and then exits.
4320 Displays dlltool's version number and then exits.
4324 * def file format:: The format of the dlltool '.def' file
4327 File: binutils.info, Node: def file format, Up: dlltool
4329 13.1 The format of the 'dlltool' '.def' file
4330 ============================================
4332 A '.def' file contains any number of the following commands:
4334 'NAME' NAME '[ ,' BASE ']'
4335 The result is going to be named NAME'.exe'.
4337 'LIBRARY' NAME '[ ,' BASE ']'
4338 The result is going to be named NAME'.dll'. Note: If you want to
4339 use LIBRARY as name then you need to quote. Otherwise this will
4340 fail due a necessary hack for libtool (see PR binutils/13710 for
4343 'EXPORTS ( ( (' NAME1 '[ = ' NAME2 '] ) | ( ' NAME1 '=' MODULE-NAME '.' EXTERNAL-NAME ') ) [ == ' ITS_NAME ']'
4344 '[' INTEGER '] [ NONAME ] [ CONSTANT ] [ DATA ] [ PRIVATE ] ) *'
4345 Declares NAME1 as an exported symbol from the DLL, with optional
4346 ordinal number INTEGER, or declares NAME1 as an alias (forward) of
4347 the function EXTERNAL-NAME in the DLL. If ITS_NAME is specified,
4348 this name is used as string in export table. MODULE-NAME. Note:
4349 The 'EXPORTS' has to be the last command in .def file, as keywords
4350 are treated - beside 'LIBRARY' - as simple name-identifiers. If
4351 you want to use LIBRARY as name then you need to quote it.
4353 'IMPORTS ( (' INTERNAL-NAME '=' MODULE-NAME '.' INTEGER ') | [' INTERNAL-NAME '= ]' MODULE-NAME '.' EXTERNAL-NAME ') [ == ) ITS_NAME ] *'
4354 Declares that EXTERNAL-NAME or the exported function whose ordinal
4355 number is INTEGER is to be imported from the file MODULE-NAME. If
4356 INTERNAL-NAME is specified then this is the name that the imported
4357 function will be referred to in the body of the DLL. If ITS_NAME is
4358 specified, this name is used as string in import table. Note: The
4359 'IMPORTS' has to be the last command in .def file, as keywords are
4360 treated - beside 'LIBRARY' - as simple name-identifiers. If you
4361 want to use LIBRARY as name then you need to quote it.
4363 'DESCRIPTION' STRING
4364 Puts STRING into the output '.exp' file in the '.rdata' section.
4366 'STACKSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
4367 'HEAPSIZE' NUMBER-RESERVE '[, ' NUMBER-COMMIT ']'
4368 Generates '--stack' or '--heap' NUMBER-RESERVE,NUMBER-COMMIT in the
4369 output '.drectve' section. The linker will see this and act upon
4374 'SECTIONS (' SECTION-NAME ATTR' + ) *'
4375 Generates '--attr' SECTION-NAME ATTR in the output '.drectve'
4376 section, where ATTR is one of 'READ', 'WRITE', 'EXECUTE' or
4377 'SHARED'. The linker will see this and act upon it.
4380 File: binutils.info, Node: readelf, Next: elfedit, Prev: dlltool, Up: Top
4387 [-l|--program-headers|--segments]
4388 [-S|--section-headers|--sections]
4389 [-g|--section-groups]
4390 [-t|--section-details]
4392 [-s|--syms|--symbols]
4393 [--dyn-syms|--lto-syms]
4394 [--sym-base=[0|8|10|16]]
4395 [--demangle=STYLE|--no-demangle]
4397 [--recurse-limit|--no-recurse-limit]
4398 [-U METHOD|--unicode=METHOD]
4404 [-A|--arch-specific]
4406 [-L|--lint|--enable-checks]
4407 [-x <number or name>|--hex-dump=<number or name>]
4408 [-p <number or name>|--string-dump=<number or name>]
4409 [-R <number or name>|--relocated-dump=<number or name>]
4411 [-c|--archive-index]
4412 [-w[lLiaprmfFsoORtUuTgAck]|
4413 --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links]]
4414 [-wK|--debug-dump=follow-links]
4415 [-wN|--debug-dump=no-follow-links]
4416 [-P|--process-links]
4420 [--ctf-parent=SECTION]
4421 [--ctf-symbols=SECTION]
4422 [--ctf-strings=SECTION]
4426 [-T|--silent-truncation]
4430 'readelf' displays information about one or more ELF format object
4431 files. The options control what particular information to display.
4433 ELFFILE... are the object files to be examined. 32-bit and 64-bit
4434 ELF files are supported, as are archives containing ELF files.
4436 This program performs a similar function to 'objdump' but it goes
4437 into more detail and it exists independently of the BFD library, so if
4438 there is a bug in BFD then readelf will not be affected.
4440 The long and short forms of options, shown here as alternatives, are
4441 equivalent. At least one option besides '-v' or '-H' must be given.
4445 Equivalent to specifying '--file-header', '--program-headers',
4446 '--sections', '--symbols', '--relocs', '--dynamic', '--notes',
4447 '--version-info', '--arch-specific', '--unwind', '--section-groups'
4450 Note - this option does not enable '--use-dynamic' itself, so if
4451 that option is not present on the command line then dynamic symbols
4452 and dynamic relocs will not be displayed.
4456 Displays the information contained in the ELF header at the start
4462 Displays the information contained in the file's segment headers,
4466 Suppress "no symbols" diagnostic.
4471 Displays the information contained in the file's section headers,
4476 Displays the information contained in the file's section groups, if
4481 Displays the detailed section information. Implies '-S'.
4486 Displays the entries in symbol table section of the file, if it has
4487 one. If a symbol has version information associated with it then
4488 this is displayed as well. The version string is displayed as a
4489 suffix to the symbol name, preceded by an @ character. For example
4490 'foo@VER_1'. If the version is the default version to be used when
4491 resolving unversioned references to the symbol then it is displayed
4492 as a suffix preceded by two @ characters. For example
4496 Displays the entries in dynamic symbol table section of the file,
4497 if it has one. The output format is the same as the format used by
4498 the '--syms' option.
4501 Displays the contents of any LTO symbol tables in the file.
4503 '--sym-base=[0|8|10|16]'
4504 Forces the size field of the symbol table to use the given base.
4505 Any unrecognized options will be treated as '0'. '--sym-base=0'
4506 represents the default and legacy behaviour. This will output
4507 sizes as decimal for numbers less than 100000. For sizes 100000
4508 and greater hexadecimal notation will be used with a 0x prefix.
4509 '--sym-base=8' will give the symbol sizes in octal.
4510 '--sym-base=10' will always give the symbol sizes in decimal.
4511 '--sym-base=16' will always give the symbol sizes in hexadecimal
4515 '--demangle[=STYLE]'
4516 Decode ("demangle") low-level symbol names into user-level names.
4517 This makes C++ function names readable. Different compilers have
4518 different mangling styles. The optional demangling style argument
4519 can be used to choose an appropriate demangling style for your
4520 compiler. *Note c++filt::, for more information on demangling.
4523 Do not demangle low-level symbol names. This is the default.
4526 '--no-recurse-limit'
4528 '--no-recursion-limit'
4529 Enables or disables a limit on the amount of recursion performed
4530 whilst demangling strings. Since the name mangling formats allow
4531 for an infinite level of recursion it is possible to create strings
4532 whose decoding will exhaust the amount of stack space available on
4533 the host machine, triggering a memory fault. The limit tries to
4534 prevent this from happening by restricting recursion to 2048 levels
4537 The default is for this limit to be enabled, but disabling it may
4538 be necessary in order to demangle truly complicated names. Note
4539 however that if the recursion limit is disabled then stack
4540 exhaustion is possible and any bug reports about such an event will
4544 '--unicode=[default|invalid|locale|escape|hex|highlight]'
4545 Controls the display of non-ASCII characters in identifier names.
4546 The default ('--unicode=locale' or '--unicode=default') is to treat
4547 them as multibyte characters and display them in the current
4548 locale. All other versions of this option treat the bytes as UTF-8
4549 encoded values and attempt to interpret them. If they cannot be
4550 interpreted or if the '--unicode=invalid' option is used then they
4551 are displayed as a sequence of hex bytes, encloses in curly
4552 parethesis characters.
4554 Using the '--unicode=escape' option will display the characters as
4555 as unicode escape sequences (\UXXXX). Using the '--unicode=hex'
4556 will display the characters as hex byte sequences enclosed between
4559 Using the '--unicode=highlight' will display the characters as
4560 unicode escape sequences but it will also highlighted them in red,
4561 assuming that colouring is supported by the output device. The
4562 colouring is intended to draw attention to the presence of unicode
4563 sequences when they might not be expected.
4567 Display all the headers in the file. Equivalent to '-h -l -S'.
4571 Displays the contents of the NOTE segments and/or sections, if any.
4575 Displays the contents of the file's relocation section, if it has
4580 Displays the contents of the file's unwind section, if it has one.
4581 Only the unwind sections for IA64 ELF files, as well as ARM unwind
4582 tables ('.ARM.exidx' / '.ARM.extab') are currently supported. If
4583 support is not yet implemented for your architecture you could try
4584 dumping the contents of the .EH_FRAMES section using the
4585 '--debug-dump=frames' or '--debug-dump=frames-interp' options.
4589 Displays the contents of the file's dynamic section, if it has one.
4593 Displays the contents of the version sections in the file, it they
4598 Displays architecture-specific information in the file, if there is
4603 When displaying symbols, this option makes 'readelf' use the symbol
4604 hash tables in the file's dynamic section, rather than the symbol
4607 When displaying relocations, this option makes 'readelf' display
4608 the dynamic relocations rather than the static relocations.
4613 Displays warning messages about possible problems with the file(s)
4614 being examined. If used on its own then all of the contents of the
4615 file(s) will be examined. If used with one of the dumping options
4616 then the warning messages will only be produced for the things
4619 '-x <number or name>'
4620 '--hex-dump=<number or name>'
4621 Displays the contents of the indicated section as a hexadecimal
4622 bytes. A number identifies a particular section by index in the
4623 section table; any other string identifies all sections with that
4624 name in the object file.
4626 '-R <number or name>'
4627 '--relocated-dump=<number or name>'
4628 Displays the contents of the indicated section as a hexadecimal
4629 bytes. A number identifies a particular section by index in the
4630 section table; any other string identifies all sections with that
4631 name in the object file. The contents of the section will be
4632 relocated before they are displayed.
4634 '-p <number or name>'
4635 '--string-dump=<number or name>'
4636 Displays the contents of the indicated section as printable
4637 strings. A number identifies a particular section by index in the
4638 section table; any other string identifies all sections with that
4639 name in the object file.
4643 Requests that the section(s) being dumped by 'x', 'R' or 'p'
4644 options are decompressed before being displayed. If the section(s)
4645 are not compressed then they are displayed as is.
4649 Displays the file symbol index information contained in the header
4650 part of binary archives. Performs the same function as the 't'
4651 command to 'ar', but without using the BFD library. *Note ar::.
4653 '-w[lLiaprmfFsOoRtUuTgAckK]'
4654 '--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]'
4656 Displays the contents of the DWARF debug sections in the file, if
4657 any are present. Compressed debug sections are automatically
4658 decompressed (temporarily) before they are displayed. If one or
4659 more of the optional letters or words follows the switch then only
4660 those type(s) of data will be dumped. The letters and words refer
4661 to the following information:
4665 Displays the contents of the '.debug_abbrev' section.
4669 Displays the contents of the '.debug_addr' section.
4673 Displays the contents of the '.debug_cu_index' and/or
4674 '.debug_tu_index' sections.
4678 Display the raw contents of a '.debug_frame' section.
4682 Display the interpreted contents of a '.debug_frame' section.
4686 Displays the contents of the '.gdb_index' and/or
4687 '.debug_names' sections.
4691 Displays the contents of the '.debug_info' section. Note: the
4692 output from this option can also be restricted by the use of
4693 the '--dwarf-depth' and '--dwarf-start' options.
4697 Displays the contents of the '.gnu_debuglink',
4698 '.gnu_debugaltlink' and '.debug_sup' sections, if any of them
4699 are present. Also displays any links to separate dwarf object
4700 files (dwo), if they are specified by the DW_AT_GNU_dwo_name
4701 or DW_AT_dwo_name attributes in the '.debug_info' section.
4705 Display the contents of any selected debug sections that are
4706 found in linked, separate debug info file(s). This can result
4707 in multiple versions of the same debug section being displayed
4708 if it exists in more than one file.
4710 In addition, when displaying DWARF attributes, if a form is
4711 found that references the separate debug info file, then the
4712 referenced contents will also be displayed.
4714 Note - in some distributions this option is enabled by
4715 default. It can be disabled via the 'N' debug option. The
4716 default can be chosen when configuring the binutils via the
4717 '--enable-follow-debug-links=yes' or
4718 '--enable-follow-debug-links=no' options. If these are not
4719 used then the default is to enable the following of debug
4724 Disables the following of links to separate debug info files.
4728 Displays the contents of the '.debug_line' section in a raw
4733 Displays the interpreted contents of the '.debug_line'
4738 Displays the contents of the '.debug_macro' and/or
4739 '.debug_macinfo' sections.
4743 Displays the contents of the '.debug_loc' and/or
4744 '.debug_loclists' sections.
4748 Displays the contents of the '.debug_str_offsets' section.
4752 Displays the contents of the '.debug_pubnames' and/or
4753 '.debug_gnu_pubnames' sections.
4757 Displays the contents of the '.debug_aranges' section.
4761 Displays the contents of the '.debug_ranges' and/or
4762 '.debug_rnglists' sections.
4766 Displays the contents of the '.debug_str', '.debug_line_str'
4767 and/or '.debug_str_offsets' sections.
4771 Displays the contents of the '.debug_pubtypes' and/or
4772 '.debug_gnu_pubtypes' sections.
4776 Displays the contents of the '.trace_aranges' section.
4780 Displays the contents of the '.trace_abbrev' section.
4784 Displays the contents of the '.trace_info' section.
4786 Note: displaying the contents of '.debug_static_funcs',
4787 '.debug_static_vars' and 'debug_weaknames' sections is not
4788 currently supported.
4791 Limit the dump of the '.debug_info' section to N children. This is
4792 only useful with '--debug-dump=info'. The default is to print all
4793 DIEs; the special value 0 for N will also have this effect.
4795 With a non-zero value for N, DIEs at or deeper than N levels will
4796 not be printed. The range for N is zero-based.
4799 Print only DIEs beginning with the DIE numbered N. This is only
4800 useful with '--debug-dump=info'.
4802 If specified, this option will suppress printing of any header
4803 information and all DIEs before the DIE numbered N. Only siblings
4804 and children of the specified DIE will be printed.
4806 This can be used in conjunction with '--dwarf-depth'.
4810 Display the contents of non-debug sections found in separate
4811 debuginfo files that are linked to the main file. This option
4812 automatically implies the '-wK' option, and only sections requested
4813 by other command line options will be displayed.
4817 Display the contents of the specified CTF section. CTF sections
4818 themselves contain many subsections, all of which are displayed in
4821 By default, display the name of the section named .CTF, which is
4822 the name emitted by 'ld'.
4824 '--ctf-parent=MEMBER'
4826 If the CTF section contains ambiguously-defined types, it will
4827 consist of an archive of many CTF dictionaries, all inheriting from
4828 one dictionary containing unambiguous types. This member is by
4829 default named .CTF, like the section containing it, but it is
4830 possible to change this name using the
4831 'ctf_link_set_memb_name_changer' function at link time. When
4832 looking at CTF archives that have been created by a linker that
4833 uses the name changer to rename the parent archive member,
4834 '--ctf-parent' can be used to specify the name used for the parent.
4835 '--ctf-symbols=SECTION'
4836 '--ctf-strings=SECTION'
4837 Specify the name of another section from which the CTF file can
4838 inherit strings and symbols. By default, the '.symtab' and its
4839 linked string table are used.
4841 If either of '--ctf-symbols' or '--ctf-strings' is specified, the
4842 other must be specified as well.
4846 Display a histogram of bucket list lengths when displaying the
4847 contents of the symbol tables.
4851 Display the version number of readelf.
4855 Don't break output lines to fit into 80 columns. By default
4856 'readelf' breaks section header and segment listing lines for
4857 64-bit ELF files, so that they fit into 80 columns. This option
4858 causes 'readelf' to print each section header resp. each segment
4859 one a single line, which is far more readable on terminals wider
4863 '--silent-truncation'
4864 Normally when readelf is displaying a symbol name, and it has to
4865 truncate the name to fit into an 80 column display, it will add a
4866 suffix of '[...]' to the name. This command line option disables
4867 this behaviour, allowing 5 more characters of the name to be
4868 displayed and restoring the old behaviour of readelf (prior to
4873 Display the command-line options understood by 'readelf'.
4876 File: binutils.info, Node: elfedit, Next: Common Options, Prev: readelf, Up: Top
4881 elfedit [--input-mach=MACHINE]
4883 [--input-osabi=OSABI]
4884 [--input-abiversion=VERSION]
4885 --output-mach=MACHINE
4887 --output-osabi=OSABI
4888 --output-abiversion=VERSION
4889 --enable-x86-feature=FEATURE
4890 --disable-x86-feature=FEATURE
4895 'elfedit' updates the ELF header and program property of ELF files
4896 which have the matching ELF machine and file types. The options control
4897 how and which fields in the ELF header and program property should be
4900 ELFFILE... are the ELF files to be updated. 32-bit and 64-bit ELF
4901 files are supported, as are archives containing ELF files.
4903 The long and short forms of options, shown here as alternatives, are
4904 equivalent. At least one of the '--output-mach', '--output-type',
4905 '--output-osabi', '--output-abiversion', '--enable-x86-feature' and
4906 '--disable-x86-feature' options must be given.
4908 '--input-mach=MACHINE'
4909 Set the matching input ELF machine type to MACHINE. If
4910 '--input-mach' isn't specified, it will match any ELF machine
4913 The supported ELF machine types are, I386, IAMCU, L1OM, K1OM and
4916 '--output-mach=MACHINE'
4917 Change the ELF machine type in the ELF header to MACHINE. The
4918 supported ELF machine types are the same as '--input-mach'.
4921 Set the matching input ELF file type to TYPE. If '--input-type'
4922 isn't specified, it will match any ELF file types.
4924 The supported ELF file types are, REL, EXEC and DYN.
4926 '--output-type=TYPE'
4927 Change the ELF file type in the ELF header to TYPE. The supported
4928 ELF types are the same as '--input-type'.
4930 '--input-osabi=OSABI'
4931 Set the matching input ELF file OSABI to OSABI. If '--input-osabi'
4932 isn't specified, it will match any ELF OSABIs.
4934 The supported ELF OSABIs are, NONE, HPUX, NETBSD, GNU, LINUX (alias
4935 for GNU), SOLARIS, AIX, IRIX, FREEBSD, TRU64, MODESTO, OPENBSD,
4936 OPENVMS, NSK, AROS and FENIXOS.
4938 '--output-osabi=OSABI'
4939 Change the ELF OSABI in the ELF header to OSABI. The supported ELF
4940 OSABI are the same as '--input-osabi'.
4942 '--input-abiversion=VERSION'
4943 Set the matching input ELF file ABIVERSION to VERSION. VERSION
4944 must be between 0 and 255. If '--input-abiversion' isn't
4945 specified, it will match any ELF ABIVERSIONs.
4947 '--output-abiversion=VERSION'
4948 Change the ELF ABIVERSION in the ELF header to VERSION. VERSION
4949 must be between 0 and 255.
4951 '--enable-x86-feature=FEATURE'
4952 Set the FEATURE bit in program property in EXEC or DYN ELF files
4953 with machine types of I386 or X86-64. The supported features are,
4954 IBT, SHSTK, LAM_U48 and LAM_U57.
4956 '--disable-x86-feature=FEATURE'
4957 Clear the FEATURE bit in program property in EXEC or DYN ELF files
4958 with machine types of I386 or X86-64. The supported features are
4959 the same as '--enable-x86-feature'.
4961 Note: '--enable-x86-feature' and '--disable-x86-feature' are
4962 available only on hosts with 'mmap' support.
4966 Display the version number of 'elfedit'.
4970 Display the command-line options understood by 'elfedit'.
4973 File: binutils.info, Node: Common Options, Next: Selecting the Target System, Prev: elfedit, Up: Top
4978 The following command-line options are supported by all of the programs
4979 described in this manual.
4982 Read command-line options from FILE. The options read are inserted
4983 in place of the original @FILE option. If FILE does not exist, or
4984 cannot be read, then the option will be treated literally, and not
4987 Options in FILE are separated by whitespace. A whitespace
4988 character may be included in an option by surrounding the entire
4989 option in either single or double quotes. Any character (including
4990 a backslash) may be included by prefixing the character to be
4991 included with a backslash. The FILE may itself contain additional
4992 @FILE options; any such options will be processed recursively.
4995 Display the command-line options supported by the program.
4998 Display the version number of the program.
5001 File: binutils.info, Node: Selecting the Target System, Next: debuginfod, Prev: Common Options, Up: Top
5003 17 Selecting the Target System
5004 ******************************
5006 You can specify two aspects of the target system to the GNU binary file
5007 utilities, each in several ways:
5013 In the following summaries, the lists of ways to specify values are
5014 in order of decreasing precedence. The ways listed first override those
5017 The commands to list valid values only list the values for which the
5018 programs you are running were configured. If they were configured with
5019 '--enable-targets=all', the commands list most of the available values,
5020 but a few are left out; not all targets can be configured in at once
5021 because some of them can only be configured "native" (on hosts with the
5022 same type as the target system).
5026 * Target Selection::
5027 * Architecture Selection::
5030 File: binutils.info, Node: Target Selection, Next: Architecture Selection, Up: Selecting the Target System
5032 17.1 Target Selection
5033 =====================
5035 A "target" is an object file format. A given target may be supported
5036 for multiple architectures (*note Architecture Selection::). A target
5037 selection may also have variations for different operating systems or
5040 The command to list valid target values is 'objdump -i' (the first
5041 column of output contains the relevant information).
5043 Some sample values are: 'a.out-hp300bsd', 'ecoff-littlemips',
5046 You can also specify a target using a configuration triplet. This is
5047 the same sort of name that is passed to 'configure' to specify a target.
5048 When you use a configuration triplet as an argument, it must be fully
5049 canonicalized. You can see the canonical version of a triplet by
5050 running the shell script 'config.sub' which is included with the
5053 Some sample configuration triplets are: 'm68k-hp-bsd',
5054 'mips-dec-ultrix', 'sparc-sun-sunos'.
5061 1. command-line option: '-b' or '--target'
5063 2. environment variable 'GNUTARGET'
5065 3. deduced from the input file
5067 'objcopy' and 'strip' Input Target
5068 ----------------------------------
5072 1. command-line options: '-I' or '--input-target', or '-F' or
5075 2. environment variable 'GNUTARGET'
5077 3. deduced from the input file
5079 'objcopy' and 'strip' Output Target
5080 -----------------------------------
5084 1. command-line options: '-O' or '--output-target', or '-F' or
5087 2. the input target (see "'objcopy' and 'strip' Input Target" above)
5089 3. environment variable 'GNUTARGET'
5091 4. deduced from the input file
5093 'nm', 'size', and 'strings' Target
5094 ----------------------------------
5098 1. command-line option: '--target'
5100 2. environment variable 'GNUTARGET'
5102 3. deduced from the input file
5105 File: binutils.info, Node: Architecture Selection, Prev: Target Selection, Up: Selecting the Target System
5107 17.2 Architecture Selection
5108 ===========================
5110 An "architecture" is a type of CPU on which an object file is to run.
5111 Its name may contain a colon, separating the name of the processor
5112 family from the name of the particular CPU.
5114 The command to list valid architecture values is 'objdump -i' (the
5115 second column contains the relevant information).
5117 Sample values: 'm68k:68020', 'mips:3000', 'sparc'.
5119 'objdump' Architecture
5120 ----------------------
5124 1. command-line option: '-m' or '--architecture'
5126 2. deduced from the input file
5128 'objcopy', 'nm', 'size', 'strings' Architecture
5129 -----------------------------------------------
5133 1. deduced from the input file
5136 File: binutils.info, Node: debuginfod, Next: Reporting Bugs, Prev: Selecting the Target System, Up: Top
5141 debuginfod is a web service that indexes ELF/DWARF debugging resources
5142 by build-id and serves them over HTTP.
5144 Binutils can be built with the debuginfod client library
5145 'libdebuginfod' using the '--with-debuginfod' configure option. This
5146 option is enabled by default if 'libdebuginfod' is installed and found
5147 at configure time. This allows 'objdump' and 'readelf' to automatically
5148 query debuginfod servers for separate debug files when the files are
5149 otherwise not found.
5151 debuginfod is packaged with elfutils, starting with version 0.178.
5152 You can get the latest version from 'https://sourceware.org/elfutils/'.
5155 File: binutils.info, Node: Reporting Bugs, Next: GNU Free Documentation License, Prev: debuginfod, Up: Top
5160 Your bug reports play an essential role in making the binary utilities
5163 Reporting a bug may help you by bringing a solution to your problem,
5164 or it may not. But in any case the principal function of a bug report
5165 is to help the entire community by making the next version of the binary
5166 utilities work better. Bug reports are your contribution to their
5169 In order for a bug report to serve its purpose, you must include the
5170 information that enables us to fix the bug.
5174 * Bug Criteria:: Have you found a bug?
5175 * Bug Reporting:: How to report bugs
5178 File: binutils.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
5180 19.1 Have You Found a Bug?
5181 ==========================
5183 If you are not sure whether you have found a bug, here are some
5186 * If a binary utility gets a fatal signal, for any input whatever,
5187 that is a bug. Reliable utilities never crash.
5189 * If a binary utility produces an error message for valid input, that
5192 * If you are an experienced user of binary utilities, your
5193 suggestions for improvement are welcome in any case.
5196 File: binutils.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
5198 19.2 How to Report Bugs
5199 =======================
5201 A number of companies and individuals offer support for GNU products.
5202 If you obtained the binary utilities from a support organization, we
5203 recommend you contact that organization first.
5205 You can find contact information for many support companies and
5206 individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
5208 In any event, we also recommend that you send bug reports for the
5209 binary utilities to <https://sourceware.org/bugzilla/>.
5211 The fundamental principle of reporting bugs usefully is this: *report
5212 all the facts*. If you are not sure whether to state a fact or leave it
5215 Often people omit facts because they think they know what causes the
5216 problem and assume that some details do not matter. Thus, you might
5217 assume that the name of a file you use in an example does not matter.
5218 Well, probably it does not, but one cannot be sure. Perhaps the bug is
5219 a stray memory reference which happens to fetch from the location where
5220 that pathname is stored in memory; perhaps, if the pathname were
5221 different, the contents of that location would fool the utility into
5222 doing the right thing despite the bug. Play it safe and give a
5223 specific, complete example. That is the easiest thing for you to do,
5224 and the most helpful.
5226 Keep in mind that the purpose of a bug report is to enable us to fix
5227 the bug if it is new to us. Therefore, always write your bug reports on
5228 the assumption that the bug has not been reported previously.
5230 Sometimes people give a few sketchy facts and ask, "Does this ring a
5231 bell?" This cannot help us fix a bug, so it is basically useless. We
5232 respond by asking for enough details to enable us to investigate. You
5233 might as well expedite matters by sending them to begin with.
5235 To enable us to fix the bug, you should include all these things:
5237 * The version of the utility. Each utility announces it if you start
5238 it with the '--version' argument.
5240 Without this, we will not know whether there is any point in
5241 looking for the bug in the current version of the binary utilities.
5243 * Any patches you may have applied to the source, including any
5244 patches made to the 'BFD' library.
5246 * The type of machine you are using, and the operating system name
5249 * What compiler (and its version) was used to compile the
5250 utilities--e.g. "'gcc-2.7'".
5252 * The command arguments you gave the utility to observe the bug. To
5253 guarantee you will not omit something important, list them all. A
5254 copy of the Makefile (or the output from make) is sufficient.
5256 If we were to try to guess the arguments, we would probably guess
5257 wrong and then we might not encounter the bug.
5259 * A complete input file, or set of input files, that will reproduce
5260 the bug. If the utility is reading an object file or files, then
5261 it is generally most helpful to send the actual object files.
5263 If the source files were produced exclusively using GNU programs
5264 (e.g., 'gcc', 'gas', and/or the GNU 'ld'), then it may be OK to
5265 send the source files rather than the object files. In this case,
5266 be sure to say exactly what version of 'gcc', or whatever, was used
5267 to produce the object files. Also say how 'gcc', or whatever, was
5270 * A description of what behavior you observe that you believe is
5271 incorrect. For example, "It gets a fatal signal."
5273 Of course, if the bug is that the utility gets a fatal signal, then
5274 we will certainly notice it. But if the bug is incorrect output,
5275 we might not notice unless it is glaringly wrong. You might as
5276 well not give us a chance to make a mistake.
5278 Even if the problem you experience is a fatal signal, you should
5279 still say so explicitly. Suppose something strange is going on,
5280 such as your copy of the utility is out of sync, or you have
5281 encountered a bug in the C library on your system. (This has
5282 happened!) Your copy might crash and ours would not. If you told
5283 us to expect a crash, then when ours fails to crash, we would know
5284 that the bug was not happening for us. If you had not told us to
5285 expect a crash, then we would not be able to draw any conclusion
5286 from our observations.
5288 * If you wish to suggest changes to the source, send us context
5289 diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
5290 Always send diffs from the old file to the new file. If you wish
5291 to discuss something in the 'ld' source, refer to it by context,
5294 The line numbers in our development sources will not match those in
5295 your sources. Your line numbers would convey no useful information
5298 Here are some things that are not necessary:
5300 * A description of the envelope of the bug.
5302 Often people who encounter a bug spend a lot of time investigating
5303 which changes to the input file will make the bug go away and which
5304 changes will not affect it.
5306 This is often time consuming and not very useful, because the way
5307 we will find the bug is by running a single example under the
5308 debugger with breakpoints, not by pure deduction from a series of
5309 examples. We recommend that you save your time for something else.
5311 Of course, if you can find a simpler example to report _instead_ of
5312 the original one, that is a convenience for us. Errors in the
5313 output will be easier to spot, running under the debugger will take
5314 less time, and so on.
5316 However, simplification is not vital; if you do not want to do
5317 this, report the bug anyway and send us the entire test case you
5320 * A patch for the bug.
5322 A patch for the bug does help us if it is a good one. But do not
5323 omit the necessary information, such as the test case, on the
5324 assumption that a patch is all we need. We might see problems with
5325 your patch and decide to fix the problem another way, or we might
5326 not understand it at all.
5328 Sometimes with programs as complicated as the binary utilities it
5329 is very hard to construct an example that will make the program
5330 follow a certain path through the code. If you do not send us the
5331 example, we will not be able to construct one, so we will not be
5332 able to verify that the bug is fixed.
5334 And if we cannot understand what bug you are trying to fix, or why
5335 your patch should be an improvement, we will not install it. A
5336 test case will help us to understand.
5338 * A guess about what the bug is or what it depends on.
5340 Such guesses are usually wrong. Even we cannot guess right about
5341 such things without first using the debugger to find the facts.
5344 File: binutils.info, Node: GNU Free Documentation License, Next: Binutils Index, Prev: Reporting Bugs, Up: Top
5346 Appendix A GNU Free Documentation License
5347 *****************************************
5349 Version 1.3, 3 November 2008
5351 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
5354 Everyone is permitted to copy and distribute verbatim copies
5355 of this license document, but changing it is not allowed.
5359 The purpose of this License is to make a manual, textbook, or other
5360 functional and useful document "free" in the sense of freedom: to
5361 assure everyone the effective freedom to copy and redistribute it,
5362 with or without modifying it, either commercially or
5363 noncommercially. Secondarily, this License preserves for the
5364 author and publisher a way to get credit for their work, while not
5365 being considered responsible for modifications made by others.
5367 This License is a kind of "copyleft", which means that derivative
5368 works of the document must themselves be free in the same sense.
5369 It complements the GNU General Public License, which is a copyleft
5370 license designed for free software.
5372 We have designed this License in order to use it for manuals for
5373 free software, because free software needs free documentation: a
5374 free program should come with manuals providing the same freedoms
5375 that the software does. But this License is not limited to
5376 software manuals; it can be used for any textual work, regardless
5377 of subject matter or whether it is published as a printed book. We
5378 recommend this License principally for works whose purpose is
5379 instruction or reference.
5381 1. APPLICABILITY AND DEFINITIONS
5383 This License applies to any manual or other work, in any medium,
5384 that contains a notice placed by the copyright holder saying it can
5385 be distributed under the terms of this License. Such a notice
5386 grants a world-wide, royalty-free license, unlimited in duration,
5387 to use that work under the conditions stated herein. The
5388 "Document", below, refers to any such manual or work. Any member
5389 of the public is a licensee, and is addressed as "you". You accept
5390 the license if you copy, modify or distribute the work in a way
5391 requiring permission under copyright law.
5393 A "Modified Version" of the Document means any work containing the
5394 Document or a portion of it, either copied verbatim, or with
5395 modifications and/or translated into another language.
5397 A "Secondary Section" is a named appendix or a front-matter section
5398 of the Document that deals exclusively with the relationship of the
5399 publishers or authors of the Document to the Document's overall
5400 subject (or to related matters) and contains nothing that could
5401 fall directly within that overall subject. (Thus, if the Document
5402 is in part a textbook of mathematics, a Secondary Section may not
5403 explain any mathematics.) The relationship could be a matter of
5404 historical connection with the subject or with related matters, or
5405 of legal, commercial, philosophical, ethical or political position
5408 The "Invariant Sections" are certain Secondary Sections whose
5409 titles are designated, as being those of Invariant Sections, in the
5410 notice that says that the Document is released under this License.
5411 If a section does not fit the above definition of Secondary then it
5412 is not allowed to be designated as Invariant. The Document may
5413 contain zero Invariant Sections. If the Document does not identify
5414 any Invariant Sections then there are none.
5416 The "Cover Texts" are certain short passages of text that are
5417 listed, as Front-Cover Texts or Back-Cover Texts, in the notice
5418 that says that the Document is released under this License. A
5419 Front-Cover Text may be at most 5 words, and a Back-Cover Text may
5420 be at most 25 words.
5422 A "Transparent" copy of the Document means a machine-readable copy,
5423 represented in a format whose specification is available to the
5424 general public, that is suitable for revising the document
5425 straightforwardly with generic text editors or (for images composed
5426 of pixels) generic paint programs or (for drawings) some widely
5427 available drawing editor, and that is suitable for input to text
5428 formatters or for automatic translation to a variety of formats
5429 suitable for input to text formatters. A copy made in an otherwise
5430 Transparent file format whose markup, or absence of markup, has
5431 been arranged to thwart or discourage subsequent modification by
5432 readers is not Transparent. An image format is not Transparent if
5433 used for any substantial amount of text. A copy that is not
5434 "Transparent" is called "Opaque".
5436 Examples of suitable formats for Transparent copies include plain
5437 ASCII without markup, Texinfo input format, LaTeX input format,
5438 SGML or XML using a publicly available DTD, and standard-conforming
5439 simple HTML, PostScript or PDF designed for human modification.
5440 Examples of transparent image formats include PNG, XCF and JPG.
5441 Opaque formats include proprietary formats that can be read and
5442 edited only by proprietary word processors, SGML or XML for which
5443 the DTD and/or processing tools are not generally available, and
5444 the machine-generated HTML, PostScript or PDF produced by some word
5445 processors for output purposes only.
5447 The "Title Page" means, for a printed book, the title page itself,
5448 plus such following pages as are needed to hold, legibly, the
5449 material this License requires to appear in the title page. For
5450 works in formats which do not have any title page as such, "Title
5451 Page" means the text near the most prominent appearance of the
5452 work's title, preceding the beginning of the body of the text.
5454 The "publisher" means any person or entity that distributes copies
5455 of the Document to the public.
5457 A section "Entitled XYZ" means a named subunit of the Document
5458 whose title either is precisely XYZ or contains XYZ in parentheses
5459 following text that translates XYZ in another language. (Here XYZ
5460 stands for a specific section name mentioned below, such as
5461 "Acknowledgements", "Dedications", "Endorsements", or "History".)
5462 To "Preserve the Title" of such a section when you modify the
5463 Document means that it remains a section "Entitled XYZ" according
5466 The Document may include Warranty Disclaimers next to the notice
5467 which states that this License applies to the Document. These
5468 Warranty Disclaimers are considered to be included by reference in
5469 this License, but only as regards disclaiming warranties: any other
5470 implication that these Warranty Disclaimers may have is void and
5471 has no effect on the meaning of this License.
5475 You may copy and distribute the Document in any medium, either
5476 commercially or noncommercially, provided that this License, the
5477 copyright notices, and the license notice saying this License
5478 applies to the Document are reproduced in all copies, and that you
5479 add no other conditions whatsoever to those of this License. You
5480 may not use technical measures to obstruct or control the reading
5481 or further copying of the copies you make or distribute. However,
5482 you may accept compensation in exchange for copies. If you
5483 distribute a large enough number of copies you must also follow the
5484 conditions in section 3.
5486 You may also lend copies, under the same conditions stated above,
5487 and you may publicly display copies.
5489 3. COPYING IN QUANTITY
5491 If you publish printed copies (or copies in media that commonly
5492 have printed covers) of the Document, numbering more than 100, and
5493 the Document's license notice requires Cover Texts, you must
5494 enclose the copies in covers that carry, clearly and legibly, all
5495 these Cover Texts: Front-Cover Texts on the front cover, and
5496 Back-Cover Texts on the back cover. Both covers must also clearly
5497 and legibly identify you as the publisher of these copies. The
5498 front cover must present the full title with all words of the title
5499 equally prominent and visible. You may add other material on the
5500 covers in addition. Copying with changes limited to the covers, as
5501 long as they preserve the title of the Document and satisfy these
5502 conditions, can be treated as verbatim copying in other respects.
5504 If the required texts for either cover are too voluminous to fit
5505 legibly, you should put the first ones listed (as many as fit
5506 reasonably) on the actual cover, and continue the rest onto
5509 If you publish or distribute Opaque copies of the Document
5510 numbering more than 100, you must either include a machine-readable
5511 Transparent copy along with each Opaque copy, or state in or with
5512 each Opaque copy a computer-network location from which the general
5513 network-using public has access to download using public-standard
5514 network protocols a complete Transparent copy of the Document, free
5515 of added material. If you use the latter option, you must take
5516 reasonably prudent steps, when you begin distribution of Opaque
5517 copies in quantity, to ensure that this Transparent copy will
5518 remain thus accessible at the stated location until at least one
5519 year after the last time you distribute an Opaque copy (directly or
5520 through your agents or retailers) of that edition to the public.
5522 It is requested, but not required, that you contact the authors of
5523 the Document well before redistributing any large number of copies,
5524 to give them a chance to provide you with an updated version of the
5529 You may copy and distribute a Modified Version of the Document
5530 under the conditions of sections 2 and 3 above, provided that you
5531 release the Modified Version under precisely this License, with the
5532 Modified Version filling the role of the Document, thus licensing
5533 distribution and modification of the Modified Version to whoever
5534 possesses a copy of it. In addition, you must do these things in
5535 the Modified Version:
5537 A. Use in the Title Page (and on the covers, if any) a title
5538 distinct from that of the Document, and from those of previous
5539 versions (which should, if there were any, be listed in the
5540 History section of the Document). You may use the same title
5541 as a previous version if the original publisher of that
5542 version gives permission.
5544 B. List on the Title Page, as authors, one or more persons or
5545 entities responsible for authorship of the modifications in
5546 the Modified Version, together with at least five of the
5547 principal authors of the Document (all of its principal
5548 authors, if it has fewer than five), unless they release you
5549 from this requirement.
5551 C. State on the Title page the name of the publisher of the
5552 Modified Version, as the publisher.
5554 D. Preserve all the copyright notices of the Document.
5556 E. Add an appropriate copyright notice for your modifications
5557 adjacent to the other copyright notices.
5559 F. Include, immediately after the copyright notices, a license
5560 notice giving the public permission to use the Modified
5561 Version under the terms of this License, in the form shown in
5564 G. Preserve in that license notice the full lists of Invariant
5565 Sections and required Cover Texts given in the Document's
5568 H. Include an unaltered copy of this License.
5570 I. Preserve the section Entitled "History", Preserve its Title,
5571 and add to it an item stating at least the title, year, new
5572 authors, and publisher of the Modified Version as given on the
5573 Title Page. If there is no section Entitled "History" in the
5574 Document, create one stating the title, year, authors, and
5575 publisher of the Document as given on its Title Page, then add
5576 an item describing the Modified Version as stated in the
5579 J. Preserve the network location, if any, given in the Document
5580 for public access to a Transparent copy of the Document, and
5581 likewise the network locations given in the Document for
5582 previous versions it was based on. These may be placed in the
5583 "History" section. You may omit a network location for a work
5584 that was published at least four years before the Document
5585 itself, or if the original publisher of the version it refers
5586 to gives permission.
5588 K. For any section Entitled "Acknowledgements" or "Dedications",
5589 Preserve the Title of the section, and preserve in the section
5590 all the substance and tone of each of the contributor
5591 acknowledgements and/or dedications given therein.
5593 L. Preserve all the Invariant Sections of the Document, unaltered
5594 in their text and in their titles. Section numbers or the
5595 equivalent are not considered part of the section titles.
5597 M. Delete any section Entitled "Endorsements". Such a section
5598 may not be included in the Modified Version.
5600 N. Do not retitle any existing section to be Entitled
5601 "Endorsements" or to conflict in title with any Invariant
5604 O. Preserve any Warranty Disclaimers.
5606 If the Modified Version includes new front-matter sections or
5607 appendices that qualify as Secondary Sections and contain no
5608 material copied from the Document, you may at your option designate
5609 some or all of these sections as invariant. To do this, add their
5610 titles to the list of Invariant Sections in the Modified Version's
5611 license notice. These titles must be distinct from any other
5614 You may add a section Entitled "Endorsements", provided it contains
5615 nothing but endorsements of your Modified Version by various
5616 parties--for example, statements of peer review or that the text
5617 has been approved by an organization as the authoritative
5618 definition of a standard.
5620 You may add a passage of up to five words as a Front-Cover Text,
5621 and a passage of up to 25 words as a Back-Cover Text, to the end of
5622 the list of Cover Texts in the Modified Version. Only one passage
5623 of Front-Cover Text and one of Back-Cover Text may be added by (or
5624 through arrangements made by) any one entity. If the Document
5625 already includes a cover text for the same cover, previously added
5626 by you or by arrangement made by the same entity you are acting on
5627 behalf of, you may not add another; but you may replace the old
5628 one, on explicit permission from the previous publisher that added
5631 The author(s) and publisher(s) of the Document do not by this
5632 License give permission to use their names for publicity for or to
5633 assert or imply endorsement of any Modified Version.
5635 5. COMBINING DOCUMENTS
5637 You may combine the Document with other documents released under
5638 this License, under the terms defined in section 4 above for
5639 modified versions, provided that you include in the combination all
5640 of the Invariant Sections of all of the original documents,
5641 unmodified, and list them all as Invariant Sections of your
5642 combined work in its license notice, and that you preserve all
5643 their Warranty Disclaimers.
5645 The combined work need only contain one copy of this License, and
5646 multiple identical Invariant Sections may be replaced with a single
5647 copy. If there are multiple Invariant Sections with the same name
5648 but different contents, make the title of each such section unique
5649 by adding at the end of it, in parentheses, the name of the
5650 original author or publisher of that section if known, or else a
5651 unique number. Make the same adjustment to the section titles in
5652 the list of Invariant Sections in the license notice of the
5655 In the combination, you must combine any sections Entitled
5656 "History" in the various original documents, forming one section
5657 Entitled "History"; likewise combine any sections Entitled
5658 "Acknowledgements", and any sections Entitled "Dedications". You
5659 must delete all sections Entitled "Endorsements."
5661 6. COLLECTIONS OF DOCUMENTS
5663 You may make a collection consisting of the Document and other
5664 documents released under this License, and replace the individual
5665 copies of this License in the various documents with a single copy
5666 that is included in the collection, provided that you follow the
5667 rules of this License for verbatim copying of each of the documents
5668 in all other respects.
5670 You may extract a single document from such a collection, and
5671 distribute it individually under this License, provided you insert
5672 a copy of this License into the extracted document, and follow this
5673 License in all other respects regarding verbatim copying of that
5676 7. AGGREGATION WITH INDEPENDENT WORKS
5678 A compilation of the Document or its derivatives with other
5679 separate and independent documents or works, in or on a volume of a
5680 storage or distribution medium, is called an "aggregate" if the
5681 copyright resulting from the compilation is not used to limit the
5682 legal rights of the compilation's users beyond what the individual
5683 works permit. When the Document is included in an aggregate, this
5684 License does not apply to the other works in the aggregate which
5685 are not themselves derivative works of the Document.
5687 If the Cover Text requirement of section 3 is applicable to these
5688 copies of the Document, then if the Document is less than one half
5689 of the entire aggregate, the Document's Cover Texts may be placed
5690 on covers that bracket the Document within the aggregate, or the
5691 electronic equivalent of covers if the Document is in electronic
5692 form. Otherwise they must appear on printed covers that bracket
5693 the whole aggregate.
5697 Translation is considered a kind of modification, so you may
5698 distribute translations of the Document under the terms of section
5699 4. Replacing Invariant Sections with translations requires special
5700 permission from their copyright holders, but you may include
5701 translations of some or all Invariant Sections in addition to the
5702 original versions of these Invariant Sections. You may include a
5703 translation of this License, and all the license notices in the
5704 Document, and any Warranty Disclaimers, provided that you also
5705 include the original English version of this License and the
5706 original versions of those notices and disclaimers. In case of a
5707 disagreement between the translation and the original version of
5708 this License or a notice or disclaimer, the original version will
5711 If a section in the Document is Entitled "Acknowledgements",
5712 "Dedications", or "History", the requirement (section 4) to
5713 Preserve its Title (section 1) will typically require changing the
5718 You may not copy, modify, sublicense, or distribute the Document
5719 except as expressly provided under this License. Any attempt
5720 otherwise to copy, modify, sublicense, or distribute it is void,
5721 and will automatically terminate your rights under this License.
5723 However, if you cease all violation of this License, then your
5724 license from a particular copyright holder is reinstated (a)
5725 provisionally, unless and until the copyright holder explicitly and
5726 finally terminates your license, and (b) permanently, if the
5727 copyright holder fails to notify you of the violation by some
5728 reasonable means prior to 60 days after the cessation.
5730 Moreover, your license from a particular copyright holder is
5731 reinstated permanently if the copyright holder notifies you of the
5732 violation by some reasonable means, this is the first time you have
5733 received notice of violation of this License (for any work) from
5734 that copyright holder, and you cure the violation prior to 30 days
5735 after your receipt of the notice.
5737 Termination of your rights under this section does not terminate
5738 the licenses of parties who have received copies or rights from you
5739 under this License. If your rights have been terminated and not
5740 permanently reinstated, receipt of a copy of some or all of the
5741 same material does not give you any rights to use it.
5743 10. FUTURE REVISIONS OF THIS LICENSE
5745 The Free Software Foundation may publish new, revised versions of
5746 the GNU Free Documentation License from time to time. Such new
5747 versions will be similar in spirit to the present version, but may
5748 differ in detail to address new problems or concerns. See
5749 <http://www.gnu.org/copyleft/>.
5751 Each version of the License is given a distinguishing version
5752 number. If the Document specifies that a particular numbered
5753 version of this License "or any later version" applies to it, you
5754 have the option of following the terms and conditions either of
5755 that specified version or of any later version that has been
5756 published (not as a draft) by the Free Software Foundation. If the
5757 Document does not specify a version number of this License, you may
5758 choose any version ever published (not as a draft) by the Free
5759 Software Foundation. If the Document specifies that a proxy can
5760 decide which future versions of this License can be used, that
5761 proxy's public statement of acceptance of a version permanently
5762 authorizes you to choose that version for the Document.
5766 "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
5767 World Wide Web server that publishes copyrightable works and also
5768 provides prominent facilities for anybody to edit those works. A
5769 public wiki that anybody can edit is an example of such a server.
5770 A "Massive Multiauthor Collaboration" (or "MMC") contained in the
5771 site means any set of copyrightable works thus published on the MMC
5774 "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
5775 license published by Creative Commons Corporation, a not-for-profit
5776 corporation with a principal place of business in San Francisco,
5777 California, as well as future copyleft versions of that license
5778 published by that same organization.
5780 "Incorporate" means to publish or republish a Document, in whole or
5781 in part, as part of another Document.
5783 An MMC is "eligible for relicensing" if it is licensed under this
5784 License, and if all works that were first published under this
5785 License somewhere other than this MMC, and subsequently
5786 incorporated in whole or in part into the MMC, (1) had no cover
5787 texts or invariant sections, and (2) were thus incorporated prior
5788 to November 1, 2008.
5790 The operator of an MMC Site may republish an MMC contained in the
5791 site under CC-BY-SA on the same site at any time before August 1,
5792 2009, provided the MMC is eligible for relicensing.
5794 ADDENDUM: How to use this License for your documents
5795 ====================================================
5797 To use this License in a document you have written, include a copy of
5798 the License in the document and put the following copyright and license
5799 notices just after the title page:
5801 Copyright (C) YEAR YOUR NAME.
5802 Permission is granted to copy, distribute and/or modify this document
5803 under the terms of the GNU Free Documentation License, Version 1.3
5804 or any later version published by the Free Software Foundation;
5805 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
5806 Texts. A copy of the license is included in the section entitled ``GNU
5807 Free Documentation License''.
5809 If you have Invariant Sections, Front-Cover Texts and Back-Cover
5810 Texts, replace the "with...Texts." line with this:
5812 with the Invariant Sections being LIST THEIR TITLES, with
5813 the Front-Cover Texts being LIST, and with the Back-Cover Texts
5816 If you have Invariant Sections without Cover Texts, or some other
5817 combination of the three, merge those two alternatives to suit the
5820 If your document contains nontrivial examples of program code, we
5821 recommend releasing these examples in parallel under your choice of free
5822 software license, such as the GNU General Public License, to permit
5823 their use in free software.
5826 File: binutils.info, Node: Binutils Index, Prev: GNU Free Documentation License, Up: Top
5834 * -enable-deterministic-archives: ar cmdline. (line 150)
5835 * -enable-deterministic-archives <1>: ar cmdline. (line 238)
5836 * -enable-deterministic-archives <2>: objcopy. (line 359)
5837 * -enable-deterministic-archives <3>: objcopy. (line 369)
5838 * -enable-deterministic-archives <4>: ranlib. (line 32)
5839 * -enable-deterministic-archives <5>: ranlib. (line 44)
5840 * -enable-deterministic-archives <6>: strip. (line 158)
5841 * -enable-deterministic-archives <7>: strip. (line 168)
5842 * .stab: objdump. (line 727)
5843 * Add prefix to absolute paths: objdump. (line 516)
5844 * addr2line: addr2line. (line 6)
5845 * address to file name and line number: addr2line. (line 6)
5846 * all header information, object file: objdump. (line 865)
5848 * ar compatibility: ar. (line 63)
5849 * architecture: objdump. (line 268)
5850 * architectures available: objdump. (line 246)
5851 * archive contents: ranlib. (line 6)
5852 * Archive file symbol index information: readelf. (line 270)
5853 * archive headers: objdump. (line 79)
5854 * archives: ar. (line 6)
5855 * base files: dlltool. (line 124)
5856 * bug criteria: Bug Criteria. (line 6)
5857 * bug reports: Bug Reporting. (line 6)
5858 * bugs: Reporting Bugs. (line 6)
5859 * bugs, reporting: Bug Reporting. (line 6)
5860 * c++filt: c++filt. (line 6)
5861 * changing object addresses: objcopy. (line 406)
5862 * changing section address: objcopy. (line 416)
5863 * changing section LMA: objcopy. (line 425)
5864 * changing section VMA: objcopy. (line 438)
5865 * changing start address: objcopy. (line 400)
5866 * collections of files: ar. (line 6)
5867 * Compact Type Format: objdump. (line 705)
5868 * Compact Type Format <1>: readelf. (line 437)
5869 * compatibility, ar: ar. (line 63)
5870 * contents of archive: ar cmdline. (line 97)
5871 * crash: Bug Criteria. (line 9)
5872 * creating archives: ar cmdline. (line 144)
5873 * creating thin archive: ar cmdline. (line 314)
5874 * CTF: objdump. (line 705)
5875 * CTF <1>: readelf. (line 437)
5876 * cxxfilt: c++filt. (line 16)
5877 * dates in archive: ar cmdline. (line 188)
5878 * debug symbols: objdump. (line 727)
5879 * debugging symbols: nm. (line 188)
5880 * deleting from archive: ar cmdline. (line 26)
5881 * demangling C++ symbols: c++filt. (line 6)
5882 * demangling in nm: nm. (line 196)
5883 * demangling in nm <1>: readelf. (line 137)
5884 * demangling in objdump: objdump. (line 107)
5885 * demangling in objdump <1>: addr2line. (line 86)
5886 * deterministic archives: ar cmdline. (line 150)
5887 * deterministic archives <1>: ar cmdline. (line 238)
5888 * deterministic archives <2>: objcopy. (line 359)
5889 * deterministic archives <3>: objcopy. (line 369)
5890 * deterministic archives <4>: ranlib. (line 32)
5891 * deterministic archives <5>: ranlib. (line 44)
5892 * deterministic archives <6>: strip. (line 158)
5893 * deterministic archives <7>: strip. (line 168)
5894 * disassembling object code: objdump. (line 148)
5895 * disassembly architecture: objdump. (line 268)
5896 * disassembly endianness: objdump. (line 196)
5897 * disassembly, with source: objdump. (line 505)
5898 * disassembly, with source <1>: objdump. (line 509)
5899 * discarding symbols: strip. (line 6)
5900 * DLL: dlltool. (line 6)
5901 * dlltool: dlltool. (line 6)
5902 * dynamic relocation entries, in object file: objdump. (line 493)
5903 * dynamic symbol table entries, printing: objdump. (line 826)
5904 * dynamic symbols: nm. (line 226)
5905 * ELF dynamic section information: readelf. (line 210)
5906 * ELF dynamic symbol table information: readelf. (line 117)
5907 * ELF file header information: readelf. (line 77)
5908 * ELF file information: readelf. (line 6)
5909 * ELF notes: readelf. (line 192)
5910 * ELF object file format: objdump. (line 727)
5911 * ELF program header information: readelf. (line 83)
5912 * ELF reloc information: readelf. (line 196)
5913 * ELF section group information: readelf. (line 97)
5914 * ELF section information: readelf. (line 92)
5915 * ELF section information <1>: readelf. (line 102)
5916 * ELF segment information: readelf. (line 83)
5917 * ELF symbol table information: readelf. (line 107)
5918 * ELF version sections information: readelf. (line 214)
5919 * elfedit: elfedit. (line 6)
5920 * endianness: objdump. (line 196)
5921 * error on valid input: Bug Criteria. (line 12)
5922 * external symbols: nm. (line 238)
5923 * external symbols <1>: nm. (line 314)
5924 * external symbols <2>: nm. (line 344)
5925 * extract from archive: ar cmdline. (line 114)
5926 * fatal signal: Bug Criteria. (line 9)
5927 * file name: nm. (line 182)
5928 * header information, all: objdump. (line 865)
5929 * input .def file: dlltool. (line 120)
5930 * input file name: nm. (line 182)
5931 * Instruction width: objdump. (line 533)
5932 * libraries: ar. (line 25)
5933 * listings strings: strings. (line 6)
5934 * LTO symbol table: readelf. (line 122)
5935 * machine instructions: objdump. (line 148)
5936 * moving in archive: ar cmdline. (line 34)
5937 * MRI compatibility, ar: ar scripts. (line 8)
5938 * name duplication in archive: ar cmdline. (line 108)
5939 * name length: ar. (line 18)
5941 * nm compatibility: nm. (line 192)
5942 * nm compatibility <1>: nm. (line 232)
5943 * nm format: nm. (line 192)
5944 * nm format <1>: nm. (line 232)
5945 * not writing archive index: ar cmdline. (line 217)
5946 * objdump: objdump. (line 6)
5947 * objdump inlines: nm. (line 266)
5948 * object code format: nm. (line 398)
5949 * object code format <1>: objdump. (line 93)
5950 * object code format <2>: size. (line 103)
5951 * object code format <3>: strings. (line 120)
5952 * object code format <4>: addr2line. (line 81)
5953 * object file header: objdump. (line 202)
5954 * object file information: objdump. (line 6)
5955 * object file offsets: objdump. (line 207)
5956 * object file sections: objdump. (line 500)
5957 * object formats available: objdump. (line 246)
5958 * offsets of files: ar cmdline. (line 193)
5959 * operations on archive: ar cmdline. (line 22)
5960 * plugins: ar cmdline. (line 272)
5961 * plugins <1>: nm. (line 347)
5962 * printing from archive: ar cmdline. (line 46)
5963 * printing strings: strings. (line 6)
5964 * quick append to archive: ar cmdline. (line 54)
5965 * quiet: readelf. (line 87)
5966 * radix for section sizes: size. (line 85)
5967 * ranlib: ranlib. (line 6)
5968 * ranlib <1>: ar cmdline. (line 91)
5969 * readelf: readelf. (line 6)
5970 * relative placement in archive: ar cmdline. (line 132)
5971 * relocation entries, in object file: objdump. (line 487)
5972 * removing symbols: strip. (line 6)
5973 * repeated names in archive: ar cmdline. (line 108)
5974 * replacement in archive: ar cmdline. (line 73)
5975 * reporting bugs: Reporting Bugs. (line 6)
5976 * scripts, ar: ar scripts. (line 8)
5977 * section addresses in objdump: objdump. (line 85)
5978 * section headers: objdump. (line 223)
5979 * section information: objdump. (line 251)
5980 * section sizes: size. (line 6)
5981 * sections, full contents: objdump. (line 500)
5982 * separate debug files: debuginfod. (line 6)
5983 * size: size. (line 6)
5984 * size display format: size. (line 28)
5985 * size number format: size. (line 85)
5986 * sorting symbols: nm. (line 281)
5987 * source code context: objdump. (line 216)
5988 * source disassembly: objdump. (line 505)
5989 * source disassembly <1>: objdump. (line 509)
5990 * source file name: nm. (line 182)
5991 * source filenames for object files: objdump. (line 262)
5992 * stab: objdump. (line 727)
5993 * start-address: objdump. (line 736)
5994 * stop-address: objdump. (line 740)
5995 * strings: strings. (line 6)
5996 * strings, printing: strings. (line 6)
5997 * strip: strip. (line 6)
5998 * Strip absolute paths: objdump. (line 519)
5999 * symbol index: ar. (line 31)
6000 * symbol index <1>: ranlib. (line 6)
6001 * symbol index, listing: nm. (line 303)
6002 * symbol line numbers: nm. (line 258)
6003 * symbol table entries, printing: objdump. (line 745)
6004 * symbol table size base: readelf. (line 125)
6005 * symbols: nm. (line 6)
6006 * symbols, discarding: strip. (line 6)
6007 * thin archives: ar. (line 43)
6008 * undefined symbols: nm. (line 314)
6009 * undefined symbols <1>: nm. (line 344)
6010 * Unix compatibility, ar: ar cmdline. (line 8)
6011 * unwind information: readelf. (line 201)
6012 * Update ELF header: elfedit. (line 6)
6013 * updating an archive: ar cmdline. (line 229)
6014 * version: Top. (line 6)
6015 * VMA in objdump: objdump. (line 85)
6016 * wide output, printing: objdump. (line 871)
6017 * writing archive index: ar cmdline. (line 211)
6024 Node: ar cmdline
\x7f6885
6025 Node: ar scripts
\x7f20201
6027 Node: objcopy
\x7f41260
6028 Node: objdump
\x7f82108
6029 Node: ranlib
\x7f117396
6030 Node: size
\x7f118995
6031 Node: strings
\x7f122964
6032 Node: strip
\x7f128821
6033 Node: c++filt
\x7f138663
6034 Ref: c++filt-Footnote-1
\x7f144524
6035 Node: addr2line
\x7f144630
6036 Node: windmc
\x7f150308
6037 Node: windres
\x7f153967
6038 Node: dlltool
\x7f160537
6039 Node: def file format
\x7f173534
6040 Node: readelf
\x7f176064
6041 Node: elfedit
\x7f194353
6042 Node: Common Options
\x7f197779
6043 Node: Selecting the Target System
\x7f198813
6044 Node: Target Selection
\x7f199741
6045 Node: Architecture Selection
\x7f201722
6046 Node: debuginfod
\x7f202550
6047 Node: Reporting Bugs
\x7f203309
6048 Node: Bug Criteria
\x7f204071
6049 Node: Bug Reporting
\x7f204624
6050 Node: GNU Free Documentation License
\x7f211491
6051 Node: Binutils Index
\x7f236651