URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [binutils/] [doc/] [binutils.info] - Rev 258
Go to most recent revision | Compare with Previous | Blame | View Log
This is binutils.info, produced by makeinfo version 4.8 frombinutils.texi.Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 FreeSoftware Foundation, Inc.Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.3 orany later version published by the Free Software Foundation; with noInvariant Sections, with no Front-Cover Texts, and with no Back-CoverTexts. A copy of the license is included in the section entitled "GNUFree Documentation License".INFO-DIR-SECTION Software developmentSTART-INFO-DIR-ENTRY* Binutils: (binutils). The GNU binary utilities.END-INFO-DIR-ENTRYINFO-DIR-SECTION Individual utilitiesSTART-INFO-DIR-ENTRY* addr2line: (binutils)addr2line. Convert addresses to file and line.* ar: (binutils)ar. Create, modify, and extract from archives.* c++filt: (binutils)c++filt. Filter to demangle encoded C++ symbols.* cxxfilt: (binutils)c++filt. MS-DOS name for c++filt.* dlltool: (binutils)dlltool. Create files needed to build and use DLLs.* nlmconv: (binutils)nlmconv. Converts object code into an NLM.* nm: (binutils)nm. List symbols from object files.* objcopy: (binutils)objcopy. Copy and translate object files.* objdump: (binutils)objdump. Display information from object files.* ranlib: (binutils)ranlib. Generate index to archive contents.* readelf: (binutils)readelf. Display the contents of ELF format files.* size: (binutils)size. List section sizes and total size.* strings: (binutils)strings. List printable strings from files.* strip: (binutils)strip. Discard symbols.* windmc: (binutils)windmc. Generator for Windows message resources.* windres: (binutils)windres. Manipulate Windows resources.END-INFO-DIR-ENTRYFile: binutils.info, Node: Top, Next: ar, Up: (dir)Introduction************This brief manual contains documentation for the GNU binary utilities(GNU Binutils) version 2.20:This document is distributed under the terms of the GNU FreeDocumentation License version 1.3. A copy of the license is includedin the section entitled "GNU Free Documentation License".* Menu:* ar:: Create, modify, and extract from archives* nm:: List symbols from object files* objcopy:: Copy and translate object files* objdump:: Display information from object files* ranlib:: Generate index to archive contents* readelf:: Display the contents of ELF format files* size:: List section sizes and total size* strings:: List printable strings from files* strip:: Discard symbols* c++filt:: Filter to demangle encoded C++ symbols* cxxfilt: c++filt. MS-DOS name for c++filt* addr2line:: Convert addresses to file and line* nlmconv:: Converts object code into an NLM* windres:: Manipulate Windows resources* windmc:: Generator for Windows message resources* dlltool:: Create files needed to build and use DLLs* Common Options:: Command-line options for all utilities* Selecting the Target System:: How these utilities determine the target* Reporting Bugs:: Reporting Bugs* GNU Free Documentation License:: GNU Free Documentation License* Binutils Index:: Binutils IndexFile: binutils.info, Node: ar, Next: nm, Prev: Top, Up: Top1 ar****ar [`--plugin' NAME] [-]P[MOD [RELPOS] [COUNT]] ARCHIVE [MEMBER...]ar -M [ <mri-script ]The GNU `ar' program creates, modifies, and extracts from archives.An "archive" is a single file holding a collection of other files in astructure that makes it possible to retrieve the original individualfiles (called "members" of the archive).The original files' contents, mode (permissions), timestamp, owner,and group are preserved in the archive, and can be restored onextraction.GNU `ar' can maintain archives whose members have names of anylength; however, depending on how `ar' is configured on your system, alimit on member-name length may be imposed for compatibility witharchive formats maintained with other tools. If it exists, the limitis often 15 characters (typical of formats related to a.out) or 16characters (typical of formats related to coff).`ar' is considered a binary utility because archives of this sortare most often used as "libraries" holding commonly needed subroutines.`ar' creates an index to the symbols defined in relocatable objectmodules in the archive when you specify the modifier `s'. Oncecreated, this index is updated in the archive whenever `ar' makes achange to its contents (save for the `q' update operation). An archivewith such an index speeds up linking to the library, and allowsroutines in the library to call each other without regard to theirplacement in the archive.You may use `nm -s' or `nm --print-armap' to list this index table.If an archive lacks the table, another form of `ar' called `ranlib' canbe used to add just the table.GNU `ar' can optionally create a _thin_ archive, which contains asymbol index and references to the original copies of the member filesof the archives. Such an archive is useful for building libraries foruse within a local build, where the relocatable objects are expected toremain available, and copying the contents of each object would onlywaste time and space. Thin archives are also _flattened_, so thatadding one or more archives to a thin archive will add the elements ofthe nested archive individually. The paths to the elements of thearchive are stored relative to the archive itself.GNU `ar' is designed to be compatible with two different facilities.You can control its activity using command-line options, like thedifferent varieties of `ar' on Unix systems; or, if you specify thesingle command-line option `-M', you can control it with a scriptsupplied via standard input, like the MRI "librarian" program.* Menu:* ar cmdline:: Controlling `ar' on the command line* ar scripts:: Controlling `ar' with a scriptFile: binutils.info, Node: ar cmdline, Next: ar scripts, Up: ar1.1 Controlling `ar' on the Command Line========================================ar [`--plugin' NAME] [`-X32_64'] [`-']P[MOD [RELPOS] [COUNT]] ARCHIVE [MEMBER...]When you use `ar' in the Unix style, `ar' insists on at least twoarguments to execute: one keyletter specifying the _operation_(optionally accompanied by other keyletters specifying _modifiers_),and the archive name to act on.Most operations can also accept further MEMBER arguments, specifyingparticular files to operate on.GNU `ar' allows you to mix the operation code P and modifier flagsMOD in any order, within the first command-line argument.If you wish, you may begin the first command-line argument with adash.The P keyletter specifies what operation to execute; it may be anyof the following, but you must specify only one of them:`d'_Delete_ modules from the archive. Specify the names of modules tobe deleted as MEMBER...; the archive is untouched if you specifyno files to delete.If you specify the `v' modifier, `ar' lists each module as it isdeleted.`m'Use this operation to _move_ members in an archive.The ordering of members in an archive can make a difference in howprograms are linked using the library, if a symbol is defined inmore than one member.If no modifiers are used with `m', any members you name in theMEMBER arguments are moved to the _end_ of the archive; you canuse the `a', `b', or `i' modifiers to move them to a specifiedplace instead.`p'_Print_ the specified members of the archive, to the standardoutput file. If the `v' modifier is specified, show the membername before copying its contents to standard output.If you specify no MEMBER arguments, all the files in the archiveare printed.`q'_Quick append_; Historically, add the files MEMBER... to the end ofARCHIVE, without checking for replacement.The modifiers `a', `b', and `i' do _not_ affect this operation;new members are always placed at the end of the archive.The modifier `v' makes `ar' list each file as it is appended.Since the point of this operation is speed, the archive's symboltable index is not updated, even if it already existed; you canuse `ar s' or `ranlib' explicitly to update the symbol table index.However, too many different systems assume quick append rebuildsthe index, so GNU `ar' implements `q' as a synonym for `r'.`r'Insert the files MEMBER... into ARCHIVE (with _replacement_). Thisoperation differs from `q' in that any previously existing membersare deleted if their names match those being added.If one of the files named in MEMBER... does not exist, `ar'displays an error message, and leaves undisturbed any existingmembers of the archive matching that name.By default, new members are added at the end of the file; but youmay use one of the modifiers `a', `b', or `i' to request placementrelative to some existing member.The modifier `v' used with this operation elicits a line of outputfor each file inserted, along with one of the letters `a' or `r'to indicate whether the file was appended (no old member deleted)or replaced.`t'Display a _table_ listing the contents of ARCHIVE, or those of thefiles listed in MEMBER... that are present in the archive.Normally only the member name is shown; if you also want to seethe modes (permissions), timestamp, owner, group, and size, you canrequest that by also specifying the `v' modifier.If you do not specify a MEMBER, all files in the archive arelisted.If there is more than one file with the same name (say, `fie') inan archive (say `b.a'), `ar t b.a fie' lists only the firstinstance; to see them all, you must ask for a complete listing--inour example, `ar t b.a'.`x'_Extract_ members (named MEMBER) from the archive. You can usethe `v' modifier with this operation, to request that `ar' listeach name as it extracts it.If you do not specify a MEMBER, all files in the archive areextracted.Files cannot be extracted from a thin archive.A number of modifiers (MOD) may immediately follow the P keyletter,to specify variations on an operation's behavior:`a'Add new files _after_ an existing member of the archive. If youuse the modifier `a', the name of an existing archive member mustbe present as the RELPOS argument, before the ARCHIVEspecification.`b'Add new files _before_ an existing member of the archive. If youuse the modifier `b', the name of an existing archive member mustbe present as the RELPOS argument, before the ARCHIVEspecification. (same as `i').`c'_Create_ the archive. The specified ARCHIVE is always created ifit did not exist, when you request an update. But a warning isissued unless you specify in advance that you expect to create it,by using this modifier.`D'Operate in _deterministic_ mode. When adding files and the archiveindex use zero for UIDs, GIDs, timestamps, and use consistent filemodes for all files. When this option is used, if `ar' is usedwith identical options and identical input files, multiple runswill create identical output files regardless of the input files'owners, groups, file modes, or modification times.`f'Truncate names in the archive. GNU `ar' will normally permit filenames of any length. This will cause it to create archives whichare not compatible with the native `ar' program on some systems.If this is a concern, the `f' modifier may be used to truncate filenames when putting them in the archive.`i'Insert new files _before_ an existing member of the archive. Ifyou use the modifier `i', the name of an existing archive membermust be present as the RELPOS argument, before the ARCHIVEspecification. (same as `b').`l'This modifier is accepted but not used.`N'Uses the COUNT parameter. This is used if there are multipleentries in the archive with the same name. Extract or deleteinstance COUNT of the given name from the archive.`o'Preserve the _original_ dates of members when extracting them. Ifyou do not specify this modifier, files extracted from the archiveare stamped with the time of extraction.`P'Use the full path name when matching names in the archive. GNU`ar' can not create an archive with a full path name (such archivesare not POSIX complaint), but other archive creators can. Thisoption will cause GNU `ar' to match file names using a completepath name, which can be convenient when extracting a single filefrom an archive created by another tool.`s'Write an object-file index into the archive, or update an existingone, even if no other change is made to the archive. You may usethis modifier flag either with any operation, or alone. Running`ar s' on an archive is equivalent to running `ranlib' on it.`S'Do not generate an archive symbol table. This can speed upbuilding a large library in several steps. The resulting archivecan not be used with the linker. In order to build a symboltable, you must omit the `S' modifier on the last execution of`ar', or you must run `ranlib' on the archive.`T'Make the specified ARCHIVE a _thin_ archive. If it already existsand is a regular archive, the existing members must be present inthe same directory as ARCHIVE.`u'Normally, `ar r'... inserts all files listed into the archive. Ifyou would like to insert _only_ those of the files you list thatare newer than existing members of the same names, use thismodifier. The `u' modifier is allowed only for the operation `r'(replace). In particular, the combination `qu' is not allowed,since checking the timestamps would lose any speed advantage fromthe operation `q'.`v'This modifier requests the _verbose_ version of an operation. Manyoperations display additional information, such as filenamesprocessed, when the modifier `v' is appended.`V'This modifier shows the version number of `ar'.`ar' ignores an initial option spelt `-X32_64', for compatibilitywith AIX. The behaviour produced by this option is the default for GNU`ar'. `ar' does not support any of the other `-X' options; inparticular, it does not support `-X32' which is the default for AIX`ar'.The optional command line switch `--plugin' NAME causes `ar' to loadthe plugin called NAME which adds support for more file formats. Thisoption is only available if the toolchain has been built with pluginsupport enabled.File: binutils.info, Node: ar scripts, Prev: ar cmdline, Up: ar1.2 Controlling `ar' with a Script==================================ar -M [ <SCRIPT ]If you use the single command-line option `-M' with `ar', you cancontrol its operation with a rudimentary command language. This formof `ar' operates interactively if standard input is coming directlyfrom a terminal. During interactive use, `ar' prompts for input (theprompt is `AR >'), and continues executing even after errors. If youredirect standard input to a script file, no prompts are issued, and`ar' abandons execution (with a nonzero exit code) on any error.The `ar' command language is _not_ designed to be equivalent to thecommand-line options; in fact, it provides somewhat less control overarchives. The only purpose of the command language is to ease thetransition to GNU `ar' for developers who already have scripts writtenfor the MRI "librarian" program.The syntax for the `ar' command language is straightforward:* commands are recognized in upper or lower case; for example, `LIST'is the same as `list'. In the following descriptions, commands areshown in upper case for clarity.* a single command may appear on each line; it is the first word onthe line.* empty lines are allowed, and have no effect.* comments are allowed; text after either of the characters `*' or`;' is ignored.* Whenever you use a list of names as part of the argument to an `ar'command, you can separate the individual names with either commasor blanks. Commas are shown in the explanations below, forclarity.* `+' is used as a line continuation character; if `+' appears atthe end of a line, the text on the following line is consideredpart of the current command.Here are the commands you can use in `ar' scripts, or when using`ar' interactively. Three of them have special significance:`OPEN' or `CREATE' specify a "current archive", which is a temporaryfile required for most of the other commands.`SAVE' commits the changes so far specified by the script. Prior to`SAVE', commands affect only the temporary copy of the current archive.`ADDLIB ARCHIVE'`ADDLIB ARCHIVE (MODULE, MODULE, ... MODULE)'Add all the contents of ARCHIVE (or, if specified, each namedMODULE from ARCHIVE) to the current archive.Requires prior use of `OPEN' or `CREATE'.`ADDMOD MEMBER, MEMBER, ... MEMBER'Add each named MEMBER as a module in the current archive.Requires prior use of `OPEN' or `CREATE'.`CLEAR'Discard the contents of the current archive, canceling the effectof any operations since the last `SAVE'. May be executed (with noeffect) even if no current archive is specified.`CREATE ARCHIVE'Creates an archive, and makes it the current archive (required formany other commands). The new archive is created with a temporaryname; it is not actually saved as ARCHIVE until you use `SAVE'.You can overwrite existing archives; similarly, the contents of anyexisting file named ARCHIVE will not be destroyed until `SAVE'.`DELETE MODULE, MODULE, ... MODULE'Delete each listed MODULE from the current archive; equivalent to`ar -d ARCHIVE MODULE ... MODULE'.Requires prior use of `OPEN' or `CREATE'.`DIRECTORY ARCHIVE (MODULE, ... MODULE)'`DIRECTORY ARCHIVE (MODULE, ... MODULE) OUTPUTFILE'List each named MODULE present in ARCHIVE. The separate command`VERBOSE' specifies the form of the output: when verbose output isoff, output is like that of `ar -t ARCHIVE MODULE...'. Whenverbose output is on, the listing is like `ar -tv ARCHIVEMODULE...'.Output normally goes to the standard output stream; however, if youspecify OUTPUTFILE as a final argument, `ar' directs the output tothat file.`END'Exit from `ar', with a `0' exit code to indicate successfulcompletion. This command does not save the output file; if youhave changed the current archive since the last `SAVE' command,those changes are lost.`EXTRACT MODULE, MODULE, ... MODULE'Extract each named MODULE from the current archive, writing theminto the current directory as separate files. Equivalent to `ar -xARCHIVE MODULE...'.Requires prior use of `OPEN' or `CREATE'.`LIST'Display full contents of the current archive, in "verbose" styleregardless of the state of `VERBOSE'. The effect is like `ar tvARCHIVE'. (This single command is a GNU `ar' enhancement, ratherthan present for MRI compatibility.)Requires prior use of `OPEN' or `CREATE'.`OPEN ARCHIVE'Opens an existing archive for use as the current archive (requiredfor many other commands). Any changes as the result of subsequentcommands will not actually affect ARCHIVE until you next use`SAVE'.`REPLACE MODULE, MODULE, ... MODULE'In the current archive, replace each existing MODULE (named in the`REPLACE' arguments) from files in the current working directory.To execute this command without errors, both the file, and themodule in the current archive, must exist.Requires prior use of `OPEN' or `CREATE'.`VERBOSE'Toggle an internal flag governing the output from `DIRECTORY'.When the flag is on, `DIRECTORY' output matches output from `ar-tv '....`SAVE'Commit your changes to the current archive, and actually save itas a file with the name specified in the last `CREATE' or `OPEN'command.Requires prior use of `OPEN' or `CREATE'.File: binutils.info, Node: nm, Next: objcopy, Prev: ar, Up: Top2 nm****nm [`-a'|`--debug-syms'][`-g'|`--extern-only'][`--plugin' NAME][`-B'] [`-C'|`--demangle'[=STYLE]] [`-D'|`--dynamic'][`-S'|`--print-size'] [`-s'|`--print-armap'][`-A'|`-o'|`--print-file-name'][`--special-syms'][`-n'|`-v'|`--numeric-sort'] [`-p'|`--no-sort'][`-r'|`--reverse-sort'] [`--size-sort'] [`-u'|`--undefined-only'][`-t' RADIX|`--radix='RADIX] [`-P'|`--portability'][`--target='BFDNAME] [`-f'FORMAT|`--format='FORMAT][`--defined-only'] [`-l'|`--line-numbers'] [`--no-demangle'][`-V'|`--version'] [`-X 32_64'] [`--help'] [OBJFILE...]GNU `nm' lists the symbols from object files OBJFILE.... If noobject files are listed as arguments, `nm' assumes the file `a.out'.For each symbol, `nm' shows:* The symbol value, in the radix selected by options (see below), orhexadecimal by default.* The symbol type. At least the following types are used; othersare, as well, depending on the object file format. If lowercase,the symbol is local; if uppercase, the symbol is global (external).`A'The symbol's value is absolute, and will not be changed byfurther linking.`B'`b'The symbol is in the uninitialized data section (known asBSS).`C'The symbol is common. Common symbols are uninitialized data.When linking, multiple common symbols may appear with thesame name. If the symbol is defined anywhere, the commonsymbols are treated as undefined references. For moredetails on common symbols, see the discussion of -warn-commonin *Note Linker options: (ld.info)Options.`D'`d'The symbol is in the initialized data section.`G'`g'The symbol is in an initialized data section for smallobjects. Some object file formats permit more efficientaccess to small data objects, such as a global int variableas opposed to a large global array.`i'For PE format files this indicates that the symbol is in asection specific to the implementation of DLLs. For ELFformat files this indicates that the symbol is an indirectfunction. This is a GNU extension to the standard set of ELFsymbol types. It indicates a symbol which if referenced by arelocation does not evaluate to its address, but instead mustbe invoked at runtime. The runtime execution will thenreturn the value to be used in the relocation.`N'The symbol is a debugging symbol.`p'The symbols is in a stack unwind section.`R'`r'The symbol is in a read only data section.`S'`s'The symbol is in an uninitialized data section for smallobjects.`T'`t'The symbol is in the text (code) section.`U'The symbol is undefined.`u'The symbol is a unique global symbol. This is a GNUextension to the standard set of ELF symbol bindings. Forsuch a symbol the dynamic linker will make sure that in theentire process there is just one symbol with this name andtype in use.`V'`v'The symbol is a weak object. When a weak defined symbol islinked with a normal defined symbol, the normal definedsymbol is used with no error. When a weak undefined symbolis linked and the symbol is not defined, the value of theweak symbol becomes zero with no error. On some systems,uppercase indicates that a default value has been specified.`W'`w'The symbol is a weak symbol that has not been specificallytagged as a weak object symbol. When a weak defined symbolis linked with a normal defined symbol, the normal definedsymbol is used with no error. When a weak undefined symbolis linked and the symbol is not defined, the value of thesymbol is determined in a system-specific manner withouterror. On some systems, uppercase indicates that a defaultvalue has been specified.`-'The symbol is a stabs symbol in an a.out object file. Inthis case, the next values printed are the stabs other field,the stabs desc field, and the stab type. Stabs symbols areused to hold debugging information. For more information,see *Note Stabs: (stabs.info)Top.`?'The symbol type is unknown, or object file format specific.* The symbol name.The long and short forms of options, shown here as alternatives, areequivalent.`-A'`-o'`--print-file-name'Precede each symbol by the name of the input file (or archivemember) in which it was found, rather than identifying the inputfile once only, before all of its symbols.`-a'`--debug-syms'Display all symbols, even debugger-only symbols; normally theseare not listed.`-B'The same as `--format=bsd' (for compatibility with the MIPS `nm').`-C'`--demangle[=STYLE]'Decode ("demangle") low-level symbol names into user-level names.Besides removing any initial underscore prepended by the system,this makes C++ function names readable. Different compilers havedifferent mangling styles. The optional demangling style argumentcan be used to choose an appropriate demangling style for yourcompiler. *Note c++filt::, for more information on demangling.`--no-demangle'Do not demangle low-level symbol names. This is the default.`-D'`--dynamic'Display the dynamic symbols rather than the normal symbols. Thisis only meaningful for dynamic objects, such as certain types ofshared libraries.`-f FORMAT'`--format=FORMAT'Use the output format FORMAT, which can be `bsd', `sysv', or`posix'. The default is `bsd'. Only the first character ofFORMAT is significant; it can be either upper or lower case.`-g'`--extern-only'Display only external symbols.`--plugin NAME'Load the plugin called NAME to add support for extra target types.This option is only available if the toolchain has been builtwith plugin support enabled.`-l'`--line-numbers'For each symbol, use debugging information to try to find afilename and line number. For a defined symbol, look for the linenumber of the address of the symbol. For an undefined symbol,look for the line number of a relocation entry which refers to thesymbol. If line number information can be found, print it afterthe other symbol information.`-n'`-v'`--numeric-sort'Sort symbols numerically by their addresses, rather thanalphabetically by their names.`-p'`--no-sort'Do not bother to sort the symbols in any order; print them in theorder encountered.`-P'`--portability'Use the POSIX.2 standard output format instead of the defaultformat. Equivalent to `-f posix'.`-S'`--print-size'Print both value and size of defined symbols for the `bsd' outputstyle. This option has no effect for object formats that do notrecord symbol sizes, unless `--size-sort' is also used in whichcase a calculated size is displayed.`-s'`--print-armap'When listing symbols from archive members, include the index: amapping (stored in the archive by `ar' or `ranlib') of whichmodules contain definitions for which names.`-r'`--reverse-sort'Reverse the order of the sort (whether numeric or alphabetic); letthe last come first.`--size-sort'Sort symbols by size. The size is computed as the differencebetween the value of the symbol and the value of the symbol withthe next higher value. If the `bsd' output format is used thesize of the symbol is printed, rather than the value, and `-S'must be used in order both size and value to be printed.`--special-syms'Display symbols which have a target-specific special meaning.These symbols are usually used by the target for some specialprocessing and are not normally helpful when included included inthe normal symbol lists. For example for ARM targets this optionwould skip the mapping symbols used to mark transitions betweenARM code, THUMB code and data.`-t RADIX'`--radix=RADIX'Use RADIX as the radix for printing the symbol values. It must be`d' for decimal, `o' for octal, or `x' for hexadecimal.`--target=BFDNAME'Specify an object code format other than your system's defaultformat. *Note Target Selection::, for more information.`-u'`--undefined-only'Display only undefined symbols (those external to each objectfile).`--defined-only'Display only defined symbols for each object file.`-V'`--version'Show the version number of `nm' and exit.`-X'This option is ignored for compatibility with the AIX version of`nm'. It takes one parameter which must be the string `32_64'.The default mode of AIX `nm' corresponds to `-X 32', which is notsupported by GNU `nm'.`--help'Show a summary of the options to `nm' and exit.File: binutils.info, Node: objcopy, Next: objdump, Prev: nm, Up: Top3 objcopy*********objcopy [`-F' BFDNAME|`--target='BFDNAME][`-I' BFDNAME|`--input-target='BFDNAME][`-O' BFDNAME|`--output-target='BFDNAME][`-B' BFDARCH|`--binary-architecture='BFDARCH][`-S'|`--strip-all'][`-g'|`--strip-debug'][`-K' SYMBOLNAME|`--keep-symbol='SYMBOLNAME][`-N' SYMBOLNAME|`--strip-symbol='SYMBOLNAME][`--strip-unneeded-symbol='SYMBOLNAME][`-G' SYMBOLNAME|`--keep-global-symbol='SYMBOLNAME][`--localize-hidden'][`-L' SYMBOLNAME|`--localize-symbol='SYMBOLNAME][`--globalize-symbol='SYMBOLNAME][`-W' SYMBOLNAME|`--weaken-symbol='SYMBOLNAME][`-w'|`--wildcard'][`-x'|`--discard-all'][`-X'|`--discard-locals'][`-b' BYTE|`--byte='BYTE][`-i' INTERLEAVE|`--interleave='INTERLEAVE][`-j' SECTIONNAME|`--only-section='SECTIONNAME][`-R' SECTIONNAME|`--remove-section='SECTIONNAME][`-p'|`--preserve-dates'][`--debugging'][`--gap-fill='VAL][`--pad-to='ADDRESS][`--set-start='VAL][`--adjust-start='INCR][`--change-addresses='INCR][`--change-section-address' SECTION{=,+,-}VAL][`--change-section-lma' SECTION{=,+,-}VAL][`--change-section-vma' SECTION{=,+,-}VAL][`--change-warnings'] [`--no-change-warnings'][`--set-section-flags' SECTION=FLAGS][`--add-section' SECTIONNAME=FILENAME][`--rename-section' OLDNAME=NEWNAME[,FLAGS]][`--long-section-names' {enable,disable,keep}][`--change-leading-char'] [`--remove-leading-char'][`--reverse-bytes='NUM][`--srec-len='IVAL] [`--srec-forceS3'][`--redefine-sym' OLD=NEW][`--redefine-syms='FILENAME][`--weaken'][`--keep-symbols='FILENAME][`--strip-symbols='FILENAME][`--strip-unneeded-symbols='FILENAME][`--keep-global-symbols='FILENAME][`--localize-symbols='FILENAME][`--globalize-symbols='FILENAME][`--weaken-symbols='FILENAME][`--alt-machine-code='INDEX][`--prefix-symbols='STRING][`--prefix-sections='STRING][`--prefix-alloc-sections='STRING][`--add-gnu-debuglink='PATH-TO-FILE][`--keep-file-symbols'][`--only-keep-debug'][`--extract-symbol'][`--writable-text'][`--readonly-text'][`--pure'][`--impure'][`--file-alignment='NUM][`--heap='SIZE][`--image-base='ADDRESS][`--section-alignment='NUM][`--stack='SIZE][`--subsystem='WHICH:MAJOR.MINOR][`-v'|`--verbose'][`-V'|`--version'][`--help'] [`--info']INFILE [OUTFILE]The GNU `objcopy' utility copies the contents of an object file toanother. `objcopy' uses the GNU BFD Library to read and write theobject files. It can write the destination object file in a formatdifferent from that of the source object file. The exact behavior of`objcopy' is controlled by command-line options. Note that `objcopy'should be able to copy a fully linked file between any two formats.However, copying a relocatable object file between any two formats maynot work as expected.`objcopy' creates temporary files to do its translations and deletesthem afterward. `objcopy' uses BFD to do all its translation work; ithas access to all the formats described in BFD and thus is able torecognize most formats without being told explicitly. *Note BFD:(ld.info)BFD.`objcopy' can be used to generate S-records by using an outputtarget of `srec' (e.g., use `-O srec').`objcopy' can be used to generate a raw binary file by using anoutput target of `binary' (e.g., use `-O binary'). When `objcopy'generates a raw binary file, it will essentially produce a memory dumpof the contents of the input object file. All symbols and relocationinformation will be discarded. The memory dump will start at the loadaddress of the lowest section copied into the output file.When generating an S-record or a raw binary file, it may be helpfulto use `-S' to remove sections containing debugging information. Insome cases `-R' will be useful to remove sections which containinformation that is not needed by the binary file.Note--`objcopy' is not able to change the endianness of its inputfiles. If the input format has an endianness (some formats do not),`objcopy' can only copy the inputs into file formats that have the sameendianness or which have no endianness (e.g., `srec'). (However, seethe `--reverse-bytes' option.)`INFILE'`OUTFILE'The input and output files, respectively. If you do not specifyOUTFILE, `objcopy' creates a temporary file and destructivelyrenames the result with the name of INFILE.`-I BFDNAME'`--input-target=BFDNAME'Consider the source file's object format to be BFDNAME, rather thanattempting to deduce it. *Note Target Selection::, for moreinformation.`-O BFDNAME'`--output-target=BFDNAME'Write the output file using the object format BFDNAME. *NoteTarget Selection::, for more information.`-F BFDNAME'`--target=BFDNAME'Use BFDNAME as the object format for both the input and the outputfile; i.e., simply transfer data from source to destination with notranslation. *Note Target Selection::, for more information.`-B BFDARCH'`--binary-architecture=BFDARCH'Useful when transforming a raw binary input file into an objectfile. In this case the output architecture can be set to BFDARCH.This option will be ignored if the input file has a known BFDARCH.You can access this binary data inside a program by referencingthe special symbols that are created by the conversion process.These symbols are called _binary_OBJFILE_start,_binary_OBJFILE_end and _binary_OBJFILE_size. e.g. you cantransform a picture file into an object file and then access it inyour code using these symbols.`-j SECTIONNAME'`--only-section=SECTIONNAME'Copy only the named section from the input file to the output file.This option may be given more than once. Note that using thisoption inappropriately may make the output file unusable.`-R SECTIONNAME'`--remove-section=SECTIONNAME'Remove any section named SECTIONNAME from the output file. Thisoption may be given more than once. Note that using this optioninappropriately may make the output file unusable.`-S'`--strip-all'Do not copy relocation and symbol information from the source file.`-g'`--strip-debug'Do not copy debugging symbols or sections from the source file.`--strip-unneeded'Strip all symbols that are not needed for relocation processing.`-K SYMBOLNAME'`--keep-symbol=SYMBOLNAME'When stripping symbols, keep symbol SYMBOLNAME even if it wouldnormally be stripped. This option may be given more than once.`-N SYMBOLNAME'`--strip-symbol=SYMBOLNAME'Do not copy symbol SYMBOLNAME from the source file. This optionmay be given more than once.`--strip-unneeded-symbol=SYMBOLNAME'Do not copy symbol SYMBOLNAME from the source file unless it isneeded by a relocation. This option may be given more than once.`-G SYMBOLNAME'`--keep-global-symbol=SYMBOLNAME'Keep only symbol SYMBOLNAME global. Make all other symbols localto the file, so that they are not visible externally. This optionmay be given more than once.`--localize-hidden'In an ELF object, mark all symbols that have hidden or internalvisibility as local. This option applies on top ofsymbol-specific localization options such as `-L'.`-L SYMBOLNAME'`--localize-symbol=SYMBOLNAME'Make symbol SYMBOLNAME local to the file, so that it is notvisible externally. This option may be given more than once.`-W SYMBOLNAME'`--weaken-symbol=SYMBOLNAME'Make symbol SYMBOLNAME weak. This option may be given more thanonce.`--globalize-symbol=SYMBOLNAME'Give symbol SYMBOLNAME global scoping so that it is visibleoutside of the file in which it is defined. This option may begiven more than once.`-w'`--wildcard'Permit regular expressions in SYMBOLNAMEs used in other commandline options. The question mark (?), asterisk (*), backslash (\)and square brackets ([]) operators can be used anywhere in thesymbol name. If the first character of the symbol name is theexclamation point (!) then the sense of the switch is reversed forthat symbol. For example:-w -W !foo -W fo*would cause objcopy to weaken all symbols that start with "fo"except for the symbol "foo".`-x'`--discard-all'Do not copy non-global symbols from the source file.`-X'`--discard-locals'Do not copy compiler-generated local symbols. (These usuallystart with `L' or `.'.)`-b BYTE'`--byte=BYTE'Keep only every BYTEth byte of the input file (header data is notaffected). BYTE can be in the range from 0 to INTERLEAVE-1, whereINTERLEAVE is given by the `-i' or `--interleave' option, or thedefault of 4. This option is useful for creating files to programROM. It is typically used with an `srec' output target.`-i INTERLEAVE'`--interleave=INTERLEAVE'Only copy one out of every INTERLEAVE bytes. Select which byte tocopy with the `-b' or `--byte' option. The default is 4.`objcopy' ignores this option if you do not specify either `-b' or`--byte'.`-p'`--preserve-dates'Set the access and modification dates of the output file to be thesame as those of the input file.`--debugging'Convert debugging information, if possible. This is not thedefault because only certain debugging formats are supported, andthe conversion process can be time consuming.`--gap-fill VAL'Fill gaps between sections with VAL. This operation applies tothe _load address_ (LMA) of the sections. It is done by increasingthe size of the section with the lower address, and filling in theextra space created with VAL.`--pad-to ADDRESS'Pad the output file up to the load address ADDRESS. This is doneby increasing the size of the last section. The extra space isfilled in with the value specified by `--gap-fill' (default zero).`--set-start VAL'Set the start address of the new file to VAL. Not all object fileformats support setting the start address.`--change-start INCR'`--adjust-start INCR'Change the start address by adding INCR. Not all object fileformats support setting the start address.`--change-addresses INCR'`--adjust-vma INCR'Change the VMA and LMA addresses of all sections, as well as thestart address, by adding INCR. Some object file formats do notpermit section addresses to be changed arbitrarily. Note thatthis does not relocate the sections; if the program expectssections to be loaded at a certain address, and this option isused to change the sections such that they are loaded at adifferent address, the program may fail.`--change-section-address SECTION{=,+,-}VAL'`--adjust-section-vma SECTION{=,+,-}VAL'Set or change both the VMA address and the LMA address of the namedSECTION. If `=' is used, the section address is set to VAL.Otherwise, VAL is added to or subtracted from the section address.See the comments under `--change-addresses', above. If SECTIONdoes not exist in the input file, a warning will be issued, unless`--no-change-warnings' is used.`--change-section-lma SECTION{=,+,-}VAL'Set or change the LMA address of the named SECTION. The LMAaddress is the address where the section will be loaded intomemory at program load time. Normally this is the same as the VMAaddress, which is the address of the section at program run time,but on some systems, especially those where a program is held inROM, the two can be different. If `=' is used, the sectionaddress is set to VAL. Otherwise, VAL is added to or subtractedfrom the section address. See the comments under`--change-addresses', above. If SECTION does not exist in theinput file, a warning will be issued, unless`--no-change-warnings' is used.`--change-section-vma SECTION{=,+,-}VAL'Set or change the VMA address of the named SECTION. The VMAaddress is the address where the section will be located once theprogram has started executing. Normally this is the same as theLMA address, which is the address where the section will be loadedinto memory, but on some systems, especially those where a programis held in ROM, the two can be different. If `=' is used, thesection address is set to VAL. Otherwise, VAL is added to orsubtracted from the section address. See the comments under`--change-addresses', above. If SECTION does not exist in theinput file, a warning will be issued, unless`--no-change-warnings' is used.`--change-warnings'`--adjust-warnings'If `--change-section-address' or `--change-section-lma' or`--change-section-vma' is used, and the named section does notexist, issue a warning. This is the default.`--no-change-warnings'`--no-adjust-warnings'Do not issue a warning if `--change-section-address' or`--adjust-section-lma' or `--adjust-section-vma' is used, even ifthe named section does not exist.`--set-section-flags SECTION=FLAGS'Set the flags for the named section. The FLAGS argument is acomma separated string of flag names. The recognized names are`alloc', `contents', `load', `noload', `readonly', `code', `data',`rom', `share', and `debug'. You can set the `contents' flag fora section which does not have contents, but it is not meaningfulto clear the `contents' flag of a section which does havecontents-just remove the section instead. Not all flags aremeaningful for all object file formats.`--add-section SECTIONNAME=FILENAME'Add a new section named SECTIONNAME while copying the file. Thecontents of the new section are taken from the file FILENAME. Thesize of the section will be the size of the file. This option onlyworks on file formats which can support sections with arbitrarynames.`--rename-section OLDNAME=NEWNAME[,FLAGS]'Rename a section from OLDNAME to NEWNAME, optionally changing thesection's flags to FLAGS in the process. This has the advantageover usng a linker script to perform the rename in that the outputstays as an object file and does not become a linked executable.This option is particularly helpful when the input format isbinary, since this will always create a section called .data. Iffor example, you wanted instead to create a section called .rodatacontaining binary data you could use the following command line toachieve it:objcopy -I binary -O <output_format> -B <architecture> \--rename-section .data=.rodata,alloc,load,readonly,data,contents \<input_binary_file> <output_object_file>`--long-section-names {enable,disable,keep}'Controls the handling of long section names when processing `COFF'and `PE-COFF' object formats. The default behaviour, `keep', isto preserve long section names if any are present in the inputfile. The `enable' and `disable' options forcibly enable ordisable the use of long section names in the output object; when`disable' is in effect, any long section names in the input objectwill be truncated. The `enable' option will only emit longsection names if any are present in the inputs; this is mostly thesame as `keep', but it is left undefined whether the `enable'option might force the creation of an empty string table in theoutput file.`--change-leading-char'Some object file formats use special characters at the start ofsymbols. The most common such character is underscore, whichcompilers often add before every symbol. This option tells`objcopy' to change the leading character of every symbol when itconverts between object file formats. If the object file formatsuse the same leading character, this option has no effect.Otherwise, it will add a character, or remove a character, orchange a character, as appropriate.`--remove-leading-char'If the first character of a global symbol is a special symbolleading character used by the object file format, remove thecharacter. The most common symbol leading character isunderscore. This option will remove a leading underscore from allglobal symbols. This can be useful if you want to link togetherobjects of different file formats with different conventions forsymbol names. This is different from `--change-leading-char'because it always changes the symbol name when appropriate,regardless of the object file format of the output file.`--reverse-bytes=NUM'Reverse the bytes in a section with output contents. A sectionlength must be evenly divisible by the value given in order forthe swap to be able to take place. Reversing takes place beforethe interleaving is performed.This option is used typically in generating ROM images forproblematic target systems. For example, on some target boards,the 32-bit words fetched from 8-bit ROMs are re-assembled inlittle-endian byte order regardless of the CPU byte order.Depending on the programming model, the endianness of the ROM mayneed to be modified.Consider a simple file with a section containing the followingeight bytes: `12345678'.Using `--reverse-bytes=2' for the above example, the bytes in theoutput file would be ordered `21436587'.Using `--reverse-bytes=4' for the above example, the bytes in theoutput file would be ordered `43218765'.By using `--reverse-bytes=2' for the above example, followed by`--reverse-bytes=4' on the output file, the bytes in the secondoutput file would be ordered `34127856'.`--srec-len=IVAL'Meaningful only for srec output. Set the maximum length of theSrecords being produced to IVAL. This length covers both address,data and crc fields.`--srec-forceS3'Meaningful only for srec output. Avoid generation of S1/S2records, creating S3-only record format.`--redefine-sym OLD=NEW'Change the name of a symbol OLD, to NEW. This can be useful whenone is trying link two things together for which you have nosource, and there are name collisions.`--redefine-syms=FILENAME'Apply `--redefine-sym' to each symbol pair "OLD NEW" listed in thefile FILENAME. FILENAME is simply a flat file, with one symbolpair per line. Line comments may be introduced by the hashcharacter. This option may be given more than once.`--weaken'Change all global symbols in the file to be weak. This can beuseful when building an object which will be linked against otherobjects using the `-R' option to the linker. This option is onlyeffective when using an object file format which supports weaksymbols.`--keep-symbols=FILENAME'Apply `--keep-symbol' option to each symbol listed in the fileFILENAME. FILENAME is simply a flat file, with one symbol nameper line. Line comments may be introduced by the hash character.This option may be given more than once.`--strip-symbols=FILENAME'Apply `--strip-symbol' option to each symbol listed in the fileFILENAME. FILENAME is simply a flat file, with one symbol nameper line. Line comments may be introduced by the hash character.This option may be given more than once.`--strip-unneeded-symbols=FILENAME'Apply `--strip-unneeded-symbol' option to each symbol listed inthe file FILENAME. FILENAME is simply a flat file, with onesymbol name per line. Line comments may be introduced by the hashcharacter. This option may be given more than once.`--keep-global-symbols=FILENAME'Apply `--keep-global-symbol' option to each symbol listed in thefile FILENAME. FILENAME is simply a flat file, with one symbolname per line. Line comments may be introduced by the hashcharacter. This option may be given more than once.`--localize-symbols=FILENAME'Apply `--localize-symbol' option to each symbol listed in the fileFILENAME. FILENAME is simply a flat file, with one symbol nameper line. Line comments may be introduced by the hash character.This option may be given more than once.`--globalize-symbols=FILENAME'Apply `--globalize-symbol' option to each symbol listed in the fileFILENAME. FILENAME is simply a flat file, with one symbol nameper line. Line comments may be introduced by the hash character.This option may be given more than once.`--weaken-symbols=FILENAME'Apply `--weaken-symbol' option to each symbol listed in the fileFILENAME. FILENAME is simply a flat file, with one symbol nameper line. Line comments may be introduced by the hash character.This option may be given more than once.`--alt-machine-code=INDEX'If the output architecture has alternate machine codes, use theINDEXth code instead of the default one. This is useful in case amachine is assigned an official code and the tool-chain adopts thenew code, but other applications still depend on the original codebeing used. For ELF based architectures if the INDEX alternativedoes not exist then the value is treated as an absolute number tobe stored in the e_machine field of the ELF header.`--writable-text'Mark the output text as writable. This option isn't meaningfulfor all object file formats.`--readonly-text'Make the output text write protected. This option isn'tmeaningful for all object file formats.`--pure'Mark the output file as demand paged. This option isn'tmeaningful for all object file formats.`--impure'Mark the output file as impure. This option isn't meaningful forall object file formats.`--prefix-symbols=STRING'Prefix all symbols in the output file with STRING.`--prefix-sections=STRING'Prefix all section names in the output file with STRING.`--prefix-alloc-sections=STRING'Prefix all the names of all allocated sections in the output filewith STRING.`--add-gnu-debuglink=PATH-TO-FILE'Creates a .gnu_debuglink section which contains a reference toPATH-TO-FILE and adds it to the output file.`--keep-file-symbols'When stripping a file, perhaps with `--strip-debug' or`--strip-unneeded', retain any symbols specifying source filenames, which would otherwise get stripped.`--only-keep-debug'Strip a file, removing contents of any sections that would not bestripped by `--strip-debug' and leaving the debugging sectionsintact. In ELF files, this preserves all note sections in theoutput.The intention is that this option will be used in conjunction with`--add-gnu-debuglink' to create a two part executable. One astripped binary which will occupy less space in RAM and in adistribution and the second a debugging information file which isonly needed if debugging abilities are required. The suggestedprocedure to create these files is as follows:1. Link the executable as normal. Assuming that is is called`foo' then...2. Run `objcopy --only-keep-debug foo foo.dbg' to create a filecontaining the debugging info.3. Run `objcopy --strip-debug foo' to create a strippedexecutable.4. Run `objcopy --add-gnu-debuglink=foo.dbg foo' to add a linkto the debugging info into the stripped executable.Note--the choice of `.dbg' as an extension for the debug info fileis arbitrary. Also the `--only-keep-debug' step is optional. Youcould instead do this:1. Link the executable as normal.2. Copy `foo' to `foo.full'3. Run `objcopy --strip-debug foo'4. Run `objcopy --add-gnu-debuglink=foo.full foo'i.e., the file pointed to by the `--add-gnu-debuglink' can be thefull executable. It does not have to be a file created by the`--only-keep-debug' switch.Note--this switch is only intended for use on fully linked files.It does not make sense to use it on object files where thedebugging information may be incomplete. Besides thegnu_debuglink feature currently only supports the presence of onefilename containing debugging information, not multiple filenameson a one-per-object-file basis.`--file-alignment NUM'Specify the file alignment. Sections in the file will alwaysbegin at file offsets which are multiples of this number. Thisdefaults to 512. [This option is specific to PE targets.]`--heap RESERVE'`--heap RESERVE,COMMIT'Specify the number of bytes of memory to reserve (and optionallycommit) to be used as heap for this program. [This option isspecific to PE targets.]`--image-base VALUE'Use VALUE as the base address of your program or dll. This is thelowest memory location that will be used when your program or dllis loaded. To reduce the need to relocate and improve performanceof your dlls, each should have a unique base address and notoverlap any other dlls. The default is 0x400000 for executables,and 0x10000000 for dlls. [This option is specific to PE targets.]`--section-alignment NUM'Sets the section alignment. Sections in memory will always beginat addresses which are a multiple of this number. Defaults to0x1000. [This option is specific to PE targets.]`--stack RESERVE'`--stack RESERVE,COMMIT'Specify the number of bytes of memory to reserve (and optionallycommit) to be used as stack for this program. [This option isspecific to PE targets.]`--subsystem WHICH'`--subsystem WHICH:MAJOR'`--subsystem WHICH:MAJOR.MINOR'Specifies the subsystem under which your program will execute. Thelegal values for WHICH are `native', `windows', `console',`posix', `efi-app', `efi-bsd', `efi-rtd', `sal-rtd', and `xbox'.You may optionally set the subsystem version also. Numeric valuesare also accepted for WHICH. [This option is specific to PEtargets.]`--extract-symbol'Keep the file's section flags and symbols but remove all sectiondata. Specifically, the option:* removes the contents of all sections;* sets the size of every section to zero; and* sets the file's start address to zero.This option is used to build a `.sym' file for a VxWorks kernel.It can also be a useful way of reducing the size of a`--just-symbols' linker input file.`-V'`--version'Show the version number of `objcopy'.`-v'`--verbose'Verbose output: list all object files modified. In the case ofarchives, `objcopy -V' lists all members of the archive.`--help'Show a summary of the options to `objcopy'.`--info'Display a list showing all architectures and object formatsavailable.File: binutils.info, Node: objdump, Next: ranlib, Prev: objcopy, Up: Top4 objdump*********objdump [`-a'|`--archive-headers'][`-b' BFDNAME|`--target=BFDNAME'][`-C'|`--demangle'[=STYLE] ][`-d'|`--disassemble'][`-D'|`--disassemble-all'][`-z'|`--disassemble-zeroes'][`-EB'|`-EL'|`--endian='{big | little }][`-f'|`--file-headers'][`-F'|`--file-offsets'][`--file-start-context'][`-g'|`--debugging'][`-e'|`--debugging-tags'][`-h'|`--section-headers'|`--headers'][`-i'|`--info'][`-j' SECTION|`--section='SECTION][`-l'|`--line-numbers'][`-S'|`--source'][`-m' MACHINE|`--architecture='MACHINE][`-M' OPTIONS|`--disassembler-options='OPTIONS][`-p'|`--private-headers'][`-r'|`--reloc'][`-R'|`--dynamic-reloc'][`-s'|`--full-contents'][`-W[lLiaprmfFsoR]'|`--dwarf'[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]][`-G'|`--stabs'][`-t'|`--syms'][`-T'|`--dynamic-syms'][`-x'|`--all-headers'][`-w'|`--wide'][`--start-address='ADDRESS][`--stop-address='ADDRESS][`--prefix-addresses'][`--[no-]show-raw-insn'][`--adjust-vma='OFFSET][`--special-syms'][`--prefix='PREFIX][`--prefix-strip='LEVEL][`--insn-width='WIDTH][`-V'|`--version'][`-H'|`--help']OBJFILE...`objdump' displays information about one or more object files. Theoptions control what particular information to display. Thisinformation is mostly useful to programmers who are working on thecompilation tools, as opposed to programmers who just want theirprogram to compile and work.OBJFILE... are the object files to be examined. When you specifyarchives, `objdump' shows information on each of the member objectfiles.The long and short forms of options, shown here as alternatives, areequivalent. At least one option from the list`-a,-d,-D,-e,-f,-g,-G,-h,-H,-p,-r,-R,-s,-S,-t,-T,-V,-x' must be given.`-a'`--archive-header'If any of the OBJFILE files are archives, display the archiveheader information (in a format similar to `ls -l'). Besides theinformation you could list with `ar tv', `objdump -a' shows theobject file format of each archive member.`--adjust-vma=OFFSET'When dumping information, first add OFFSET to all the sectionaddresses. This is useful if the section addresses do notcorrespond to the symbol table, which can happen when puttingsections at particular addresses when using a format which can notrepresent section addresses, such as a.out.`-b BFDNAME'`--target=BFDNAME'Specify that the object-code format for the object files isBFDNAME. This option may not be necessary; OBJDUMP canautomatically recognize many formats.For example,objdump -b oasys -m vax -h fu.odisplays summary information from the section headers (`-h') of`fu.o', which is explicitly identified (`-m') as a VAX object filein the format produced by Oasys compilers. You can list theformats available with the `-i' option. *Note Target Selection::,for more information.`-C'`--demangle[=STYLE]'Decode ("demangle") low-level symbol names into user-level names.Besides removing any initial underscore prepended by the system,this makes C++ function names readable. Different compilers havedifferent mangling styles. The optional demangling style argumentcan be used to choose an appropriate demangling style for yourcompiler. *Note c++filt::, for more information on demangling.`-g'`--debugging'Display debugging information. This attempts to parse STABS andIEEE debugging format information stored in the file and print itout using a C like syntax. If neither of these formats are foundthis option falls back on the `-W' option to print any DWARFinformation in the file.`-e'`--debugging-tags'Like `-g', but the information is generated in a format compatiblewith ctags tool.`-d'`--disassemble'Display the assembler mnemonics for the machine instructions fromOBJFILE. This option only disassembles those sections which areexpected to contain instructions.`-D'`--disassemble-all'Like `-d', but disassemble the contents of all sections, not justthose expected to contain instructions.If the target is an ARM architecture this switch also has theeffect of forcing the disassembler to decode pieces of data foundin code sections as if they were instructions.`--prefix-addresses'When disassembling, print the complete address on each line. Thisis the older disassembly format.`-EB'`-EL'`--endian={big|little}'Specify the endianness of the object files. This only affectsdisassembly. This can be useful when disassembling a file formatwhich does not describe endianness information, such as S-records.`-f'`--file-headers'Display summary information from the overall header of each of theOBJFILE files.`-F'`--file-offsets'When disassembling sections, whenever a symbol is displayed, alsodisplay the file offset of the region of data that is about to bedumped. If zeroes are being skipped, then when disassemblyresumes, tell the user how many zeroes were skipped and the fileoffset of the location from where the disassembly resumes. Whendumping sections, display the file offset of the location fromwhere the dump starts.`--file-start-context'Specify that when displaying interlisted source code/disassembly(assumes `-S') from a file that has not yet been displayed, extendthe context to the start of the file.`-h'`--section-headers'`--headers'Display summary information from the section headers of the objectfile.File segments may be relocated to nonstandard addresses, forexample by using the `-Ttext', `-Tdata', or `-Tbss' options to`ld'. However, some object file formats, such as a.out, do notstore the starting address of the file segments. In thosesituations, although `ld' relocates the sections correctly, using`objdump -h' to list the file section headers cannot show thecorrect addresses. Instead, it shows the usual addresses, whichare implicit for the target.`-H'`--help'Print a summary of the options to `objdump' and exit.`-i'`--info'Display a list showing all architectures and object formatsavailable for specification with `-b' or `-m'.`-j NAME'`--section=NAME'Display information only for section NAME.`-l'`--line-numbers'Label the display (using debugging information) with the filenameand source line numbers corresponding to the object code or relocsshown. Only useful with `-d', `-D', or `-r'.`-m MACHINE'`--architecture=MACHINE'Specify the architecture to use when disassembling object files.This can be useful when disassembling object files which do notdescribe architecture information, such as S-records. You canlist the available architectures with the `-i' option.If the target is an ARM architecture then this switch has anadditional effect. It restricts the disassembly to only thoseinstructions supported by the architecture specified by MACHINE.If it is necessary to use this switch because the input file doesnot contain any architecture information, but it is also desired todisassemble all the instructions use `-marm'.`-M OPTIONS'`--disassembler-options=OPTIONS'Pass target specific information to the disassembler. Onlysupported on some targets. If it is necessary to specify morethan one disassembler option then multiple `-M' options can beused or can be placed together into a comma separated list.If the target is an ARM architecture then this switch can be usedto select which register name set is used during disassembler.Specifying `-M reg-names-std' (the default) will select theregister names as used in ARM's instruction set documentation, butwith register 13 called 'sp', register 14 called 'lr' and register15 called 'pc'. Specifying `-M reg-names-apcs' will select thename set used by the ARM Procedure Call Standard, whilstspecifying `-M reg-names-raw' will just use `r' followed by theregister number.There are also two variants on the APCS register naming schemeenabled by `-M reg-names-atpcs' and `-M reg-names-special-atpcs'which use the ARM/Thumb Procedure Call Standard namingconventions. (Either with the normal register names or thespecial register names).This option can also be used for ARM architectures to force thedisassembler to interpret all instructions as Thumb instructions byusing the switch `--disassembler-options=force-thumb'. This can beuseful when attempting to disassemble thumb code produced by othercompilers.For the x86, some of the options duplicate functions of the `-m'switch, but allow finer grained control. Multiple selections fromthe following may be specified as a comma separated string.`x86-64', `i386' and `i8086' select disassembly for the givenarchitecture. `intel' and `att' select between intel syntax modeand AT&T syntax mode. `intel-mnemonic' and `att-mnemonic' selectbetween intel mnemonic mode and AT&T mnemonic mode.`intel-mnemonic' implies `intel' and `att-mnemonic' implies `att'.`addr64', `addr32', `addr16', `data32' and `data16' specify thedefault address size and operand size. These four options will beoverridden if `x86-64', `i386' or `i8086' appear later in theoption string. Lastly, `suffix', when in AT&T mode, instructs thedisassembler to print a mnemonic suffix even when the suffix couldbe inferred by the operands.For PowerPC, `booke' controls the disassembly of BookEinstructions. `32' and `64' select PowerPC and PowerPC64disassembly, respectively. `e300' selects disassembly for thee300 family. `440' selects disassembly for the PowerPC 440.`ppcps' selects disassembly for the paired single instructions ofthe PPC750CL.For MIPS, this option controls the printing of instruction mnemonicnames and register names in disassembled instructions. Multipleselections from the following may be specified as a comma separatedstring, and invalid options are ignored:`no-aliases'Print the 'raw' instruction mnemonic instead of some pseudoinstruction mnemonic. I.e., print 'daddu' or 'or' instead of'move', 'sll' instead of 'nop', etc.`gpr-names=ABI'Print GPR (general-purpose register) names as appropriate forthe specified ABI. By default, GPR names are selectedaccording to the ABI of the binary being disassembled.`fpr-names=ABI'Print FPR (floating-point register) names as appropriate forthe specified ABI. By default, FPR numbers are printedrather than names.`cp0-names=ARCH'Print CP0 (system control coprocessor; coprocessor 0)register names as appropriate for the CPU or architecturespecified by ARCH. By default, CP0 register names areselected according to the architecture and CPU of the binarybeing disassembled.`hwr-names=ARCH'Print HWR (hardware register, used by the `rdhwr'instruction) names as appropriate for the CPU or architecturespecified by ARCH. By default, HWR names are selectedaccording to the architecture and CPU of the binary beingdisassembled.`reg-names=ABI'Print GPR and FPR names as appropriate for the selected ABI.`reg-names=ARCH'Print CPU-specific register names (CP0 register and HWR names)as appropriate for the selected CPU or architecture.For any of the options listed above, ABI or ARCH may be specifiedas `numeric' to have numbers printed rather than names, for theselected types of registers. You can list the available values ofABI and ARCH using the `--help' option.For VAX, you can specify function entry addresses with `-Mentry:0xf00ba'. You can use this multiple times to properlydisassemble VAX binary files that don't contain symbol tables (likeROM dumps). In these cases, the function entry mask wouldotherwise be decoded as VAX instructions, which would probablylead the rest of the function being wrongly disassembled.`-p'`--private-headers'Print information that is specific to the object file format. Theexact information printed depends upon the object file format.For some object file formats, no additional information is printed.`-r'`--reloc'Print the relocation entries of the file. If used with `-d' or`-D', the relocations are printed interspersed with thedisassembly.`-R'`--dynamic-reloc'Print the dynamic relocation entries of the file. This is onlymeaningful for dynamic objects, such as certain types of sharedlibraries. As for `-r', if used with `-d' or `-D', therelocations are printed interspersed with the disassembly.`-s'`--full-contents'Display the full contents of any sections requested. By defaultall non-empty sections are displayed.`-S'`--source'Display source code intermixed with disassembly, if possible.Implies `-d'.`--prefix=PREFIX'Specify PREFIX to add to the absolute paths when used with `-S'.`--prefix-strip=LEVEL'Indicate how many initial directory names to strip off thehardwired absolute paths. It has no effect without`--prefix='PREFIX.`--show-raw-insn'When disassembling instructions, print the instruction in hex aswell as in symbolic form. This is the default except when`--prefix-addresses' is used.`--no-show-raw-insn'When disassembling instructions, do not print the instructionbytes. This is the default when `--prefix-addresses' is used.`--insn-width=WIDTH'Display WIDTH bytes on a single line when disassemblinginstructions.`-W[lLiaprmfFsoR]'`--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]'Displays the contents of the debug sections in the file, if any arepresent. If one of the optional letters or words follows theswitch then only data found in those specific sections will bedumped.`-G'`--stabs'Display the full contents of any sections requested. Display thecontents of the .stab and .stab.index and .stab.excl sections froman ELF file. This is only useful on systems (such as Solaris 2.0)in which `.stab' debugging symbol-table entries are carried in anELF section. In most other file formats, debugging symbol-tableentries are interleaved with linkage symbols, and are visible inthe `--syms' output. For more information on stabs symbols, see*Note Stabs: (stabs.info)Top.`--start-address=ADDRESS'Start displaying data at the specified address. This affects theoutput of the `-d', `-r' and `-s' options.`--stop-address=ADDRESS'Stop displaying data at the specified address. This affects theoutput of the `-d', `-r' and `-s' options.`-t'`--syms'Print the symbol table entries of the file. This is similar tothe information provided by the `nm' program, although the displayformat is different. The format of the output depends upon theformat of the file being dumped, but there are two main types.One looks like this:[ 4](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .bss[ 6](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 fredwhere the number inside the square brackets is the number of theentry in the symbol table, the SEC number is the section number,the FL value are the symbol's flag bits, the TY number is thesymbol's type, the SCL number is the symbol's storage class andthe NX value is the number of auxilary entries associated with thesymbol. The last two fields are the symbol's value and its name.The other common output format, usually seen with ELF based files,looks like this:00000000 l d .bss 00000000 .bss00000000 g .text 00000000 fredHere the first number is the symbol's value (sometimes refered toas its address). The next field is actually a set of charactersand spaces indicating the flag bits that are set on the symbol.These characters are described below. Next is the section withwhich the symbol is associated or _*ABS*_ if the section isabsolute (ie not connected with any section), or _*UND*_ if thesection is referenced in the file being dumped, but not definedthere.After the section name comes another field, a number, which forcommon symbols is the alignment and for other symbol is the size.Finally the symbol's name is displayed.The flag characters are divided into 7 groups as follows:`l'`g'`u'`!'The symbol is a local (l), global (g), unique global (u),neither global nor local (a space) or both global and local(!). A symbol can be neither local or global for a varietyof reasons, e.g., because it is used for debugging, but it isprobably an indication of a bug if it is ever both local andglobal. Unique global symbols are a GNU extension to thestandard set of ELF symbol bindings. For such a symbol thedynamic linker will make sure that in the entire processthere is just one symbol with this name and type in use.`w'The symbol is weak (w) or strong (a space).`C'The symbol denotes a constructor (C) or an ordinary symbol (aspace).`W'The symbol is a warning (W) or a normal symbol (a space). Awarning symbol's name is a message to be displayed if thesymbol following the warning symbol is ever referenced.`I'`i'The symbol is an indirect reference to another symbol (I), afunction to be evaluated during reloc processing (i) or anormal symbol (a space).`d'`D'The symbol is a debugging symbol (d) or a dynamic symbol (D)or a normal symbol (a space).`F'`f'`O'The symbol is the name of a function (F) or a file (f) or anobject (O) or just a normal symbol (a space).`-T'`--dynamic-syms'Print the dynamic symbol table entries of the file. This is onlymeaningful for dynamic objects, such as certain types of sharedlibraries. This is similar to the information provided by the `nm'program when given the `-D' (`--dynamic') option.`--special-syms'When displaying symbols include those which the target considersto be special in some way and which would not normally be ofinterest to the user.`-V'`--version'Print the version number of `objdump' and exit.`-x'`--all-headers'Display all available header information, including the symboltable and relocation entries. Using `-x' is equivalent tospecifying all of `-a -f -h -p -r -t'.`-w'`--wide'Format some lines for output devices that have more than 80columns. Also do not truncate symbol names when they aredisplayed.`-z'`--disassemble-zeroes'Normally the disassembly output will skip blocks of zeroes. Thisoption directs the disassembler to disassemble those blocks, justlike any other data.File: binutils.info, Node: ranlib, Next: readelf, Prev: objdump, Up: Top5 ranlib********ranlib [`-vVt'] ARCHIVE`ranlib' generates an index to the contents of an archive and storesit in the archive. The index lists each symbol defined by a member ofan archive that is a relocatable object file.You may use `nm -s' or `nm --print-armap' to list this index.An archive with such an index speeds up linking to the library andallows routines in the library to call each other without regard totheir placement in the archive.The GNU `ranlib' program is another form of GNU `ar'; running`ranlib' is completely equivalent to executing `ar -s'. *Note ar::.`-v'`-V'`--version'Show the version number of `ranlib'.`-t'Update the timestamp of the symbol map of an archive.File: binutils.info, Node: size, Next: strings, Prev: readelf, Up: Top6 size******size [`-A'|`-B'|`--format='COMPATIBILITY][`--help'][`-d'|`-o'|`-x'|`--radix='NUMBER][`--common'][`-t'|`--totals'][`--target='BFDNAME] [`-V'|`--version'][OBJFILE...]The GNU `size' utility lists the section sizes--and the totalsize--for each of the object or archive files OBJFILE in its argumentlist. By default, one line of output is generated for each object fileor each module in an archive.OBJFILE... are the object files to be examined. If none arespecified, the file `a.out' will be used.The command line options have the following meanings:`-A'`-B'`--format=COMPATIBILITY'Using one of these options, you can choose whether the output fromGNU `size' resembles output from System V `size' (using `-A', or`--format=sysv'), or Berkeley `size' (using `-B', or`--format=berkeley'). The default is the one-line format similarto Berkeley's.Here is an example of the Berkeley (default) format of output from`size':$ size --format=Berkeley ranlib sizetext data bss dec hex filename294880 81920 11592 388392 5ed28 ranlib294880 81920 11888 388688 5ee50 sizeThis is the same data, but displayed closer to System Vconventions:$ size --format=SysV ranlib sizeranlib :section size addr.text 294880 8192.data 81920 303104.bss 11592 385024Total 388392size :section size addr.text 294880 8192.data 81920 303104.bss 11888 385024Total 388688`--help'Show a summary of acceptable arguments and options.`-d'`-o'`-x'`--radix=NUMBER'Using one of these options, you can control whether the size ofeach section is given in decimal (`-d', or `--radix=10'); octal(`-o', or `--radix=8'); or hexadecimal (`-x', or `--radix=16').In `--radix=NUMBER', only the three values (8, 10, 16) aresupported. The total size is always given in two radices; decimaland hexadecimal for `-d' or `-x' output, or octal and hexadecimalif you're using `-o'.`--common'Print total size of common symbols in each file. When usingBerkeley format these are included in the bss size.`-t'`--totals'Show totals of all objects listed (Berkeley format listing modeonly).`--target=BFDNAME'Specify that the object-code format for OBJFILE is BFDNAME. Thisoption may not be necessary; `size' can automatically recognizemany formats. *Note Target Selection::, for more information.`-V'`--version'Display the version number of `size'.File: binutils.info, Node: strings, Next: strip, Prev: size, Up: Top7 strings*********strings [`-afovV'] [`-'MIN-LEN][`-n' MIN-LEN] [`--bytes='MIN-LEN][`-t' RADIX] [`--radix='RADIX][`-e' ENCODING] [`--encoding='ENCODING][`-'] [`--all'] [`--print-file-name'][`-T' BFDNAME] [`--target='BFDNAME][`--help'] [`--version'] FILE...For each FILE given, GNU `strings' prints the printable charactersequences that are at least 4 characters long (or the number given withthe options below) and are followed by an unprintable character. Bydefault, it only prints the strings from the initialized and loadedsections of object files; for other types of files, it prints thestrings from the whole file.`strings' is mainly useful for determining the contents of non-textfiles.`-a'`--all'`-'Do not scan only the initialized and loaded sections of objectfiles; scan the whole files.`-f'`--print-file-name'Print the name of the file before each string.`--help'Print a summary of the program usage on the standard output andexit.`-MIN-LEN'`-n MIN-LEN'`--bytes=MIN-LEN'Print sequences of characters that are at least MIN-LEN characterslong, instead of the default 4.`-o'Like `-t o'. Some other versions of `strings' have `-o' act like`-t d' instead. Since we can not be compatible with both ways, wesimply chose one.`-t RADIX'`--radix=RADIX'Print the offset within the file before each string. The singlecharacter argument specifies the radix of the offset--`o' foroctal, `x' for hexadecimal, or `d' for decimal.`-e ENCODING'`--encoding=ENCODING'Select the character encoding of the strings that are to be found.Possible values for ENCODING are: `s' = single-7-bit-bytecharacters (ASCII, ISO 8859, etc., default), `S' =single-8-bit-byte characters, `b' = 16-bit bigendian, `l' = 16-bitlittleendian, `B' = 32-bit bigendian, `L' = 32-bit littleendian.Useful for finding wide character strings. (`l' and `b' apply to,for example, Unicode UTF-16/UCS-2 encodings).`-T BFDNAME'`--target=BFDNAME'Specify an object code format other than your system's defaultformat. *Note Target Selection::, for more information.`-v'`-V'`--version'Print the program version number on the standard output and exit.File: binutils.info, Node: strip, Next: c++filt, Prev: strings, Up: Top8 strip*******strip [`-F' BFDNAME |`--target='BFDNAME][`-I' BFDNAME |`--input-target='BFDNAME][`-O' BFDNAME |`--output-target='BFDNAME][`-s'|`--strip-all'][`-S'|`-g'|`-d'|`--strip-debug'][`-K' SYMBOLNAME |`--keep-symbol='SYMBOLNAME][`-N' SYMBOLNAME |`--strip-symbol='SYMBOLNAME][`-w'|`--wildcard'][`-x'|`--discard-all'] [`-X' |`--discard-locals'][`-R' SECTIONNAME |`--remove-section='SECTIONNAME][`-o' FILE] [`-p'|`--preserve-dates'][`--keep-file-symbols'][`--only-keep-debug'][`-v' |`--verbose'] [`-V'|`--version'][`--help'] [`--info']OBJFILE...GNU `strip' discards all symbols from object files OBJFILE. Thelist of object files may include archives. At least one object filemust be given.`strip' modifies the files named in its argument, rather thanwriting modified copies under different names.`-F BFDNAME'`--target=BFDNAME'Treat the original OBJFILE as a file with the object code formatBFDNAME, and rewrite it in the same format. *Note TargetSelection::, for more information.`--help'Show a summary of the options to `strip' and exit.`--info'Display a list showing all architectures and object formatsavailable.`-I BFDNAME'`--input-target=BFDNAME'Treat the original OBJFILE as a file with the object code formatBFDNAME. *Note Target Selection::, for more information.`-O BFDNAME'`--output-target=BFDNAME'Replace OBJFILE with a file in the output format BFDNAME. *NoteTarget Selection::, for more information.`-R SECTIONNAME'`--remove-section=SECTIONNAME'Remove any section named SECTIONNAME from the output file. Thisoption may be given more than once. Note that using this optioninappropriately may make the output file unusable.`-s'`--strip-all'Remove all symbols.`-g'`-S'`-d'`--strip-debug'Remove debugging symbols only.`--strip-unneeded'Remove all symbols that are not needed for relocation processing.`-K SYMBOLNAME'`--keep-symbol=SYMBOLNAME'When stripping symbols, keep symbol SYMBOLNAME even if it wouldnormally be stripped. This option may be given more than once.`-N SYMBOLNAME'`--strip-symbol=SYMBOLNAME'Remove symbol SYMBOLNAME from the source file. This option may begiven more than once, and may be combined with strip options otherthan `-K'.`-o FILE'Put the stripped output in FILE, rather than replacing theexisting file. When this argument is used, only one OBJFILEargument may be specified.`-p'`--preserve-dates'Preserve the access and modification dates of the file.`-w'`--wildcard'Permit regular expressions in SYMBOLNAMEs used in other commandline options. The question mark (?), asterisk (*), backslash (\)and square brackets ([]) operators can be used anywhere in thesymbol name. If the first character of the symbol name is theexclamation point (!) then the sense of the switch is reversed forthat symbol. For example:-w -K !foo -K fo*would cause strip to only keep symbols that start with the letters"fo", but to discard the symbol "foo".`-x'`--discard-all'Remove non-global symbols.`-X'`--discard-locals'Remove compiler-generated local symbols. (These usually startwith `L' or `.'.)`--keep-file-symbols'When stripping a file, perhaps with `--strip-debug' or`--strip-unneeded', retain any symbols specifying source filenames, which would otherwise get stripped.`--only-keep-debug'Strip a file, removing contents of any sections that would not bestripped by `--strip-debug' and leaving the debugging sectionsintact. In ELF files, this preserves all note sections in theoutput.The intention is that this option will be used in conjunction with`--add-gnu-debuglink' to create a two part executable. One astripped binary which will occupy less space in RAM and in adistribution and the second a debugging information file which isonly needed if debugging abilities are required. The suggestedprocedure to create these files is as follows:1. Link the executable as normal. Assuming that is is called`foo' then...2. Run `objcopy --only-keep-debug foo foo.dbg' to create a filecontaining the debugging info.3. Run `objcopy --strip-debug foo' to create a strippedexecutable.4. Run `objcopy --add-gnu-debuglink=foo.dbg foo' to add a linkto the debugging info into the stripped executable.Note--the choice of `.dbg' as an extension for the debug info fileis arbitrary. Also the `--only-keep-debug' step is optional. Youcould instead do this:1. Link the executable as normal.2. Copy `foo' to `foo.full'3. Run `strip --strip-debug foo'4. Run `objcopy --add-gnu-debuglink=foo.full foo'i.e., the file pointed to by the `--add-gnu-debuglink' can be thefull executable. It does not have to be a file created by the`--only-keep-debug' switch.Note--this switch is only intended for use on fully linked files.It does not make sense to use it on object files where thedebugging information may be incomplete. Besides thegnu_debuglink feature currently only supports the presence of onefilename containing debugging information, not multiple filenameson a one-per-object-file basis.`-V'`--version'Show the version number for `strip'.`-v'`--verbose'Verbose output: list all object files modified. In the case ofarchives, `strip -v' lists all members of the archive.File: binutils.info, Node: c++filt, Next: addr2line, Prev: strip, Up: Top9 c++filt*********c++filt [`-_'|`--strip-underscores'][`-n'|`--no-strip-underscores'][`-p'|`--no-params'][`-t'|`--types'][`-i'|`--no-verbose'][`-s' FORMAT|`--format='FORMAT][`--help'] [`--version'] [SYMBOL...]The C++ and Java languages provide function overloading, which meansthat you can write many functions with the same name, providing thateach function takes parameters of different types. In order to be ableto distinguish these similarly named functions C++ and Java encode theminto a low-level assembler name which uniquely identifies eachdifferent version. This process is known as "mangling". The `c++filt'(1) program does the inverse mapping: it decodes ("demangles") low-levelnames into user-level names so that they can be read.Every alphanumeric word (consisting of letters, digits, underscores,dollars, or periods) seen in the input is a potential mangled name. Ifthe name decodes into a C++ name, the C++ name replaces the low-levelname in the output, otherwise the original word is output. In this wayyou can pass an entire assembler source file, containing mangled names,through `c++filt' and see the same source file containing demanglednames.You can also use `c++filt' to decipher individual symbols by passingthem on the command line:c++filt SYMBOLIf no SYMBOL arguments are given, `c++filt' reads symbol names fromthe standard input instead. All the results are printed on thestandard output. The difference between reading names from the commandline versus reading names from the standard input is that command linearguments are expected to be just mangled names and no checking isperformed to separate them from surrounding text. Thus for example:c++filt -n _Z1fvwill work and demangle the name to "f()" whereas:c++filt -n _Z1fv,will not work. (Note the extra comma at the end of the mangled namewhich makes it invalid). This command however will work:echo _Z1fv, | c++filt -nand will display "f(),", i.e., the demangled name followed by atrailing comma. This behaviour is because when the names are read fromthe standard input it is expected that they might be part of anassembler source file where there might be extra, extraneous characterstrailing after a mangled name. For example:.type _Z1fv, @function`-_'`--strip-underscores'On some systems, both the C and C++ compilers put an underscore infront of every name. For example, the C name `foo' gets thelow-level name `_foo'. This option removes the initialunderscore. Whether `c++filt' removes the underscore by defaultis target dependent.`-n'`--no-strip-underscores'Do not remove the initial underscore.`-p'`--no-params'When demangling the name of a function, do not display the types ofthe function's parameters.`-t'`--types'Attempt to demangle types as well as function names. This isdisabled by default since mangled types are normally only usedinternally in the compiler, and they can be confused withnon-mangled names. For example, a function called "a" treated asa mangled type name would be demangled to "signed char".`-i'`--no-verbose'Do not include implementation details (if any) in the demangledoutput.`-s FORMAT'`--format=FORMAT'`c++filt' can decode various methods of mangling, used bydifferent compilers. The argument to this option selects whichmethod it uses:`auto'Automatic selection based on executable (the default method)`gnu'the one used by the GNU C++ compiler (g++)`lucid'the one used by the Lucid compiler (lcc)`arm'the one specified by the C++ Annotated Reference Manual`hp'the one used by the HP compiler (aCC)`edg'the one used by the EDG compiler`gnu-v3'the one used by the GNU C++ compiler (g++) with the V3 ABI.`java'the one used by the GNU Java compiler (gcj)`gnat'the one used by the GNU Ada compiler (GNAT).`--help'Print a summary of the options to `c++filt' and exit.`--version'Print the version number of `c++filt' and exit._Warning:_ `c++filt' is a new utility, and the details of its userinterface are subject to change in future releases. In particular,a command-line option may be required in the future to decode aname passed as an argument on the command line; in other words,c++filt SYMBOLmay in a future release becomec++filt OPTION SYMBOL---------- Footnotes ----------(1) MS-DOS does not allow `+' characters in file names, so on MS-DOSthis program is named `CXXFILT'.File: binutils.info, Node: addr2line, Next: nlmconv, Prev: c++filt, Up: Top10 addr2line************addr2line [`-b' BFDNAME|`--target='BFDNAME][`-C'|`--demangle'[=STYLE]][`-e' FILENAME|`--exe='FILENAME][`-f'|`--functions'] [`-s'|`--basename'][`-i'|`--inlines'][`-j'|`--section='NAME][`-H'|`--help'] [`-V'|`--version'][addr addr ...]`addr2line' translates addresses into file names and line numbers.Given an address in an executable or an offset in a section of arelocatable object, it uses the debugging information to figure outwhich file name and line number are associated with it.The executable or relocatable object to use is specified with the`-e' option. The default is the file `a.out'. The section in therelocatable object to use is specified with the `-j' option.`addr2line' has two modes of operation.In the first, hexadecimal addresses are specified on the commandline, and `addr2line' displays the file name and line number for eachaddress.In the second, `addr2line' reads hexadecimal addresses from standardinput, and prints the file name and line number for each address onstandard output. In this mode, `addr2line' may be used in a pipe toconvert dynamically chosen addresses.The format of the output is `FILENAME:LINENO'. The file name andline number for each address is printed on a separate line. If the`-f' option is used, then each `FILENAME:LINENO' line is preceded by a`FUNCTIONNAME' line which is the name of the function containing theaddress.If the file name or function name can not be determined, `addr2line'will print two question marks in their place. If the line number cannot be determined, `addr2line' will print 0.The long and short forms of options, shown here as alternatives, areequivalent.`-b BFDNAME'`--target=BFDNAME'Specify that the object-code format for the object files isBFDNAME.`-C'`--demangle[=STYLE]'Decode ("demangle") low-level symbol names into user-level names.Besides removing any initial underscore prepended by the system,this makes C++ function names readable. Different compilers havedifferent mangling styles. The optional demangling style argumentcan be used to choose an appropriate demangling style for yourcompiler. *Note c++filt::, for more information on demangling.`-e FILENAME'`--exe=FILENAME'Specify the name of the executable for which addresses should betranslated. The default file is `a.out'.`-f'`--functions'Display function names as well as file and line number information.`-s'`--basenames'Display only the base of each file name.`-i'`--inlines'If the address belongs to a function that was inlined, the sourceinformation for all enclosing scopes back to the first non-inlinedfunction will also be printed. For example, if `main' inlines`callee1' which inlines `callee2', and address is from `callee2',the source information for `callee1' and `main' will also beprinted.`-j'`--section'Read offsets relative to the specified section instead of absoluteaddresses.File: binutils.info, Node: nlmconv, Next: windres, Prev: addr2line, Up: Top11 nlmconv**********`nlmconv' converts a relocatable object file into a NetWare LoadableModule._Warning:_ `nlmconv' is not always built as part of the binaryutilities, since it is only useful for NLM targets.nlmconv [`-I' BFDNAME|`--input-target='BFDNAME][`-O' BFDNAME|`--output-target='BFDNAME][`-T' HEADERFILE|`--header-file='HEADERFILE][`-d'|`--debug'] [`-l' LINKER|`--linker='LINKER][`-h'|`--help'] [`-V'|`--version']INFILE OUTFILE`nlmconv' converts the relocatable `i386' object file INFILE intothe NetWare Loadable Module OUTFILE, optionally reading HEADERFILE forNLM header information. For instructions on writing the NLM commandfile language used in header files, see the `linkers' section,`NLMLINK' in particular, of the `NLM Development and Tools Overview',which is part of the NLM Software Developer's Kit ("NLM SDK"),available from Novell, Inc. `nlmconv' uses the GNU Binary FileDescriptor library to read INFILE; see *Note BFD: (ld.info)BFD, formore information.`nlmconv' can perform a link step. In other words, you can listmore than one object file for input if you list them in the definitionsfile (rather than simply specifying one input file on the command line).In this case, `nlmconv' calls the linker for you.`-I BFDNAME'`--input-target=BFDNAME'Object format of the input file. `nlmconv' can usually determinethe format of a given file (so no default is necessary). *NoteTarget Selection::, for more information.`-O BFDNAME'`--output-target=BFDNAME'Object format of the output file. `nlmconv' infers the outputformat based on the input format, e.g. for a `i386' input file theoutput format is `nlm32-i386'. *Note Target Selection::, for moreinformation.`-T HEADERFILE'`--header-file=HEADERFILE'Reads HEADERFILE for NLM header information. For instructions onwriting the NLM command file language used in header files, seesee the `linkers' section, of the `NLM Development and ToolsOverview', which is part of the NLM Software Developer's Kit,available from Novell, Inc.`-d'`--debug'Displays (on standard error) the linker command line used by`nlmconv'.`-l LINKER'`--linker=LINKER'Use LINKER for any linking. LINKER can be an absolute or arelative pathname.`-h'`--help'Prints a usage summary.`-V'`--version'Prints the version number for `nlmconv'.File: binutils.info, Node: windmc, Next: dlltool, Prev: windres, Up: Top12 windmc*********`windmc' may be used to generator Windows message resources._Warning:_ `windmc' is not always built as part of the binaryutilities, since it is only useful for Windows targets.windmc [options] input-file`windmc' reads message definitions from an input file (.mc) andtranslate them into a set of output files. The output files may be offour kinds:`h'A C header file containing the message definitions.`rc'A resource file compilable by the `windres' tool.`bin'One or more binary files containing the resource data for aspecific message language.`dbg'A C include file that maps message id's to their symbolic name.The exact description of these different formats is available indocumentation from Microsoft.When `windmc' converts from the `mc' format to the `bin' format,`rc', `h', and optional `dbg' it is acting like the Windows MessageCompiler.`-a'`--ascii_in'Specifies that the input file specified is ANSI. This is thedefault behaviour.`-A'`--ascii_out'Specifies that messages in the output `bin' files should be in ANSIformat.`-b'`--binprefix'Specifies that `bin' filenames should have to be prefixed by thebasename of the source file.`-c'`--customflag'Sets the customer bit in all message id's.`-C CODEPAGE'`--codepage_in CODEPAGE'Sets the default codepage to be used to convert input file toUTF16. The default is ocdepage 1252.`-d'`--decimal_values'Outputs the constants in the header file in decimal. Default isusing hexadecimal output.`-e EXT'`--extension EXT'The extension for the header file. The default is .h extension.`-F TARGET'`--target TARGET'Specify the BFD format to use for a bin file as output. This is aBFD target name; you can use the `--help' option to see a list ofsupported targets. Normally `windmc' will use the default format,which is the first one listed by the `--help' option. *NoteTarget Selection::.`-h PATH'`--headerdir PATH'The target directory of the generated header file. The default isthe current directory.`-H'`--help'Displays a list of command line options and then exits.`-m CHARACTERS'`--maxlength CHARACTERS'Instructs `windmc' to generate a warning if the length of anymessage exceeds the number specified.`-n'`--nullterminate'Terminate message text in `bin' files by zero. By default they areterminated by CR/LF.`-o'`--hresult_use'Not yet implemented. Instructs `windmc' to generate an OLE2 headerfile, using HRESULT definitions. Status codes are used if the flagis not specified.`-O CODEPAGE'`--codepage_out CODEPAGE'Sets the default codepage to be used to output text files. Thedefault is ocdepage 1252.`-r PATH'`--rcdir PATH'The target directory for the generated `rc' script and thegenerated `bin' files that the resource compiler script includes.The default is the current directory.`-u'`--unicode_in'Specifies that the input file is UTF16.`-U'`--unicode_out'Specifies that messages in the output `bin' file should be in UTF16format. This is the default behaviour.`-v'`--verbose'Enable verbose mode.`-V'`--version'Prints the version number for `windmc'.`-x PATH'`--xdgb PATH'The path of the `dbg' C include file that maps message id's to thesymbolic name. No such file is generated without specifying theswitch.File: binutils.info, Node: windres, Next: windmc, Prev: nlmconv, Up: Top13 windres**********`windres' may be used to manipulate Windows resources._Warning:_ `windres' is not always built as part of the binaryutilities, since it is only useful for Windows targets.windres [options] [input-file] [output-file]`windres' reads resources from an input file and copies them into anoutput file. Either file may be in one of three formats:`rc'A text format read by the Resource Compiler.`res'A binary format generated by the Resource Compiler.`coff'A COFF object or executable.The exact description of these different formats is available indocumentation from Microsoft.When `windres' converts from the `rc' format to the `res' format, itis acting like the Windows Resource Compiler. When `windres' convertsfrom the `res' format to the `coff' format, it is acting like theWindows `CVTRES' program.When `windres' generates an `rc' file, the output is similar but notidentical to the format expected for the input. When an input `rc'file refers to an external filename, an output `rc' file will insteadinclude the file contents.If the input or output format is not specified, `windres' will guessbased on the file name, or, for the input file, the file contents. Afile with an extension of `.rc' will be treated as an `rc' file, a filewith an extension of `.res' will be treated as a `res' file, and a filewith an extension of `.o' or `.exe' will be treated as a `coff' file.If no output file is specified, `windres' will print the resourcesin `rc' format to standard output.The normal use is for you to write an `rc' file, use `windres' toconvert it to a COFF object file, and then link the COFF file into yourapplication. This will make the resources described in the `rc' fileavailable to Windows.`-i FILENAME'`--input FILENAME'The name of the input file. If this option is not used, then`windres' will use the first non-option argument as the input filename. If there are no non-option arguments, then `windres' willread from standard input. `windres' can not read a COFF file fromstandard input.`-o FILENAME'`--output FILENAME'The name of the output file. If this option is not used, then`windres' will use the first non-option argument, after any usedfor the input file name, as the output file name. If there is nonon-option argument, then `windres' will write to standard output.`windres' can not write a COFF file to standard output. Note, forcompatibility with `rc' the option `-fo' is also accepted, but itsuse is not recommended.`-J FORMAT'`--input-format FORMAT'The input format to read. FORMAT may be `res', `rc', or `coff'.If no input format is specified, `windres' will guess, asdescribed above.`-O FORMAT'`--output-format FORMAT'The output format to generate. FORMAT may be `res', `rc', or`coff'. If no output format is specified, `windres' will guess,as described above.`-F TARGET'`--target TARGET'Specify the BFD format to use for a COFF file as input or output.This is a BFD target name; you can use the `--help' option to seea list of supported targets. Normally `windres' will use thedefault format, which is the first one listed by the `--help'option. *Note Target Selection::.`--preprocessor PROGRAM'When `windres' reads an `rc' file, it runs it through the Cpreprocessor first. This option may be used to specify thepreprocessor to use, including any leading arguments. The defaultpreprocessor argument is `gcc -E -xc-header -DRC_INVOKED'.`-I DIRECTORY'`--include-dir DIRECTORY'Specify an include directory to use when reading an `rc' file.`windres' will pass this to the preprocessor as an `-I' option.`windres' will also search this directory when looking for filesnamed in the `rc' file. If the argument passed to this commandmatches any of the supported FORMATS (as described in the `-J'option), it will issue a deprecation warning, and behave just likethe `-J' option. New programs should not use this behaviour. If adirectory happens to match a FORMAT, simple prefix it with `./' todisable the backward compatibility.`-D TARGET'`--define SYM[=VAL]'Specify a `-D' option to pass to the preprocessor when reading an`rc' file.`-U TARGET'`--undefine SYM'Specify a `-U' option to pass to the preprocessor when reading an`rc' file.`-r'Ignored for compatibility with rc.`-v'Enable verbose mode. This tells you what the preprocessor is ifyou didn't specify one.`-c VAL'`--codepage VAL'Specify the default codepage to use when reading an `rc' file.VAL should be a hexadecimal prefixed by `0x' or decimal codepagecode. The valid range is from zero up to 0xffff, but the validityof the codepage is host and configuration dependent.`-l VAL'`--language VAL'Specify the default language to use when reading an `rc' file.VAL should be a hexadecimal language code. The low eight bits arethe language, and the high eight bits are the sublanguage.`--use-temp-file'Use a temporary file to instead of using popen to read the outputof the preprocessor. Use this option if the popen implementationis buggy on the host (eg., certain non-English language versionsof Windows 95 and Windows 98 are known to have buggy popen wherethe output will instead go the console).`--no-use-temp-file'Use popen, not a temporary file, to read the output of thepreprocessor. This is the default behaviour.`-h'`--help'Prints a usage summary.`-V'`--version'Prints the version number for `windres'.`--yydebug'If `windres' is compiled with `YYDEBUG' defined as `1', this willturn on parser debugging.File: binutils.info, Node: dlltool, Next: Common Options, Prev: windmc, Up: Top14 dlltool**********`dlltool' is used to create the files needed to create dynamic linklibraries (DLLs) on systems which understand PE format image files suchas Windows. A DLL contains an export table which contains informationthat the runtime loader needs to resolve references from a referencingprogram.The export table is generated by this program by reading in a `.def'file or scanning the `.a' and `.o' files which will be in the DLL. A`.o' file can contain information in special `.drectve' sections withexport information._Note:_ `dlltool' is not always built as part of the binaryutilities, since it is only useful for those targets which supportDLLs.dlltool [`-d'|`--input-def' DEF-FILE-NAME][`-b'|`--base-file' BASE-FILE-NAME][`-e'|`--output-exp' EXPORTS-FILE-NAME][`-z'|`--output-def' DEF-FILE-NAME][`-l'|`--output-lib' LIBRARY-FILE-NAME][`-y'|`--output-delaylib' LIBRARY-FILE-NAME][`--export-all-symbols'] [`--no-export-all-symbols'][`--exclude-symbols' LIST][`--no-default-excludes'][`-S'|`--as' PATH-TO-ASSEMBLER] [`-f'|`--as-flags' OPTIONS][`-D'|`--dllname' NAME] [`-m'|`--machine' MACHINE][`-a'|`--add-indirect'][`-U'|`--add-underscore'] [`--add-stdcall-underscore'][`-k'|`--kill-at'] [`-A'|`--add-stdcall-alias'][`-p'|`--ext-prefix-alias' PREFIX][`-x'|`--no-idata4'] [`-c'|`--no-idata5'][`--use-nul-prefixed-import-tables'][`-I'|`--identify' LIBRARY-FILE-NAME] [`--identify-strict'][`-i'|`--interwork'][`-n'|`--nodelete'] [`-t'|`--temp-prefix' PREFIX][`-v'|`--verbose'][`-h'|`--help'] [`-V'|`--version'][object-file ...]`dlltool' reads its inputs, which can come from the `-d' and `-b'options as well as object files specified on the command line. It thenprocesses these inputs and if the `-e' option has been specified itcreates a exports file. If the `-l' option has been specified itcreates a library file and if the `-z' option has been specified itcreates a def file. Any or all of the `-e', `-l' and `-z' options canbe present in one invocation of dlltool.When creating a DLL, along with the source for the DLL, it isnecessary to have three other files. `dlltool' can help with thecreation of these files.The first file is a `.def' file which specifies which functions areexported from the DLL, which functions the DLL imports, and so on. Thisis a text file and can be created by hand, or `dlltool' can be used tocreate it using the `-z' option. In this case `dlltool' will scan theobject files specified on its command line looking for those functionswhich have been specially marked as being exported and put entries forthem in the `.def' file it creates.In order to mark a function as being exported from a DLL, it needs tohave an `-export:<name_of_function>' entry in the `.drectve' section ofthe object file. This can be done in C by using the asm() operator:asm (".section .drectve");asm (".ascii \"-export:my_func\"");int my_func (void) { ... }The second file needed for DLL creation is an exports file. Thisfile is linked with the object files that make up the body of the DLLand it handles the interface between the DLL and the outside world.This is a binary file and it can be created by giving the `-e' option to`dlltool' when it is creating or reading in a `.def' file.The third file needed for DLL creation is the library file thatprograms will link with in order to access the functions in the DLL (an`import library'). This file can be created by giving the `-l' optionto dlltool when it is creating or reading in a `.def' file.If the `-y' option is specified, dlltool generates a delay-importlibrary that can be used instead of the normal import library to allowa program to link to the dll only as soon as an imported function iscalled for the first time. The resulting executable will need to belinked to the static delayimp library containing __delayLoadHelper2(),which in turn will import LoadLibraryA and GetProcAddress from kernel32.`dlltool' builds the library file by hand, but it builds the exportsfile by creating temporary files containing assembler statements andthen assembling these. The `-S' command line option can be used tospecify the path to the assembler that dlltool will use, and the `-f'option can be used to pass specific flags to that assembler. The `-n'can be used to prevent dlltool from deleting these temporary assemblerfiles when it is done, and if `-n' is specified twice then this willprevent dlltool from deleting the temporary object files it used tobuild the library.Here is an example of creating a DLL from a source file `dll.c' andalso creating a program (from an object file called `program.o') thatuses that DLL:gcc -c dll.cdlltool -e exports.o -l dll.lib dll.ogcc dll.o exports.o -o dll.dllgcc program.o dll.lib -o program`dlltool' may also be used to query an existing import library todetermine the name of the DLL to which it is associated. See thedescription of the `-I' or `--identify' option.The command line options have the following meanings:`-d FILENAME'`--input-def FILENAME'Specifies the name of a `.def' file to be read in and processed.`-b FILENAME'`--base-file FILENAME'Specifies the name of a base file to be read in and processed. Thecontents of this file will be added to the relocation section inthe exports file generated by dlltool.`-e FILENAME'`--output-exp FILENAME'Specifies the name of the export file to be created by dlltool.`-z FILENAME'`--output-def FILENAME'Specifies the name of the `.def' file to be created by dlltool.`-l FILENAME'`--output-lib FILENAME'Specifies the name of the library file to be created by dlltool.`-y FILENAME'`--output-delaylib FILENAME'Specifies the name of the delay-import library file to be createdby dlltool.`--export-all-symbols'Treat all global and weak defined symbols found in the input objectfiles as symbols to be exported. There is a small list of symbolswhich are not exported by default; see the `--no-default-excludes'option. You may add to the list of symbols to not export by usingthe `--exclude-symbols' option.`--no-export-all-symbols'Only export symbols explicitly listed in an input `.def' file or in`.drectve' sections in the input object files. This is the defaultbehaviour. The `.drectve' sections are created by `dllexport'attributes in the source code.`--exclude-symbols LIST'Do not export the symbols in LIST. This is a list of symbol namesseparated by comma or colon characters. The symbol names shouldnot contain a leading underscore. This is only meaningful when`--export-all-symbols' is used.`--no-default-excludes'When `--export-all-symbols' is used, it will by default avoidexporting certain special symbols. The current list of symbols toavoid exporting is `DllMain@12', `DllEntryPoint@0', `impure_ptr'.You may use the `--no-default-excludes' option to go ahead andexport these special symbols. This is only meaningful when`--export-all-symbols' is used.`-S PATH'`--as PATH'Specifies the path, including the filename, of the assembler to beused to create the exports file.`-f OPTIONS'`--as-flags OPTIONS'Specifies any specific command line options to be passed to theassembler when building the exports file. This option will workeven if the `-S' option is not used. This option only takes oneargument, and if it occurs more than once on the command line,then later occurrences will override earlier occurrences. So ifit is necessary to pass multiple options to the assembler theyshould be enclosed in double quotes.`-D NAME'`--dll-name NAME'Specifies the name to be stored in the `.def' file as the name ofthe DLL when the `-e' option is used. If this option is notpresent, then the filename given to the `-e' option will be usedas the name of the DLL.`-m MACHINE'`-machine MACHINE'Specifies the type of machine for which the library file should bebuilt. `dlltool' has a built in default type, depending upon howit was created, but this option can be used to override that.This is normally only useful when creating DLLs for an ARMprocessor, when the contents of the DLL are actually encode usingThumb instructions.`-a'`--add-indirect'Specifies that when `dlltool' is creating the exports file itshould add a section which allows the exported functions to bereferenced without using the import library. Whatever the hellthat means!`-U'`--add-underscore'Specifies that when `dlltool' is creating the exports file itshould prepend an underscore to the names of _all_ exportedsymbols.`--add-stdcall-underscore'Specifies that when `dlltool' is creating the exports file itshould prepend an underscore to the names of exported _stdcall_functions. Variable names and non-stdcall function names are notmodified. This option is useful when creating GNU-compatibleimport libs for third party DLLs that were built with MS-Windowstools.`-k'`--kill-at'Specifies that when `dlltool' is creating the exports file itshould not append the string `@ <number>'. These numbers arecalled ordinal numbers and they represent another way of accessingthe function in a DLL, other than by name.`-A'`--add-stdcall-alias'Specifies that when `dlltool' is creating the exports file itshould add aliases for stdcall symbols without `@ <number>' inaddition to the symbols with `@ <number>'.`-p'`--ext-prefix-alias PREFIX'Causes `dlltool' to create external aliases for all DLL importswith the specified prefix. The aliases are created for bothexternal and import symbols with no leading underscore.`-x'`--no-idata4'Specifies that when `dlltool' is creating the exports and libraryfiles it should omit the `.idata4' section. This is forcompatibility with certain operating systems.`--use-nul-prefixed-import-tables'Specifies that when `dlltool' is creating the exports and libraryfiles it should prefix the `.idata4' and `.idata5' by zero anelement. This emulates old gnu import library generation of`dlltool'. By default this option is turned off.`-c'`--no-idata5'Specifies that when `dlltool' is creating the exports and libraryfiles it should omit the `.idata5' section. This is forcompatibility with certain operating systems.`-I FILENAME'`--identify FILENAME'Specifies that `dlltool' should inspect the import libraryindicated by FILENAME and report, on `stdout', the name(s) of theassociated DLL(s). This can be performed in addition to any otheroperations indicated by the other options and arguments.`dlltool' fails if the import library does not exist or is notactually an import library. See also `--identify-strict'.`--identify-strict'Modifies the behavior of the `--identify' option, such that anerror is reported if FILENAME is associated with more than one DLL.`-i'`--interwork'Specifies that `dlltool' should mark the objects in the libraryfile and exports file that it produces as supporting interworkingbetween ARM and Thumb code.`-n'`--nodelete'Makes `dlltool' preserve the temporary assembler files it used tocreate the exports file. If this option is repeated then dlltoolwill also preserve the temporary object files it uses to createthe library file.`-t PREFIX'`--temp-prefix PREFIX'Makes `dlltool' use PREFIX when constructing the names oftemporary assembler and object files. By default, the temp fileprefix is generated from the pid.`-v'`--verbose'Make dlltool describe what it is doing.`-h'`--help'Displays a list of command line options and then exits.`-V'`--version'Displays dlltool's version number and then exits.* Menu:* def file format:: The format of the dlltool `.def' fileFile: binutils.info, Node: def file format, Up: dlltool14.1 The format of the `dlltool' `.def' file============================================A `.def' file contains any number of the following commands:`NAME' NAME `[ ,' BASE `]'The result is going to be named NAME`.exe'.`LIBRARY' NAME `[ ,' BASE `]'The result is going to be named NAME`.dll'.`EXPORTS ( ( (' NAME1 `[ = ' NAME2 `] ) | ( ' NAME1 `=' MODULE-NAME `.' EXTERNAL-NAME `) )'`[' INTEGER `] [ NONAME ] [ CONSTANT ] [ DATA ] [ PRIVATE ] ) *'Declares NAME1 as an exported symbol from the DLL, with optionalordinal number INTEGER, or declares NAME1 as an alias (forward) ofthe function EXTERNAL-NAME in the DLL MODULE-NAME.`IMPORTS ( (' INTERNAL-NAME `=' MODULE-NAME `.' INTEGER `) | [' INTERNAL-NAME `= ]' MODULE-NAME `.' EXTERNAL-NAME `) ) *'Declares that EXTERNAL-NAME or the exported function whose ordinalnumber is INTEGER is to be imported from the file MODULE-NAME. IfINTERNAL-NAME is specified then this is the name that the importedfunction will be referred to in the body of the DLL.`DESCRIPTION' STRINGPuts STRING into the output `.exp' file in the `.rdata' section.`STACKSIZE' NUMBER-RESERVE `[, ' NUMBER-COMMIT `]'`HEAPSIZE' NUMBER-RESERVE `[, ' NUMBER-COMMIT `]'Generates `--stack' or `--heap' NUMBER-RESERVE,NUMBER-COMMIT inthe output `.drectve' section. The linker will see this and actupon it.`CODE' ATTR `+'`DATA' ATTR `+'`SECTIONS (' SECTION-NAME ATTR` + ) *'Generates `--attr' SECTION-NAME ATTR in the output `.drectve'section, where ATTR is one of `READ', `WRITE', `EXECUTE' or`SHARED'. The linker will see this and act upon it.File: binutils.info, Node: readelf, Next: size, Prev: ranlib, Up: Top15 readelf**********readelf [`-a'|`--all'][`-h'|`--file-header'][`-l'|`--program-headers'|`--segments'][`-S'|`--section-headers'|`--sections'][`-g'|`--section-groups'][`-t'|`--section-details'][`-e'|`--headers'][`-s'|`--syms'|`--symbols'][`-n'|`--notes'][`-r'|`--relocs'][`-u'|`--unwind'][`-d'|`--dynamic'][`-V'|`--version-info'][`-A'|`--arch-specific'][`-D'|`--use-dynamic'][`-x' <number or name>|`--hex-dump='<number or name>][`-p' <number or name>|`--string-dump='<number or name>][`-R' <number or name>|`--relocated-dump='<number or name>][`-c'|`--archive-index'][`-w[lLiaprmfFsoR]'|`--debug-dump'[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]][`-I'|`-histogram'][`-v'|`--version'][`-W'|`--wide'][`-H'|`--help']ELFFILE...`readelf' displays information about one or more ELF format objectfiles. The options control what particular information to display.ELFFILE... are the object files to be examined. 32-bit and 64-bitELF files are supported, as are archives containing ELF files.This program performs a similar function to `objdump' but it goesinto more detail and it exists independently of the BFD library, so ifthere is a bug in BFD then readelf will not be affected.The long and short forms of options, shown here as alternatives, areequivalent. At least one option besides `-v' or `-H' must be given.`-a'`--all'Equivalent to specifying `--file-header', `--program-headers',`--sections', `--symbols', `--relocs', `--dynamic', `--notes' and`--version-info'.`-h'`--file-header'Displays the information contained in the ELF header at the startof the file.`-l'`--program-headers'`--segments'Displays the information contained in the file's segment headers,if it has any.`-S'`--sections'`--section-headers'Displays the information contained in the file's section headers,if it has any.`-g'`--section-groups'Displays the information contained in the file's section groups,if it has any.`-t'`--section-details'Displays the detailed section information. Implies `-S'.`-s'`--symbols'`--syms'Displays the entries in symbol table section of the file, if ithas one.`-e'`--headers'Display all the headers in the file. Equivalent to `-h -l -S'.`-n'`--notes'Displays the contents of the NOTE segments and/or sections, if any.`-r'`--relocs'Displays the contents of the file's relocation section, if it hasone.`-u'`--unwind'Displays the contents of the file's unwind section, if it has one.Only the unwind sections for IA64 ELF files are currentlysupported.`-d'`--dynamic'Displays the contents of the file's dynamic section, if it has one.`-V'`--version-info'Displays the contents of the version sections in the file, it theyexist.`-A'`--arch-specific'Displays architecture-specific information in the file, if thereis any.`-D'`--use-dynamic'When displaying symbols, this option makes `readelf' use thesymbol table in the file's dynamic section, rather than the one inthe symbols section.`-x <number or name>'`--hex-dump=<number or name>'Displays the contents of the indicated section as a hexadecimalbytes. A number identifies a particular section by index in thesection table; any other string identifies all sections with thatname in the object file.`-R <number or name>'`--relocated-dump=<number or name>'Displays the contents of the indicated section as a hexadecimalbytes. A number identifies a particular section by index in thesection table; any other string identifies all sections with thatname in the object file. The contents of the section will berelocated before they are displayed.`-p <number or name>'`--string-dump=<number or name>'Displays the contents of the indicated section as printablestrings. A number identifies a particular section by index in thesection table; any other string identifies all sections with thatname in the object file.`-c'`--archive-index'Displays the file symbol index infomation contained in the headerpart of binary archives. Performs the same function as the `t'command to `ar', but without using the BFD library. *Note ar::.`-w[lLiaprmfFsoR]'`--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]'Displays the contents of the debug sections in the file, if any arepresent. If one of the optional letters or words follows theswitch then only data found in those specific sections will bedumped.Note: the `=decodedline' option will display the interpretedcontents of a .debug_line section whereas the `=rawline' optiondumps the contents in a raw format.`-I'`--histogram'Display a histogram of bucket list lengths when displaying thecontents of the symbol tables.`-v'`--version'Display the version number of readelf.`-W'`--wide'Don't break output lines to fit into 80 columns. By default`readelf' breaks section header and segment listing lines for64-bit ELF files, so that they fit into 80 columns. This optioncauses `readelf' to print each section header resp. each segmentone a single line, which is far more readable on terminals widerthan 80 columns.`-H'`--help'Display the command line options understood by `readelf'.File: binutils.info, Node: Common Options, Next: Selecting the Target System, Prev: dlltool, Up: Top16 Common Options*****************The following command-line options are supported by all of the programsdescribed in this manual.`@FILE'Read command-line options from FILE. The options read areinserted in place of the original @FILE option. If FILE does notexist, or cannot be read, then the option will be treatedliterally, and not removed.Options in FILE are separated by whitespace. A whitespacecharacter may be included in an option by surrounding the entireoption in either single or double quotes. Any character(including a backslash) may be included by prefixing the characterto be included with a backslash. The FILE may itself containadditional @FILE options; any such options will be processedrecursively.`--help'Display the command-line options supported by the program.`--version'Display the version number of the program.File: binutils.info, Node: Selecting the Target System, Next: Reporting Bugs, Prev: Common Options, Up: Top17 Selecting the Target System******************************You can specify two aspects of the target system to the GNU binary fileutilities, each in several ways:* the target* the architectureIn the following summaries, the lists of ways to specify values arein order of decreasing precedence. The ways listed first override thoselisted later.The commands to list valid values only list the values for which theprograms you are running were configured. If they were configured with`--enable-targets=all', the commands list most of the available values,but a few are left out; not all targets can be configured in at oncebecause some of them can only be configured "native" (on hosts with thesame type as the target system).* Menu:* Target Selection::* Architecture Selection::File: binutils.info, Node: Target Selection, Next: Architecture Selection, Up: Selecting the Target System17.1 Target Selection=====================A "target" is an object file format. A given target may be supportedfor multiple architectures (*note Architecture Selection::). A targetselection may also have variations for different operating systems orarchitectures.The command to list valid target values is `objdump -i' (the firstcolumn of output contains the relevant information).Some sample values are: `a.out-hp300bsd', `ecoff-littlemips',`a.out-sunos-big'.You can also specify a target using a configuration triplet. This isthe same sort of name that is passed to `configure' to specify atarget. When you use a configuration triplet as an argument, it must befully canonicalized. You can see the canonical version of a triplet byrunning the shell script `config.sub' which is included with thesources.Some sample configuration triplets are: `m68k-hp-bsd',`mips-dec-ultrix', `sparc-sun-sunos'.`objdump' Target----------------Ways to specify:1. command line option: `-b' or `--target'2. environment variable `GNUTARGET'3. deduced from the input file`objcopy' and `strip' Input Target----------------------------------Ways to specify:1. command line options: `-I' or `--input-target', or `-F' or`--target'2. environment variable `GNUTARGET'3. deduced from the input file`objcopy' and `strip' Output Target-----------------------------------Ways to specify:1. command line options: `-O' or `--output-target', or `-F' or`--target'2. the input target (see "`objcopy' and `strip' Input Target" above)3. environment variable `GNUTARGET'4. deduced from the input file`nm', `size', and `strings' Target----------------------------------Ways to specify:1. command line option: `--target'2. environment variable `GNUTARGET'3. deduced from the input fileFile: binutils.info, Node: Architecture Selection, Prev: Target Selection, Up: Selecting the Target System17.2 Architecture Selection===========================An "architecture" is a type of CPU on which an object file is to run.Its name may contain a colon, separating the name of the processorfamily from the name of the particular CPU.The command to list valid architecture values is `objdump -i' (thesecond column contains the relevant information).Sample values: `m68k:68020', `mips:3000', `sparc'.`objdump' Architecture----------------------Ways to specify:1. command line option: `-m' or `--architecture'2. deduced from the input file`objcopy', `nm', `size', `strings' Architecture-----------------------------------------------Ways to specify:1. deduced from the input fileFile: binutils.info, Node: Reporting Bugs, Next: GNU Free Documentation License, Prev: Selecting the Target System, Up: Top18 Reporting Bugs*****************Your bug reports play an essential role in making the binary utilitiesreliable.Reporting a bug may help you by bringing a solution to your problem,or it may not. But in any case the principal function of a bug reportis to help the entire community by making the next version of the binaryutilities work better. Bug reports are your contribution to theirmaintenance.In order for a bug report to serve its purpose, you must include theinformation that enables us to fix the bug.* Menu:* Bug Criteria:: Have you found a bug?* Bug Reporting:: How to report bugsFile: binutils.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs18.1 Have You Found a Bug?==========================If you are not sure whether you have found a bug, here are someguidelines:* If a binary utility gets a fatal signal, for any input whatever,that is a bug. Reliable utilities never crash.* If a binary utility produces an error message for valid input,that is a bug.* If you are an experienced user of binary utilities, yoursuggestions for improvement are welcome in any case.File: binutils.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs18.2 How to Report Bugs=======================A number of companies and individuals offer support for GNU products.If you obtained the binary utilities from a support organization, werecommend you contact that organization first.You can find contact information for many support companies andindividuals in the file `etc/SERVICE' in the GNU Emacs distribution.In any event, we also recommend that you send bug reports for thebinary utilities to `http://www.sourceware.org/bugzilla/'.The fundamental principle of reporting bugs usefully is this:*report all the facts*. If you are not sure whether to state a fact orleave it out, state it!Often people omit facts because they think they know what causes theproblem and assume that some details do not matter. Thus, you mightassume that the name of a file you use in an example does not matter.Well, probably it does not, but one cannot be sure. Perhaps the bug isa stray memory reference which happens to fetch from the location wherethat pathname is stored in memory; perhaps, if the pathname weredifferent, the contents of that location would fool the utility intodoing the right thing despite the bug. Play it safe and give aspecific, complete example. That is the easiest thing for you to do,and the most helpful.Keep in mind that the purpose of a bug report is to enable us to fixthe bug if it is new to us. Therefore, always write your bug reportson the assumption that the bug has not been reported previously.Sometimes people give a few sketchy facts and ask, "Does this ring abell?" This cannot help us fix a bug, so it is basically useless. Werespond by asking for enough details to enable us to investigate. Youmight as well expedite matters by sending them to begin with.To enable us to fix the bug, you should include all these things:* The version of the utility. Each utility announces it if youstart it with the `--version' argument.Without this, we will not know whether there is any point inlooking for the bug in the current version of the binary utilities.* Any patches you may have applied to the source, including anypatches made to the `BFD' library.* The type of machine you are using, and the operating system nameand version number.* What compiler (and its version) was used to compile theutilities--e.g. "`gcc-2.7'".* The command arguments you gave the utility to observe the bug. Toguarantee you will not omit something important, list them all. Acopy of the Makefile (or the output from make) is sufficient.If we were to try to guess the arguments, we would probably guesswrong and then we might not encounter the bug.* A complete input file, or set of input files, that will reproducethe bug. If the utility is reading an object file or files, thenit is generally most helpful to send the actual object files.If the source files were produced exclusively using GNU programs(e.g., `gcc', `gas', and/or the GNU `ld'), then it may be OK tosend the source files rather than the object files. In this case,be sure to say exactly what version of `gcc', or whatever, wasused to produce the object files. Also say how `gcc', orwhatever, was configured.* A description of what behavior you observe that you believe isincorrect. For example, "It gets a fatal signal."Of course, if the bug is that the utility gets a fatal signal,then we will certainly notice it. But if the bug is incorrectoutput, we might not notice unless it is glaringly wrong. Youmight as well not give us a chance to make a mistake.Even if the problem you experience is a fatal signal, you shouldstill say so explicitly. Suppose something strange is going on,such as your copy of the utility is out of sync, or you haveencountered a bug in the C library on your system. (This hashappened!) Your copy might crash and ours would not. If you toldus to expect a crash, then when ours fails to crash, we would knowthat the bug was not happening for us. If you had not told us toexpect a crash, then we would not be able to draw any conclusionfrom our observations.* If you wish to suggest changes to the source, send us contextdiffs, as generated by `diff' with the `-u', `-c', or `-p' option.Always send diffs from the old file to the new file. If you wishto discuss something in the `ld' source, refer to it by context,not by line number.The line numbers in our development sources will not match thosein your sources. Your line numbers would convey no usefulinformation to us.Here are some things that are not necessary:* A description of the envelope of the bug.Often people who encounter a bug spend a lot of time investigatingwhich changes to the input file will make the bug go away and whichchanges will not affect it.This is often time consuming and not very useful, because the waywe will find the bug is by running a single example under thedebugger with breakpoints, not by pure deduction from a series ofexamples. We recommend that you save your time for something else.Of course, if you can find a simpler example to report _instead_of the original one, that is a convenience for us. Errors in theoutput will be easier to spot, running under the debugger will takeless time, and so on.However, simplification is not vital; if you do not want to dothis, report the bug anyway and send us the entire test case youused.* A patch for the bug.A patch for the bug does help us if it is a good one. But do notomit the necessary information, such as the test case, on theassumption that a patch is all we need. We might see problemswith your patch and decide to fix the problem another way, or wemight not understand it at all.Sometimes with programs as complicated as the binary utilities itis very hard to construct an example that will make the programfollow a certain path through the code. If you do not send us theexample, we will not be able to construct one, so we will not beable to verify that the bug is fixed.And if we cannot understand what bug you are trying to fix, or whyyour patch should be an improvement, we will not install it. Atest case will help us to understand.* A guess about what the bug is or what it depends on.Such guesses are usually wrong. Even we cannot guess right aboutsuch things without first using the debugger to find the facts.File: binutils.info, Node: GNU Free Documentation License, Next: Binutils Index, Prev: Reporting Bugs, Up: TopAppendix A GNU Free Documentation License*****************************************Version 1.3, 3 November 2008Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.`http://fsf.org/'Everyone is permitted to copy and distribute verbatim copiesof this license document, but changing it is not allowed.0. PREAMBLEThe purpose of this License is to make a manual, textbook, or otherfunctional and useful document "free" in the sense of freedom: toassure everyone the effective freedom to copy and redistribute it,with or without modifying it, either commercially ornoncommercially. Secondarily, this License preserves for theauthor and publisher a way to get credit for their work, while notbeing considered responsible for modifications made by others.This License is a kind of "copyleft", which means that derivativeworks of the document must themselves be free in the same sense.It complements the GNU General Public License, which is a copyleftlicense designed for free software.We have designed this License in order to use it for manuals forfree software, because free software needs free documentation: afree program should come with manuals providing the same freedomsthat the software does. But this License is not limited tosoftware manuals; it can be used for any textual work, regardlessof subject matter or whether it is published as a printed book.We recommend this License principally for works whose purpose isinstruction or reference.1. APPLICABILITY AND DEFINITIONSThis License applies to any manual or other work, in any medium,that contains a notice placed by the copyright holder saying itcan be distributed under the terms of this License. Such a noticegrants a world-wide, royalty-free license, unlimited in duration,to use that work under the conditions stated herein. The"Document", below, refers to any such manual or work. Any memberof the public is a licensee, and is addressed as "you". Youaccept the license if you copy, modify or distribute the work in away requiring permission under copyright law.A "Modified Version" of the Document means any work containing theDocument or a portion of it, either copied verbatim, or withmodifications and/or translated into another language.A "Secondary Section" is a named appendix or a front-matter sectionof the Document that deals exclusively with the relationship of thepublishers or authors of the Document to the Document's overallsubject (or to related matters) and contains nothing that couldfall directly within that overall subject. (Thus, if the Documentis in part a textbook of mathematics, a Secondary Section may notexplain any mathematics.) The relationship could be a matter ofhistorical connection with the subject or with related matters, orof legal, commercial, philosophical, ethical or political positionregarding them.The "Invariant Sections" are certain Secondary Sections whosetitles are designated, as being those of Invariant Sections, inthe notice that says that the Document is released under thisLicense. If a section does not fit the above definition ofSecondary then it is not allowed to be designated as Invariant.The Document may contain zero Invariant Sections. If the Documentdoes not identify any Invariant Sections then there are none.The "Cover Texts" are certain short passages of text that arelisted, as Front-Cover Texts or Back-Cover Texts, in the noticethat says that the Document is released under this License. AFront-Cover Text may be at most 5 words, and a Back-Cover Text maybe at most 25 words.A "Transparent" copy of the Document means a machine-readable copy,represented in a format whose specification is available to thegeneral public, that is suitable for revising the documentstraightforwardly with generic text editors or (for imagescomposed of pixels) generic paint programs or (for drawings) somewidely available drawing editor, and that is suitable for input totext formatters or for automatic translation to a variety offormats suitable for input to text formatters. A copy made in anotherwise Transparent file format whose markup, or absence ofmarkup, has been arranged to thwart or discourage subsequentmodification by readers is not Transparent. An image format isnot Transparent if used for any substantial amount of text. Acopy that is not "Transparent" is called "Opaque".Examples of suitable formats for Transparent copies include plainASCII without markup, Texinfo input format, LaTeX input format,SGML or XML using a publicly available DTD, andstandard-conforming simple HTML, PostScript or PDF designed forhuman modification. Examples of transparent image formats includePNG, XCF and JPG. Opaque formats include proprietary formats thatcan be read and edited only by proprietary word processors, SGML orXML for which the DTD and/or processing tools are not generallyavailable, and the machine-generated HTML, PostScript or PDFproduced by some word processors for output purposes only.The "Title Page" means, for a printed book, the title page itself,plus such following pages as are needed to hold, legibly, thematerial this License requires to appear in the title page. Forworks in formats which do not have any title page as such, "TitlePage" means the text near the most prominent appearance of thework's title, preceding the beginning of the body of the text.The "publisher" means any person or entity that distributes copiesof the Document to the public.A section "Entitled XYZ" means a named subunit of the Documentwhose title either is precisely XYZ or contains XYZ in parenthesesfollowing text that translates XYZ in another language. (Here XYZstands for a specific section name mentioned below, such as"Acknowledgements", "Dedications", "Endorsements", or "History".)To "Preserve the Title" of such a section when you modify theDocument means that it remains a section "Entitled XYZ" accordingto this definition.The Document may include Warranty Disclaimers next to the noticewhich states that this License applies to the Document. TheseWarranty Disclaimers are considered to be included by reference inthis License, but only as regards disclaiming warranties: any otherimplication that these Warranty Disclaimers may have is void andhas no effect on the meaning of this License.2. VERBATIM COPYINGYou may copy and distribute the Document in any medium, eithercommercially or noncommercially, provided that this License, thecopyright notices, and the license notice saying this Licenseapplies to the Document are reproduced in all copies, and that youadd no other conditions whatsoever to those of this License. Youmay not use technical measures to obstruct or control the readingor further copying of the copies you make or distribute. However,you may accept compensation in exchange for copies. If youdistribute a large enough number of copies you must also followthe conditions in section 3.You may also lend copies, under the same conditions stated above,and you may publicly display copies.3. COPYING IN QUANTITYIf you publish printed copies (or copies in media that commonlyhave printed covers) of the Document, numbering more than 100, andthe Document's license notice requires Cover Texts, you mustenclose the copies in covers that carry, clearly and legibly, allthese Cover Texts: Front-Cover Texts on the front cover, andBack-Cover Texts on the back cover. Both covers must also clearlyand legibly identify you as the publisher of these copies. Thefront cover must present the full title with all words of thetitle equally prominent and visible. You may add other materialon the covers in addition. Copying with changes limited to thecovers, as long as they preserve the title of the Document andsatisfy these conditions, can be treated as verbatim copying inother respects.If the required texts for either cover are too voluminous to fitlegibly, you should put the first ones listed (as many as fitreasonably) on the actual cover, and continue the rest ontoadjacent pages.If you publish or distribute Opaque copies of the Documentnumbering more than 100, you must either include amachine-readable Transparent copy along with each Opaque copy, orstate in or with each Opaque copy a computer-network location fromwhich the general network-using public has access to downloadusing public-standard network protocols a complete Transparentcopy of the Document, free of added material. If you use thelatter option, you must take reasonably prudent steps, when youbegin distribution of Opaque copies in quantity, to ensure thatthis Transparent copy will remain thus accessible at the statedlocation until at least one year after the last time youdistribute an Opaque copy (directly or through your agents orretailers) of that edition to the public.It is requested, but not required, that you contact the authors ofthe Document well before redistributing any large number ofcopies, to give them a chance to provide you with an updatedversion of the Document.4. MODIFICATIONSYou may copy and distribute a Modified Version of the Documentunder the conditions of sections 2 and 3 above, provided that yourelease the Modified Version under precisely this License, withthe Modified Version filling the role of the Document, thuslicensing distribution and modification of the Modified Version towhoever possesses a copy of it. In addition, you must do thesethings in the Modified Version:A. Use in the Title Page (and on the covers, if any) a titledistinct from that of the Document, and from those ofprevious versions (which should, if there were any, be listedin the History section of the Document). You may use thesame title as a previous version if the original publisher ofthat version gives permission.B. List on the Title Page, as authors, one or more persons orentities responsible for authorship of the modifications inthe Modified Version, together with at least five of theprincipal authors of the Document (all of its principalauthors, if it has fewer than five), unless they release youfrom this requirement.C. State on the Title page the name of the publisher of theModified Version, as the publisher.D. Preserve all the copyright notices of the Document.E. Add an appropriate copyright notice for your modificationsadjacent to the other copyright notices.F. Include, immediately after the copyright notices, a licensenotice giving the public permission to use the ModifiedVersion under the terms of this License, in the form shown inthe Addendum below.G. Preserve in that license notice the full lists of InvariantSections and required Cover Texts given in the Document'slicense notice.H. Include an unaltered copy of this License.I. Preserve the section Entitled "History", Preserve its Title,and add to it an item stating at least the title, year, newauthors, and publisher of the Modified Version as given onthe Title Page. If there is no section Entitled "History" inthe Document, create one stating the title, year, authors,and publisher of the Document as given on its Title Page,then add an item describing the Modified Version as stated inthe previous sentence.J. Preserve the network location, if any, given in the Documentfor public access to a Transparent copy of the Document, andlikewise the network locations given in the Document forprevious versions it was based on. These may be placed inthe "History" section. You may omit a network location for awork that was published at least four years before theDocument itself, or if the original publisher of the versionit refers to gives permission.K. For any section Entitled "Acknowledgements" or "Dedications",Preserve the Title of the section, and preserve in thesection all the substance and tone of each of the contributoracknowledgements and/or dedications given therein.L. Preserve all the Invariant Sections of the Document,unaltered in their text and in their titles. Section numbersor the equivalent are not considered part of the sectiontitles.M. Delete any section Entitled "Endorsements". Such a sectionmay not be included in the Modified Version.N. Do not retitle any existing section to be Entitled"Endorsements" or to conflict in title with any InvariantSection.O. Preserve any Warranty Disclaimers.If the Modified Version includes new front-matter sections orappendices that qualify as Secondary Sections and contain nomaterial copied from the Document, you may at your optiondesignate some or all of these sections as invariant. To do this,add their titles to the list of Invariant Sections in the ModifiedVersion's license notice. These titles must be distinct from anyother section titles.You may add a section Entitled "Endorsements", provided it containsnothing but endorsements of your Modified Version by variousparties--for example, statements of peer review or that the texthas been approved by an organization as the authoritativedefinition of a standard.You may add a passage of up to five words as a Front-Cover Text,and a passage of up to 25 words as a Back-Cover Text, to the endof the list of Cover Texts in the Modified Version. Only onepassage of Front-Cover Text and one of Back-Cover Text may beadded by (or through arrangements made by) any one entity. If theDocument already includes a cover text for the same cover,previously added by you or by arrangement made by the same entityyou are acting on behalf of, you may not add another; but you mayreplace the old one, on explicit permission from the previouspublisher that added the old one.The author(s) and publisher(s) of the Document do not by thisLicense give permission to use their names for publicity for or toassert or imply endorsement of any Modified Version.5. COMBINING DOCUMENTSYou may combine the Document with other documents released underthis License, under the terms defined in section 4 above formodified versions, provided that you include in the combinationall of the Invariant Sections of all of the original documents,unmodified, and list them all as Invariant Sections of yourcombined work in its license notice, and that you preserve alltheir Warranty Disclaimers.The combined work need only contain one copy of this License, andmultiple identical Invariant Sections may be replaced with a singlecopy. If there are multiple Invariant Sections with the same namebut different contents, make the title of each such section uniqueby adding at the end of it, in parentheses, the name of theoriginal author or publisher of that section if known, or else aunique number. Make the same adjustment to the section titles inthe list of Invariant Sections in the license notice of thecombined work.In the combination, you must combine any sections Entitled"History" in the various original documents, forming one sectionEntitled "History"; likewise combine any sections Entitled"Acknowledgements", and any sections Entitled "Dedications". Youmust delete all sections Entitled "Endorsements."6. COLLECTIONS OF DOCUMENTSYou may make a collection consisting of the Document and otherdocuments released under this License, and replace the individualcopies of this License in the various documents with a single copythat is included in the collection, provided that you follow therules of this License for verbatim copying of each of thedocuments in all other respects.You may extract a single document from such a collection, anddistribute it individually under this License, provided you inserta copy of this License into the extracted document, and followthis License in all other respects regarding verbatim copying ofthat document.7. AGGREGATION WITH INDEPENDENT WORKSA compilation of the Document or its derivatives with otherseparate and independent documents or works, in or on a volume ofa storage or distribution medium, is called an "aggregate" if thecopyright resulting from the compilation is not used to limit thelegal rights of the compilation's users beyond what the individualworks permit. When the Document is included in an aggregate, thisLicense does not apply to the other works in the aggregate whichare not themselves derivative works of the Document.If the Cover Text requirement of section 3 is applicable to thesecopies of the Document, then if the Document is less than one halfof the entire aggregate, the Document's Cover Texts may be placedon covers that bracket the Document within the aggregate, or theelectronic equivalent of covers if the Document is in electronicform. Otherwise they must appear on printed covers that bracketthe whole aggregate.8. TRANSLATIONTranslation is considered a kind of modification, so you maydistribute translations of the Document under the terms of section4. Replacing Invariant Sections with translations requires specialpermission from their copyright holders, but you may includetranslations of some or all Invariant Sections in addition to theoriginal versions of these Invariant Sections. You may include atranslation of this License, and all the license notices in theDocument, and any Warranty Disclaimers, provided that you alsoinclude the original English version of this License and theoriginal versions of those notices and disclaimers. In case of adisagreement between the translation and the original version ofthis License or a notice or disclaimer, the original version willprevail.If a section in the Document is Entitled "Acknowledgements","Dedications", or "History", the requirement (section 4) toPreserve its Title (section 1) will typically require changing theactual title.9. TERMINATIONYou may not copy, modify, sublicense, or distribute the Documentexcept as expressly provided under this License. Any attemptotherwise to copy, modify, sublicense, or distribute it is void,and will automatically terminate your rights under this License.However, if you cease all violation of this License, then yourlicense from a particular copyright holder is reinstated (a)provisionally, unless and until the copyright holder explicitlyand finally terminates your license, and (b) permanently, if thecopyright holder fails to notify you of the violation by somereasonable means prior to 60 days after the cessation.Moreover, your license from a particular copyright holder isreinstated permanently if the copyright holder notifies you of theviolation by some reasonable means, this is the first time you havereceived notice of violation of this License (for any work) fromthat copyright holder, and you cure the violation prior to 30 daysafter your receipt of the notice.Termination of your rights under this section does not terminatethe licenses of parties who have received copies or rights fromyou under this License. If your rights have been terminated andnot permanently reinstated, receipt of a copy of some or all ofthe same material does not give you any rights to use it.10. FUTURE REVISIONS OF THIS LICENSEThe Free Software Foundation may publish new, revised versions ofthe GNU Free Documentation License from time to time. Such newversions will be similar in spirit to the present version, but maydiffer in detail to address new problems or concerns. See`http://www.gnu.org/copyleft/'.Each version of the License is given a distinguishing versionnumber. If the Document specifies that a particular numberedversion of this License "or any later version" applies to it, youhave the option of following the terms and conditions either ofthat specified version or of any later version that has beenpublished (not as a draft) by the Free Software Foundation. Ifthe Document does not specify a version number of this License,you may choose any version ever published (not as a draft) by theFree Software Foundation. If the Document specifies that a proxycan decide which future versions of this License can be used, thatproxy's public statement of acceptance of a version permanentlyauthorizes you to choose that version for the Document.11. RELICENSING"Massive Multiauthor Collaboration Site" (or "MMC Site") means anyWorld Wide Web server that publishes copyrightable works and alsoprovides prominent facilities for anybody to edit those works. Apublic wiki that anybody can edit is an example of such a server.A "Massive Multiauthor Collaboration" (or "MMC") contained in thesite means any set of copyrightable works thus published on the MMCsite."CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0license published by Creative Commons Corporation, a not-for-profitcorporation with a principal place of business in San Francisco,California, as well as future copyleft versions of that licensepublished by that same organization."Incorporate" means to publish or republish a Document, in whole orin part, as part of another Document.An MMC is "eligible for relicensing" if it is licensed under thisLicense, and if all works that were first published under thisLicense somewhere other than this MMC, and subsequentlyincorporated in whole or in part into the MMC, (1) had no covertexts or invariant sections, and (2) were thus incorporated priorto November 1, 2008.The operator of an MMC Site may republish an MMC contained in thesite under CC-BY-SA on the same site at any time before August 1,2009, provided the MMC is eligible for relicensing.ADDENDUM: How to use this License for your documents====================================================To use this License in a document you have written, include a copy ofthe License in the document and put the following copyright and licensenotices just after the title page:Copyright (C) YEAR YOUR NAME.Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.3or any later version published by the Free Software Foundation;with no Invariant Sections, no Front-Cover Texts, and no Back-CoverTexts. A copy of the license is included in the section entitled ``GNUFree Documentation License''.If you have Invariant Sections, Front-Cover Texts and Back-CoverTexts, replace the "with...Texts." line with this:with the Invariant Sections being LIST THEIR TITLES, withthe Front-Cover Texts being LIST, and with the Back-Cover Textsbeing LIST.If you have Invariant Sections without Cover Texts, or some othercombination of the three, merge those two alternatives to suit thesituation.If your document contains nontrivial examples of program code, werecommend releasing these examples in parallel under your choice offree software license, such as the GNU General Public License, topermit their use in free software.File: binutils.info, Node: Binutils Index, Prev: GNU Free Documentation License, Up: TopBinutils Index**************
