home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnumans.zip / binutils.inf (.txt) < prev    next >
OS/2 Help File  |  1997-07-02  |  48KB  |  1,444 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Title page ΓòÉΓòÉΓòÉ
  3.  
  4.                             The gnu Binary Utilities
  5.  
  6.                                    Version 2.6
  7.  
  8.                                     May 1993
  9.  
  10.                                  Roland H. Pesch
  11.  
  12.                                  Jeffrey M. Osier
  13.  
  14.                                   Cygnus Support
  15.  
  16. Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 
  17.  
  18. Permission is granted to make and distribute verbatim copies of this manual 
  19. provided the copyright notice and this permission notice are preserved on all 
  20. copies. 
  21.  
  22. Permission is granted to copy and distribute modified versions of this manual 
  23. under the conditions for verbatim copying, provided also that the entire 
  24. resulting derived work is distributed under the terms of a permission notice 
  25. identical to this one. 
  26.  
  27. Permission is granted to copy and distribute translations of this manual into 
  28. another language, under the above conditions for modified versions. 
  29.  
  30.  
  31. ΓòÉΓòÉΓòÉ 2. Top node: "Introduction" ΓòÉΓòÉΓòÉ
  32.  
  33. This brief manual contains preliminary documentation for the gnu binary 
  34. utilities (collectively version 2.6): 
  35.  
  36.  ar                                      Create, modify, and extract from 
  37.                                          archives 
  38.  
  39.  
  40.  nm                                      List symbols from object files 
  41.  objcopy                                 Copy and translate object files 
  42.  objdump                                 Display information from object files 
  43.  ranlib                                  Generate index to archive contents 
  44.  size                                    List section sizes and total size 
  45.  strings                                 List printable strings from files 
  46.  strip                                   Discard symbols 
  47.  c++filt                                 Filter to demangle encoded C++ symbols 
  48.  nlmconv                                 Converts object code into an NLM 
  49.  Selecting The Target System             How these utilities determine the 
  50.                                          target. 
  51.  Index 
  52.  
  53.  
  54. ΓòÉΓòÉΓòÉ 3. ar ΓòÉΓòÉΓòÉ
  55.  
  56. ar [-]p[mod [relpos]] archive [member...]
  57. ar -M [ <mri-script ]
  58.  
  59. The gnu ar program creates, modifies, and extracts from archives.  An archive 
  60. is a single file holding a collection of other files in a structure that makes 
  61. it possible to retrieve the original individual files (called members of the 
  62. archive). 
  63.  
  64. The original files' contents, mode (permissions), timestamp, owner, and group 
  65. are preserved in the archive, and can be restored on extraction. 
  66.  
  67. gnu ar can maintain archives whose members have names of any length; however, 
  68. depending on how ar is configured on your system, a limit on member-name length 
  69. may be imposed for compatibility with archive formats maintained with other 
  70. tools.  If it exists, the limit is often 15 characters (typical of formats 
  71. related to a.out) or 16 characters (typical of formats related to coff). 
  72.  
  73. ar is considered a binary utility because archives of this sort are most often 
  74. used as libraries holding commonly needed subroutines. 
  75.  
  76. ar creates an index to the symbols defined in relocatable object modules in the 
  77. archive when you specify the modifier `s'. Once created, this index is updated 
  78. in the archive whenever ar makes a change to its contents (save for the `q' 
  79. update operation). An archive with such an index speeds up linking to the 
  80. library, and allows routines in the library to call each other without regard 
  81. to their placement in the archive. 
  82.  
  83. You may use `nm -s' or `nm --print-armap' to list this index table.  If an 
  84. archive lacks the table, another form of ar called ranlib can be used to add 
  85. just the table. 
  86.  
  87. gnu ar is designed to be compatible with two different facilities.  You can 
  88. control its activity using command-line options, like the different varieties 
  89. of ar on Unix systems; or, if you specify the single command-line option `-M', 
  90. you can control it with a script supplied via standard input, like the MRI 
  91. ``librarian'' program. 
  92.  
  93.  ar cmdline                              Controlling ar on the command line 
  94.  ar scripts                              Controlling ar with a script 
  95.  
  96.  
  97. ΓòÉΓòÉΓòÉ 3.1. Controlling ar on the command line ΓòÉΓòÉΓòÉ
  98.  
  99. ar [-]p[mod [relpos]] archive [member...]
  100.  
  101. When you use ar in the Unix style, ar insists on at least two arguments to 
  102. execute: one keyletter specifying the operation (optionally accompanied by 
  103. other keyletters specifying modifiers), and the archive name to act on. 
  104.  
  105. Most operations can also accept further member arguments, specifying particular 
  106. files to operate on. 
  107.  
  108. gnu ar allows you to mix the operation code p and modifier flags mod in any 
  109. order, within the first command-line argument. 
  110.  
  111. If you wish, you may begin the first command-line argument with a dash. 
  112.  
  113. The p keyletter specifies what operation to execute; it may be any of the 
  114. following, but you must specify only one of them: 
  115.  
  116.  d 
  117.            Delete modules from the archive.  Specify the names of modules to be 
  118.            deleted as member...; the archive is untouched if you specify no 
  119.            files to delete. 
  120.  
  121.            If you specify the `v' modifier, ar lists each module as it is 
  122.            deleted. 
  123.  
  124.  m 
  125.            Use this operation to move members in an archive. 
  126.  
  127.            The ordering of members in an archive can make a difference in how 
  128.            programs are linked using the library, if a symbol is defined in 
  129.            more than one member. 
  130.  
  131.            If no modifiers are used with m, any members you name in the member 
  132.            arguments are moved to the end of the archive; you can use the `a', 
  133.            `b', or `i' modifiers to move them to a specified place instead. 
  134.  
  135.  p 
  136.            Print the specified members of the archive, to the standard output 
  137.            file.  If the `v' modifier is specified, show the member name before 
  138.            copying its contents to standard output. 
  139.  
  140.            If you specify no member arguments, all the files in the archive are 
  141.            printed. 
  142.  
  143.  q 
  144.            Quick append; add the files member... to the end of archive, without 
  145.            checking for replacement. 
  146.  
  147.            The modifiers `a', `b', and `i' do not affect this operation; new 
  148.            members are always placed at the end of the archive. 
  149.  
  150.            The modifier `v' makes ar list each file as it is appended. 
  151.  
  152.            Since the point of this operation is speed, the archive's symbol 
  153.            table index is not updated, even if it already existed; you can use 
  154.            `ar s' or ranlib explicitly to update the symbol table index. 
  155.  
  156.  r 
  157.            Insert the files member... into archive (with replacement). This 
  158.            operation differs from `q' in that any previously existing members 
  159.            are deleted if their names match those being added. 
  160.  
  161.            If one of the files named in member... does not exist, ar displays 
  162.            an error message, and leaves undisturbed any existing members of the 
  163.            archive matching that name. 
  164.  
  165.            By default, new members are added at the end of the file; but you 
  166.            may use one of the modifiers `a', `b', or `i' to request placement 
  167.            relative to some existing member. 
  168.  
  169.            The modifier `v' used with this operation elicits a line of output 
  170.            for each file inserted, along with one of the letters `a' or `r' to 
  171.            indicate whether the file was appended (no old member deleted) or 
  172.            replaced. 
  173.  
  174.  t 
  175.            Display a table listing the contents of archive, or those of the 
  176.            files listed in member... that are present in the archive.  Normally 
  177.            only the member name is shown; if you also want to see the modes 
  178.            (permissions), timestamp, owner, group, and size, you can request 
  179.            that by also specifying the `v' modifier. 
  180.  
  181.            If you do not specify a member, all files in the archive are listed. 
  182.  
  183.            If there is more than one file with the same name (say, `fie') in an 
  184.            archive (say `b.a'), `ar t b.a fie' lists only the first instance; 
  185.            to see them all, you must ask for a complete listing---in our 
  186.            example, `ar t b.a'. 
  187.  
  188.  x 
  189.            Extract members (named member) from the archive.  You can use the 
  190.            `v' modifier with this operation, to request that ar list each name 
  191.            as it extracts it. 
  192.  
  193.            If you do not specify a member, all files in the archive are 
  194.            extracted. 
  195.  
  196.  A number of modifiers (mod) may immediately follow the p keyletter, to specify 
  197.  variations on an operation's behavior: 
  198.  
  199.  a 
  200.            Add new files after an existing member of the archive.  If you use 
  201.            the modifier `a', the name of an existing archive member must be 
  202.            present as the relpos argument, before the archive specification. 
  203.  
  204.  b 
  205.            Add new files before an existing member of the archive.  If you use 
  206.            the modifier `b', the name of an existing archive member must be 
  207.            present as the relpos argument, before the archive specification. 
  208.            (same as `i'). 
  209.  
  210.  c 
  211.            Create the archive.  The specified archive is always created if it 
  212.            did not exist, when you request an update.  But a warning is issued 
  213.            unless you specify in advance that you expect to create it, by using 
  214.            this modifier. 
  215.  
  216.  f 
  217.            Truncate names in the archive.  gnu ar will normally permit file 
  218.            names of any length.  This will cause it to create archives which 
  219.            are not compatible with the native ar program on some systems.  If 
  220.            this is a concern, the `f' modifier may be used to truncate file 
  221.            names when putting them in the archive. 
  222.  
  223.  i 
  224.            Insert new files before an existing member of the archive.  If you 
  225.            use the modifier `i', the name of an existing archive member must be 
  226.            present as the relpos argument, before the archive specification. 
  227.            (same as `b'). 
  228.  
  229.  l 
  230.            This modifier is accepted but not used. 
  231.  
  232.  o 
  233.            Preserve the original dates of members when extracting them.  If you 
  234.            do not specify this modifier, files extracted from the archive are 
  235.            stamped with the time of extraction. 
  236.  
  237.  s 
  238.            Write an object-file index into the archive, or update an existing 
  239.            one, even if no other change is made to the archive.  You may use 
  240.            this modifier flag either with any operation, or alone.  Running `ar 
  241.            s' on an archive is equivalent to running `ranlib' on it. 
  242.  
  243.  u 
  244.            Normally, `ar r'... inserts all files listed into the archive.  If 
  245.            you would like to insert only those of the files you list that are 
  246.            newer than existing members of the same names, use this modifier. 
  247.            The `u' modifier is allowed only for the operation `r' (replace). 
  248.            In particular, the combination `qu' is not allowed, since checking 
  249.            the timestamps would lose any speed advantage from the operation 
  250.            `q'. 
  251.  
  252.  v 
  253.            This modifier requests the verbose version of an operation.  Many 
  254.            operations display additional information, such as filenames 
  255.            processed, when the modifier `v' is appended. 
  256.  
  257.  V 
  258.            This modifier shows the version number of ar. 
  259.  
  260.  
  261. ΓòÉΓòÉΓòÉ 3.2. Controlling ar with a script ΓòÉΓòÉΓòÉ
  262.  
  263. ar -M [ <script ]
  264.  
  265. If you use the single command-line option `-M' with ar, you can control its 
  266. operation with a rudimentary command language.  This form of ar operates 
  267. interactively if standard input is coming directly from a terminal.  During 
  268. interactive use, ar prompts for input (the prompt is `AR >'), and continues 
  269. executing even after errors.  If you redirect standard input to a script file, 
  270. no prompts are issued, and ar abandons execution (with a nonzero exit code) on 
  271. any error. 
  272.  
  273. The ar command language is not designed to be equivalent to the command-line 
  274. options; in fact, it provides somewhat less control over archives.  The only 
  275. purpose of the command language is to ease the transition to gnu ar for 
  276. developers who already have scripts written for the MRI ``librarian'' program. 
  277.  
  278. The syntax for the ar command language is straightforward: 
  279.  
  280.      commands are recognized in upper or lower case; for example, LIST is the 
  281.       same as list.  In the following descriptions, commands are shown in upper 
  282.       case for clarity. 
  283.  
  284.      a single command may appear on each line; it is the first word on the 
  285.       line. 
  286.  
  287.      empty lines are allowed, and have no effect. 
  288.  
  289.      comments are allowed; text after either of the characters `*' or `;' is 
  290.       ignored. 
  291.  
  292.      Whenever you use a list of names as part of the argument to an ar 
  293.       command, you can separate the individual names with either commas or 
  294.       blanks.  Commas are shown in the explanations below, for clarity. 
  295.  
  296.      `+' is used as a line continuation character; if `+' appears at the end 
  297.       of a line, the text on the following line is considered part of the 
  298.       current command. 
  299.  
  300.  Here are the commands you can use in ar scripts, or when using ar 
  301.  interactively.  Three of them have special significance: 
  302.  
  303.  OPEN or CREATE specify a current archive, which is a temporary file required 
  304.  for most of the other commands. 
  305.  
  306.  SAVE commits the changes so far specified by the script.  Prior to SAVE, 
  307.  commands affect only the temporary copy of the current archive. 
  308.  
  309.  ADDLIB archive 
  310.  ADDLIB archive (module, module, ... module) 
  311.            Add all the contents of archive (or, if specified, each named module 
  312.            from archive) to the current archive. 
  313.  
  314.            Requires prior use of OPEN or CREATE. 
  315.  
  316.  ADDMOD member, member, ... member 
  317.            Add each named member as a module in the current archive. 
  318.  
  319.            Requires prior use of OPEN or CREATE. 
  320.  
  321.  CLEAR 
  322.            Discard the contents of the current archive, cancelling the effect 
  323.            of any operations since the last SAVE.  May be executed (with no 
  324.            effect) even if  no current archive is specified. 
  325.  
  326.  CREATE archive 
  327.            Creates an archive, and makes it the current archive (required for 
  328.            many other commands).  The new archive is created with a temporary 
  329.            name; it is not actually saved as archive until you use SAVE. You 
  330.            can overwrite existing archives; similarly, the contents of any 
  331.            existing file named archive will not be destroyed until SAVE. 
  332.  
  333.  DELETE module, module, ... module 
  334.            Delete each listed module from the current archive; equivalent to 
  335.            `ar -d archive module ... module'. 
  336.  
  337.            Requires prior use of OPEN or CREATE. 
  338.  
  339.  DIRECTORY archive (module, ... module) 
  340.  DIRECTORY archive (module, ... module) outputfile 
  341.            List each named module present in archive.  The separate command 
  342.            VERBOSE specifies the form of the output: when verbose output is 
  343.            off, output is like that of `ar -t archive module...'.  When verbose 
  344.            output is on, the listing is like `ar -tv archive module...'. 
  345.  
  346.            Output normally goes to the standard output stream; however, if you 
  347.            specify outputfile as a final argument, ar directs the output to 
  348.            that file. 
  349.  
  350.  END 
  351.            Exit from ar, with a 0 exit code to indicate successful completion. 
  352.            This command does not save the output file; if you have changed the 
  353.            current archive since the last SAVE command, those changes are lost. 
  354.  
  355.  EXTRACT module, module, ... module 
  356.            Extract each named module from the current archive, writing them 
  357.            into the current directory as separate files.  Equivalent to `ar -x 
  358.            archive module...'. 
  359.  
  360.            Requires prior use of OPEN or CREATE. 
  361.  
  362.  LIST 
  363.            Display full contents of the current archive, in ``verbose'' style 
  364.            regardless of the state of VERBOSE.  The effect is like `ar tv 
  365.            archive').  (This single command is a gnu ld enhancement, rather 
  366.            than present for MRI compatibility.) 
  367.  
  368.            Requires prior use of OPEN or CREATE. 
  369.  
  370.  OPEN archive 
  371.            Opens an existing archive for use as the current archive (required 
  372.            for many other commands).  Any changes as the result of subsequent 
  373.            commands will not actually affect archive until you next use SAVE. 
  374.  
  375.  REPLACE module, module, ... module 
  376.            In the current archive, replace each existing module (named in the 
  377.            REPLACE arguments) from files in the current working directory. To 
  378.            execute this command without errors, both the file, and the module 
  379.            in the current archive, must exist. 
  380.  
  381.            Requires prior use of OPEN or CREATE. 
  382.  
  383.  VERBOSE 
  384.            Toggle an internal flag governing the output from DIRECTORY. When 
  385.            the flag is on, DIRECTORY output matches output from `ar -tv '.... 
  386.  
  387.  SAVE 
  388.            Commit your changes to the current archive, and actually save it as 
  389.            a file with the name specified in the last CREATE or OPEN command. 
  390.  
  391.            Requires prior use of OPEN or CREATE. 
  392.  
  393.  
  394. ΓòÉΓòÉΓòÉ 4. nm ΓòÉΓòÉΓòÉ
  395.  
  396. nm [ -a | --debug-syms ]  [ -g | --extern-only ]
  397.    [ -B ]  [ -C | --demangle ] [ -D | --dynamic ]
  398.    [ -s | --print-armap ]  [ -A | -o | --print-file-name ]
  399.    [ -n | -v | --numeric-sort ]  [ -p | --no-sort ]
  400.    [ -r | --reverse-sort ]  [ --size-sort ] [ -u | --undefined-only ]
  401.    [ -t radix | --radix=radix ] [ -P | --portability ]
  402.    [ --target=bfdname ] [ -f format | --format=format ]
  403.    [ --no-demangle ] [ -V | --version ]  [ --help ]  [ objfile... ]
  404.  
  405. gnu nm lists the symbols from object files objfile.... If no object files are 
  406. listed as arguments, nm assumes `a.out'. 
  407.  
  408. For each symbol, nm shows: 
  409.  
  410.      The symbol value, in the radix selected by options (see below), or 
  411.       hexadecimal by default. 
  412.  
  413.      The symbol type.  At least the following types are used; others are, as 
  414.       well, depending on the object file format.  If lowercase, the symbol is 
  415.       local; if uppercase, the symbol is global (external). 
  416.  
  417.       A 
  418.                      Absolute. 
  419.  
  420.       B 
  421.                      BSS (uninitialized data). 
  422.  
  423.       C 
  424.                      Common. 
  425.  
  426.       D 
  427.                      Initialized data. 
  428.  
  429.       I 
  430.                      Indirect reference. 
  431.  
  432.       T 
  433.                      Text (program code). 
  434.  
  435.       U 
  436.                      Undefined. 
  437.  
  438.      The symbol name. 
  439.  
  440.  The long and short forms of options, shown here as alternatives, are 
  441.  equivalent. 
  442.  
  443.  -A 
  444.  -o 
  445.  --print-file-name 
  446.            Precede each symbol by the name of the input file (or archive 
  447.            element) in which it was found, rather than identifying the input 
  448.            file once only, before all of its symbols. 
  449.  
  450.  -a 
  451.  --debug-syms 
  452.            Display all symbols, even debugger-only symbols; normally these are 
  453.            not listed. 
  454.  
  455.  -B 
  456.            The same as `--format=bsd' (for compatibility with the MIPS nm). 
  457.  
  458.  -C 
  459.  --demangle 
  460.            Decode (demangle) low-level symbol names into user-level names. 
  461.            Besides removing any initial underscore prepended by the system, 
  462.            this makes C++ function names readable.  See c++filt, for more 
  463.            information on demangling. 
  464.  
  465.  --no-demangle 
  466.            Do not demangle low-level symbol names.  This is the default. 
  467.  
  468.  -D 
  469.  --dynamic 
  470.            Display the dynamic symbols rather than the normal symbols.  This is 
  471.            only meaningful for dynamic objects, such as certain types of shared 
  472.            libraries. 
  473.  
  474.  -f format 
  475.  --format=format 
  476.            Use the output format format, which can be bsd, sysv, or posix.  The 
  477.            default is bsd. Only the first character of format is significant; 
  478.            it can be either upper or lower case. 
  479.  
  480.  -g 
  481.  --extern-only 
  482.            Display only external symbols. 
  483.  
  484.  -n 
  485.  -v 
  486.  --numeric-sort 
  487.            Sort symbols numerically by their addresses, rather than 
  488.            alphabetically by their names. 
  489.  
  490.  -p 
  491.  --no-sort 
  492.            Do not bother to sort the symbols in any order; print them in the 
  493.            order encountered. 
  494.  
  495.  -P 
  496.  --portability 
  497.            Use the POSIX.2 standard output format instead of the default 
  498.            format. Equivalent to `-f posix'. 
  499.  
  500.  -s 
  501.  --print-armap 
  502.            When listing symbols from archive members, include the index: a 
  503.            mapping (stored in the archive by ar or ranlib) of which modules 
  504.            contain definitions for which names. 
  505.  
  506.  -r 
  507.  --reverse-sort 
  508.            Reverse the order of the sort (whether numeric or alphabetic); let 
  509.            the last come first. 
  510.  
  511.  --size-sort 
  512.            Sort symbols by size.  The size is computed as the difference 
  513.            between the value of the symbol and the value of the symbol with the 
  514.            next higher value.  The size of the symbol is printed, rather than 
  515.            the value. 
  516.  
  517.  -t radix 
  518.  --radix=radix 
  519.            Use radix as the radix for printing the symbol values.  It must be 
  520.            `d' for decimal, `o' for octal, or `x' for hexadecimal. 
  521.  
  522.  --target=bfdname 
  523.            Specify an object code format other than your system's default 
  524.            format. See Target Selection, for more information. 
  525.  
  526.  -u 
  527.  --undefined-only 
  528.            Display only undefined symbols (those external to each object file). 
  529.  
  530.  -V 
  531.  --version 
  532.            Show the version number of nm and exit. 
  533.  
  534.  --help 
  535.            Show a summary of the options to nm and exit. 
  536.  
  537.  
  538. ΓòÉΓòÉΓòÉ 5. objcopy ΓòÉΓòÉΓòÉ
  539.  
  540. objcopy [ -F bfdname | --target=bfdname ]
  541.         [ -I bfdname | --input-target=bfdname ]
  542.         [ -O bfdname | --output-target=bfdname ]
  543.         [ -S | --strip-all ]  [ -g | --strip-debug ]
  544.         [ -K symbolname | --keep-symbol=symbolname ]
  545.         [ -N symbolname | --strip-symbol=symbolname ]
  546.         [ -x | --discard-all ]  [ -X | --discard-locals ]
  547.         [ -b byte | --byte=byte ]
  548.         [ -i interleave | --interleave=interleave ]
  549.         [ -R sectionname | --remove-section=sectionname ]
  550.         [ --gap-fill=val ] [ --pad-to=address ]
  551.         [ --set-start=val ] [ --adjust-start=incr ]
  552.         [ --adjust-vma=incr ]
  553.         [ --adjust-section-vma=section{=,+,-}val ]
  554.         [ --adjust-warnings ] [ --no-adjust-warnings ]
  555.         [ --set-section-flags=section=flags ]
  556.         [ --add-section=sectionname=filename ]
  557.         [ -v | --verbose ] [ -V | --version ]  [ --help ]
  558.         infile [outfile]
  559.  
  560. The gnu objcopy utility copies the contents of an object file to another. 
  561. objcopy uses the gnu bfd Library to read and write the object files.  It can 
  562. write the destination object file in a format different from that of the source 
  563. object file.  The exact behavior of objcopy is controlled by command-line 
  564. options. 
  565.  
  566. objcopy creates temporary files to do its translations and deletes them 
  567. afterward.  objcopy uses bfd to do all its translation work; it has access to 
  568. all the formats described in bfd and thus is able to recognize most formats 
  569. without being told explicitly.  See BFD. 
  570.  
  571. objcopy can be used to generate S-records by using an output target of `srec' 
  572. (e.g., use `-O srec'). 
  573.  
  574. objcopy can be used to generate a raw binary file by using an output target of 
  575. `binary' (e.g., use `-O binary').  When objcopy generates a raw binary file, it 
  576. will essentially produce a memory dump of the contents of the input object 
  577. file.  All symbols and relocation information will be discarded.  The memory 
  578. dump will start at the virtual address of the lowest section copied into the 
  579. output file. 
  580.  
  581. When generating an S-record or a raw binary file, it may be helpful to use `-S' 
  582. to remove sections containing debugging information.  In some cases `-R' will 
  583. be useful to remove sections which contain information which is not needed by 
  584. the binary file. 
  585.  
  586.  infile 
  587.  outfile 
  588.            The source and output files, respectively. If you do not specify 
  589.            outfile, objcopy creates a temporary file and destructively renames 
  590.            the result with the name of infile. 
  591.  
  592.  -I bfdname 
  593.  --input-target=bfdname 
  594.            Consider the source file's object format to be bfdname, rather than 
  595.            attempting to deduce it.  See Target Selection, for more 
  596.            information. 
  597.  
  598.  -O bfdname 
  599.  --output-target=bfdname 
  600.            Write the output file using the object format bfdname. See Target 
  601.            Selection, for more information. 
  602.  
  603.  -F bfdname 
  604.  --target=bfdname 
  605.            Use bfdname as the object format for both the input and the output 
  606.            file; i.e., simply transfer data from source to destination with no 
  607.            translation.  See Target Selection, for more information. 
  608.  
  609.  -R sectionname 
  610.  --remove-section=sectionname 
  611.            Remove any section named sectionname from the output file.  This 
  612.            option may be given more than once.  Note that using this option 
  613.            inappropriately may make the output file unusable. 
  614.  
  615.  -S 
  616.  --strip-all 
  617.            Do not copy relocation and symbol information from the source file. 
  618.  
  619.  -g 
  620.  --strip-debug 
  621.            Do not copy debugging symbols from the source file. 
  622.  
  623.  --strip-unneeded 
  624.            Strip all symbols that are not needed for relocation processing. 
  625.  
  626.  -K symbolname 
  627.  --keep-symbol=symbolname 
  628.            Copy only symbol symbolname from the source file.  This option may 
  629.            be given more than once. 
  630.  
  631.  -N symbolname 
  632.  --strip-symbol=symbolname 
  633.            Do not copy symbol symbolname from the source file.  This option may 
  634.            be given more than once, and may be combined with strip options 
  635.            other than -K. 
  636.  
  637.  -x 
  638.  --discard-all 
  639.            Do not copy non-global symbols from the source file. 
  640.  
  641.  -X 
  642.  --discard-locals 
  643.            Do not copy compiler-generated local symbols. (These usually start 
  644.            with `L' or `.'.) 
  645.  
  646.  -b byte 
  647.  --byte=byte 
  648.            Keep only every byteth byte of the input file (header data is not 
  649.            affected).  byte can be in the range from 0 to interleave-1, where 
  650.            interleave is given by the `-i' or `--interleave' option, or the 
  651.            default of 4.  This option is useful for creating files to program 
  652.            rom.  It is typically used with an srec output target. 
  653.  
  654.  -i interleave 
  655.  --interleave=interleave 
  656.            Only copy one out of every interleave bytes.  Select which byte to 
  657.            copy with the -b or `--byte' option.  The default is 4. objcopy 
  658.            ignores this option if you do not specify either `-b' or `--byte'. 
  659.  
  660.  --gap-fill val 
  661.            Fill gaps between sections with val.  This is done by increasing the 
  662.            size of the section with the lower address, and filling in the extra 
  663.            space created with val. 
  664.  
  665.  --pad-to address 
  666.            Pad the output file up to the virtual address address.  This is done 
  667.            by increasing the size of the last section.  The extra space is 
  668.            filled in with the value specified by `--gap-fill' (default zero). 
  669.  
  670.  --set-start val 
  671.            Set the address of the new file to val.  Not all object file formats 
  672.            support setting the start address. 
  673.  
  674.  --adjust-start incr 
  675.            Adjust the start address by adding incr.  Not all object file 
  676.            formats support setting the start address. 
  677.  
  678.  --adjust-vma incr 
  679.            Adjust the address of all sections, as well as the start address, by 
  680.            adding incr.  Some object file formats do not permit section 
  681.            addresses to be changed arbitrarily.  Note that this does not 
  682.            relocate the sections; if the program expects sections to be loaded 
  683.            at a certain address, and this option is used to change the sections 
  684.            such that they are loaded at a different address, the program may 
  685.            fail. 
  686.  
  687.  --adjust-section-vma section{=,+,-}val 
  688.            Set or adjust the address of the named section.  If `=' is used, the 
  689.            section address is set to val.  Otherwise, val is added to or 
  690.            subtracted from the section address.  See the comments under 
  691.            `--adjust-vma', above.  If section does not exist in the input file, 
  692.            a warning will be issued, unless `--no-adjust-warnings' is used. 
  693.  
  694.  --adjust-warnings 
  695.            If `--adjust-section-vma' is used, and the named section does not 
  696.            exist, issue a warning.  This is the default. 
  697.  
  698.  --no-adjust-warnings 
  699.            Do not issue a warning if `--adjust-section-vma' is used, even if 
  700.            the named section does not exist. 
  701.  
  702.  --set-section-flags section=flags 
  703.            Set the flags for the named section.  The flags argument is a comma 
  704.            separated string of flag names.  The recognized names are `alloc', 
  705.            `load', `readonly', `code', `data', and `rom'.  Not all flags are 
  706.            meaningful for all object file formats. 
  707.  
  708.  --add-section sectionname=filename 
  709.            Add a new section named sectionname while copying the file.  The 
  710.            contents of the new section are taken from the file filename.  The 
  711.            size of the section will be the size of the file.  This option only 
  712.            works on file formats which can support sections with arbitrary 
  713.            names. 
  714.  
  715.  -V 
  716.  --version 
  717.            Show the version number of objcopy. 
  718.  
  719.  -v 
  720.  --verbose 
  721.            Verbose output: list all object files modified.  In the case of 
  722.            archives, `objcopy -V' lists all members of the archive. 
  723.  
  724.  --help 
  725.            Show a summary of the options to objcopy. 
  726.  
  727.  
  728. ΓòÉΓòÉΓòÉ 6. objdump ΓòÉΓòÉΓòÉ
  729.  
  730. objdump [ -a | --archive-headers ]
  731.         [ -b bfdname | --target=bfdname ]
  732.         [ -d | --disassemble ]  [ -D | --disassemble-all ]
  733.         [ -f | --file-headers ]
  734.         [ -h | --section-headers | --headers ]  [ -i | --info ]
  735.         [ -j section | --section=section ]
  736.         [ -l | --line-numbers ] [ -S | --source ]
  737.         [ -m machine | --architecture=machine ]
  738.         [ -r | --reloc ] [ -R | --dynamic-reloc ]
  739.         [ -s | --full-contents ]  [ --stabs ]
  740.         [ -t | --syms ] [ -T | --dynamic-syms ] [ -x | --all-headers ]
  741.         [ -w | --wide ] [ --start-address=address ]
  742.         [ --stop-address=address ] [ --version ]  [ --help ]
  743.         objfile...
  744.  
  745. objdump displays information about one or more object files. The options 
  746. control what particular information to display.  This information is mostly 
  747. useful to programmers who are working on the compilation tools, as opposed to 
  748. programmers who just want their program to compile and work. 
  749.  
  750. objfile... are the object files to be examined.  When you specify archives, 
  751. objdump shows information on each of the member object files. 
  752.  
  753. The long and short forms of options, shown here as alternatives, are 
  754. equivalent.  At least one option besides `-l' must be given. 
  755.  
  756.  -a 
  757.  --archive-header 
  758.            If any of the objfile files are archives, display the archive header 
  759.            information (in a format similar to `ls -l').  Besides the 
  760.            information you could list with `ar tv', `objdump -a' shows the 
  761.            object file format of each archive member. 
  762.  
  763.  -b bfdname 
  764.  --target=bfdname 
  765.            Specify that the object-code format for the object files is bfdname. 
  766.            This option may not be necessary; objdump can automatically 
  767.            recognize many formats. 
  768.  
  769.            For example, 
  770.  
  771.                       objdump -b oasys -m vax -h fu.o
  772.  
  773.            displays summary information from the section headers (`-h') of 
  774.            `fu.o', which is explicitly identified (`-m') as a VAX object file 
  775.            in the format produced by Oasys compilers.  You can list the formats 
  776.            available with the `-i' option. See Target Selection, for more 
  777.            information. 
  778.  
  779.  -d 
  780.  --disassemble 
  781.            Display the assembler mnemonics for the machine instructions from 
  782.            objfile.  This option only disassembles those sections which are 
  783.            expected to contain instructions. 
  784.  
  785.  -D 
  786.  --disassemble-all 
  787.            Like `-d', but disassemble the contents of all sections, not just 
  788.            those expected to contain instructions. 
  789.  
  790.  -f 
  791.  --file-header 
  792.            Display summary information from the overall header of each of the 
  793.            objfile files. 
  794.  
  795.  -h 
  796.  --section-header 
  797.  --header 
  798.            Display summary information from the section headers of the object 
  799.            file. 
  800.  
  801.            File segments may be relocated to nonstandard addresses, for example 
  802.            by using the `-Ttext', `-Tdata', or `-Tbss' options to ld.  However, 
  803.            some object file formats, such as a.out, do not store the starting 
  804.            address of the file segments.  In those situations, although ld 
  805.            relocates the sections correctly, using `objdump -h' to list the 
  806.            file section headers cannot show the correct addresses. Instead, it 
  807.            shows the usual addresses, which are implicit for the target. 
  808.  
  809.  --help 
  810.            Print a summary of the options to objdump and exit. 
  811.  
  812.  -i 
  813.  --info 
  814.            Display a list showing all architectures and object formats 
  815.            available for specification with `-b' or `-m'. 
  816.  
  817.  -j name 
  818.  --section=name 
  819.            Display information only for section name. 
  820.  
  821.  -l 
  822.  --line-numbers 
  823.            Label the display (using debugging information) with the filename 
  824.            and source line numbers corresponding to the object code shown. Only 
  825.            useful with `-d' or `-D'. 
  826.  
  827.  -m machine 
  828.  --architecture=machine 
  829.            Specify that the object files objfile are for architecture machine. 
  830.            You can list available architectures using the `-i' option. 
  831.  
  832.  -r 
  833.  --reloc 
  834.            Print the relocation entries of the file.  If used with `-d' or 
  835.            `-D', the relocations are printed interspersed with the disassembly. 
  836.  
  837.  -R 
  838.  --dynamic-reloc 
  839.            Print the dynamic relocation entries of the file.  This is only 
  840.            meaningful for dynamic objects, such as certain types of shared 
  841.            libraries. 
  842.  
  843.  -s 
  844.  --full-contents 
  845.            Display the full contents of any sections requested. 
  846.  
  847.  -S 
  848.  --source 
  849.            Display source code intermixed with disassembly, if possible. 
  850.            Implies `-d'. 
  851.  
  852.  --stabs 
  853.            Display the full contents of any sections requested.  Display the 
  854.            contents of the .stab and .stab.index and .stab.excl sections from 
  855.            an ELF file.  This is only useful on systems (such as Solaris 2.0) 
  856.            in which .stab debugging symbol-table entries are carried in an ELF 
  857.            section.  In most other file formats, debugging symbol-table entries 
  858.            are interleaved with linkage symbols, and are visible in the 
  859.            `--syms' output. 
  860.  
  861.  --start-address=address 
  862.            Start displaying data at the specified address.  This affects the 
  863.            output of the -d, -r and -s options. 
  864.  
  865.  --stop-address=address 
  866.            Stop displaying data at the specified address.  This affects the 
  867.            output of the -d, -r and -s options. 
  868.  
  869.  -t 
  870.  --syms 
  871.            Print the symbol table entries of the file. This is similar to the 
  872.            information provided by the `nm' program. 
  873.  
  874.  -T 
  875.  --dynamic-syms 
  876.            Print the dynamic symbol table entries of the file.  This is only 
  877.            meaningful for dynamic objects, such as certain types of shared 
  878.            libraries.  This is similar to the information provided by the `nm' 
  879.            program when given the `-D' (`--dynamic') option. 
  880.  
  881.  --version 
  882.            Print the version number of objdump and exit. 
  883.  
  884.  -x 
  885.  --all-header 
  886.            Display all available header information, including the symbol table 
  887.            and relocation entries.  Using `-x' is equivalent to specifying all 
  888.            of `-a -f -h -r -t'. 
  889.  
  890.  -w 
  891.  
  892.  --wide 
  893.            Format some lines for output devices that have more than 80 columns. 
  894.  
  895.  
  896. ΓòÉΓòÉΓòÉ 7. ranlib ΓòÉΓòÉΓòÉ
  897.  
  898. ranlib [-vV] archive
  899.  
  900. ranlib generates an index to the contents of an archive and stores it in the 
  901. archive.  The index lists each symbol defined by a member of an archive that is 
  902. a relocatable object file. 
  903.  
  904. You may use `nm -s' or `nm --print-armap' to list this index. 
  905.  
  906. An archive with such an index speeds up linking to the library and allows 
  907. routines in the library to call each other without regard to their placement in 
  908. the archive. 
  909.  
  910. The gnu ranlib program is another form of gnu ar; running ranlib is completely 
  911. equivalent to executing `ar -s'. See ar. 
  912.  
  913.  -v 
  914.  -V 
  915.            Show the version number of ranlib. 
  916.  
  917.  
  918. ΓòÉΓòÉΓòÉ 8. size ΓòÉΓòÉΓòÉ
  919.  
  920. size [ -A | -B | --format=compatibility ]
  921.      [ --help ]  [ -d | -o | -x | --radix=number ]
  922.      [ --target=bfdname ]  [ -V | --version ]
  923.      objfile...
  924.  
  925. The gnu size utility lists the section sizes---and the total size---for each of 
  926. the object or archive files objfile in its argument list.  By default, one line 
  927. of output is generated for each object file or each module in an archive. 
  928.  
  929. objfile... are the object files to be examined. 
  930.  
  931. The command line options have the following meanings: 
  932.  
  933.  -A 
  934.  -B 
  935.  --format=compatibility 
  936.            Using one of these options, you can choose whether the output from 
  937.            gnu size resembles output from System V size (using `-A', or 
  938.            `--format=sysv'), or Berkeley size (using `-B', or 
  939.            `--format=berkeley').  The default is the one-line format similar to 
  940.            Berkeley's. 
  941.  
  942.            Here is an example of the Berkeley (default) format of output from 
  943.            size: 
  944.  
  945.                       size --format=Berkeley ranlib size
  946.                       text    data    bss     dec     hex     filename
  947.                       294880  81920   11592   388392  5ed28   ranlib
  948.                       294880  81920   11888   388688  5ee50   size
  949.  
  950.            This is the same data, but displayed closer to System V conventions: 
  951.  
  952.                       size --format=SysV ranlib size
  953.                       ranlib  :
  954.                       section         size         addr
  955.                       .text         294880         8192
  956.                       .data          81920       303104
  957.                       .bss           11592       385024
  958.                       Total         388392
  959.  
  960.                       size  :
  961.                       section         size         addr
  962.                       .text         294880         8192
  963.                       .data          81920       303104
  964.                       .bss           11888       385024
  965.                       Total         388688
  966.  
  967.  --help 
  968.            Show a summary of acceptable arguments and options. 
  969.  
  970.  -d 
  971.  -o 
  972.  -x 
  973.  --radix=number 
  974.            Using one of these options, you can control whether the size of each 
  975.            section is given in decimal (`-d', or `--radix=10'); octal (`-o', or 
  976.            `--radix=8'); or hexadecimal (`-x', or `--radix=16').  In 
  977.            `--radix=number', only the three values (8, 10, 16) are supported. 
  978.            The total size is always given in two radices; decimal and 
  979.            hexadecimal for `-d' or `-x' output, or octal and hexadecimal if 
  980.            you're using `-o'. 
  981.  
  982.  --target=bfdname 
  983.            Specify that the object-code format for objfile is bfdname.  This 
  984.            option may not be necessary; size can automatically recognize many 
  985.            formats. See Target Selection, for more information. 
  986.  
  987.  -V 
  988.  --version 
  989.            Display the version number of size. 
  990.  
  991.  
  992. ΓòÉΓòÉΓòÉ 9. strings ΓòÉΓòÉΓòÉ
  993.  
  994. strings [-afov] [-min-len] [-n min-len] [-t radix] [-]
  995.         [--all] [--print-file-name] [--bytes=min-len]
  996.         [--radix=radix] [--target=bfdname]
  997.         [--help] [--version] file...
  998.  
  999. For each file given, gnu strings prints the printable character sequences that 
  1000. are at least 4 characters long (or the number given with the options below) and 
  1001. are followed by an unprintable character.  By default, it only prints the 
  1002. strings from the initialized and loaded sections of object files; for other 
  1003. types of files, it prints the strings from the whole file. 
  1004.  
  1005. strings is mainly useful for determining the contents of non-text files. 
  1006.  
  1007.  -a 
  1008.  --all 
  1009.  - 
  1010.            Do not scan only the initialized and loaded sections of object 
  1011.            files; scan the whole files. 
  1012.  
  1013.  -f 
  1014.  --print-file-name 
  1015.            Print the name of the file before each string. 
  1016.  
  1017.  --help 
  1018.            Print a summary of the program usage on the standard output and 
  1019.            exit. 
  1020.            -min-len 
  1021.  
  1022.  -n min-len 
  1023.  --bytes=min-len 
  1024.            Print sequences of characters that are at least min-len characters 
  1025.            long, instead of the default 4. 
  1026.  
  1027.  -o 
  1028.            Like `-t o'.  Some other versions of strings have `-o' act like `-t 
  1029.            d' instead.  Since we can not be compatible with both ways, we 
  1030.            simply chose one. 
  1031.  
  1032.  -t radix 
  1033.  --radix=radix 
  1034.            Print the offset within the file before each string.  The single 
  1035.            character argument specifies the radix of the offset---`o' for 
  1036.            octal, `x' for hexadecimal, or `d' for decimal. 
  1037.  
  1038.  --target=bfdname 
  1039.            Specify an object code format other than your system's default 
  1040.            format. See Target Selection, for more information. 
  1041.  
  1042.  -v 
  1043.  --version 
  1044.            Print the program version number on the standard output and exit. 
  1045.  
  1046.  
  1047. ΓòÉΓòÉΓòÉ 10. strip ΓòÉΓòÉΓòÉ
  1048.  
  1049. strip [ -F bfdname | --target=bfdname | --target=bfdname ]
  1050.       [ -I bfdname | --input-target=bfdname ]
  1051.       [ -O bfdname | --output-target=bfdname ]
  1052.       [ -s | --strip-all ] [ -S | -g | --strip-debug ]
  1053.       [ -K symbolname | --keep-symbol=symbolname ]
  1054.       [ -N symbolname | --strip-symbol=symbolname ]
  1055.       [ -x | --discard-all ] [ -X | --discard-locals ]
  1056.       [ -R sectionname | --remove-section=sectionname ]
  1057.       [ -v | --verbose ]  [ -V | --version ]  [ --help ]
  1058.       objfile...
  1059.  
  1060. gnu strip discards all symbols from object files objfile.  The list of object 
  1061. files may include archives. At least one object file must be given. 
  1062.  
  1063. strip modifies the files named in its argument, rather than writing modified 
  1064. copies under different names. 
  1065.  
  1066.  -F bfdname 
  1067.  --target=bfdname 
  1068.            Treat the original objfile as a file with the object code format 
  1069.            bfdname, and rewrite it in the same format. See Target Selection, 
  1070.            for more information. 
  1071.  
  1072.  --help 
  1073.            Show a summary of the options to strip and exit. 
  1074.  
  1075.  -I bfdname 
  1076.  --input-target=bfdname 
  1077.            Treat the original objfile as a file with the object code format 
  1078.            bfdname. See Target Selection, for more information. 
  1079.  
  1080.  -O bfdname 
  1081.  --output-target=bfdname 
  1082.            Replace objfile with a file in the output format bfdname. See Target 
  1083.            Selection, for more information. 
  1084.  
  1085.  -R sectionname 
  1086.  --remove-section=sectionname 
  1087.            Remove any section named sectionname from the output file.  This 
  1088.            option may be given more than once.  Note that using this option 
  1089.            inappropriately may make the output file unusable. 
  1090.  
  1091.  -s 
  1092.  --strip-all 
  1093.            Remove all symbols. 
  1094.  
  1095.  -g 
  1096.  -S 
  1097.  --strip-debug 
  1098.            Remove debugging symbols only. 
  1099.  
  1100.  --strip-unneeded 
  1101.            Remove all symbols that are not needed for relocation processing. 
  1102.  
  1103.  -K symbolname 
  1104.  --keep-symbol=symbolname 
  1105.            Keep only symbol symbolname from the source file.  This option may 
  1106.            be given more than once. 
  1107.  
  1108.  -N symbolname 
  1109.  --strip-symbol=symbolname 
  1110.            Remove symbol symbolname from the source file. This option may be 
  1111.            given more than once, and may be combined with strip options other 
  1112.            than -K. 
  1113.  
  1114.  -x 
  1115.  --discard-all 
  1116.            Remove non-global symbols. 
  1117.  
  1118.  -X 
  1119.  --discard-locals 
  1120.            Remove compiler-generated local symbols. (These usually start with 
  1121.            `L' or `.'.) 
  1122.  
  1123.  -V 
  1124.  --version 
  1125.            Show the version number for strip. 
  1126.  
  1127.  -v 
  1128.  --verbose 
  1129.            Verbose output: list all object files modified.  In the case of 
  1130.            archives, `strip -v' lists all members of the archive. 
  1131.  
  1132.  
  1133. ΓòÉΓòÉΓòÉ 11. c++filt ΓòÉΓòÉΓòÉ
  1134.  
  1135. c++filt [ -_ | --strip-underscores ]
  1136.         u[ -n | --no-strip-underscores ]
  1137.         [ -s format | --format=format ]
  1138.         [ --help ]  [ --version ]  [ symbol... ]
  1139.  
  1140. The C++ language provides function overloading, which means that you can write 
  1141. many functions with the same name (providing each takes parameters of different 
  1142. types).  All C++ function names are encoded into a low-level assembly label 
  1143. (this process is known as mangling). The c++filt program does the inverse 
  1144. mapping: it decodes (demangles) low-level names into user-level names so that 
  1145. the linker can keep these overloaded functions from clashing. 
  1146.  
  1147. Every alphanumeric word (consisting of letters, digits, underscores, dollars, 
  1148. or periods) seen in the input is a potential label.  If the label decodes into 
  1149. a C++ name, the C++ name replaces the low-level name in the output. 
  1150.  
  1151. You can use c++filt to decipher individual symbols: 
  1152.  
  1153. c++filt symbol
  1154.  
  1155. If no symbol arguments are given, c++filt reads symbol names from the standard 
  1156. input and writes the demangled names to the standard output.  All results are 
  1157. printed on the standard output. 
  1158.  
  1159.  -_ 
  1160.  --strip-underscores 
  1161.            On some systems, both the C and C++ compilers put an underscore in 
  1162.            front of every name.  For example, the C name foo gets the low-level 
  1163.            name _foo.  This option removes the initial underscore.  Whether 
  1164.            c++filt removes the underscore by default is target dependent. 
  1165.  
  1166.  -n 
  1167.  --no-strip-underscores 
  1168.            Do not remove the initial underscore. 
  1169.  
  1170.  -s format 
  1171.  --format=format 
  1172.            gnu nm can decode three different methods of mangling, used by 
  1173.            different C++ compilers.  The argument to this option selects which 
  1174.            method it uses: 
  1175.  
  1176.            gnu 
  1177.                           the one used by the gnu compiler (the default method) 
  1178.  
  1179.            lucid 
  1180.                           the one used by the Lucid compiler 
  1181.  
  1182.            arm 
  1183.                           the one specified by the C++ Annotated Reference 
  1184.                           Manual 
  1185.  
  1186.  --help 
  1187.            Print a summary of the options to c++filt and exit. 
  1188.  
  1189.  --version 
  1190.            Print the version number of c++filt and exit. 
  1191.  
  1192.  Warning: c++filt is a new utility, and the details of its user interface are 
  1193.  subject to change in future releases.  In particular, a command-line option 
  1194.  may be required in the the future to decode a name passed as an argument on 
  1195.  the command line; in other words, 
  1196.  
  1197.   c++filt symbol
  1198.  
  1199.  may in a future release become 
  1200.  
  1201.   c++filt option symbol
  1202.  
  1203.  
  1204. ΓòÉΓòÉΓòÉ 12. nlmconv ΓòÉΓòÉΓòÉ
  1205.  
  1206. nlmconv converts a relocatable object file into a NetWare Loadable Module. 
  1207.  
  1208. Warning: nlmconv is not always built as part of the binary utilities, since it 
  1209. is only useful for NLM targets. 
  1210.  
  1211. nlmconv [ -I bfdname | --input-target=bfdname ]
  1212.         [ -O bfdname | --output-target=bfdname ]
  1213.         [ -T headerfile | --header-file=headerfile ]
  1214.         [ -d | --debug]  [ -l linker | --linker=linker ]
  1215.         [ -h | --help ]  [ -V | --version ]
  1216.         infile outfile
  1217.  
  1218. nlmconv converts the relocatable `i386' object file infile into the NetWare 
  1219. Loadable Module outfile, optionally reading headerfile for NLM header 
  1220. information.  For instructions on writing the NLM command file language used in 
  1221. header files, see the `linkers' section, `NLMLINK' in particular, of the NLM 
  1222. Development and Tools Overview, which is part of the NLM Software Developer's 
  1223. Kit (``NLM SDK''), available from Novell, Inc. nlmconv uses the gnu Binary File 
  1224. Descriptor library to read infile; see BFD, for more information. 
  1225.  
  1226. nlmconv can perform a link step.  In other words, you can list more than one 
  1227. object file for input if you list them in the definitions file (rather than 
  1228. simply specifying one input file on the command line). In this case, nlmconv 
  1229. calls the linker for you. 
  1230.  
  1231.  -I bfdname 
  1232.  --input-target=bfdname 
  1233.            Object format of the input file.  nlmconv can usually determine the 
  1234.            format of a given file (so no default is necessary). See Target 
  1235.            Selection, for more information. 
  1236.  
  1237.  -O bfdname 
  1238.  --output-target=bfdname 
  1239.            Object format of the output file.  nlmconv infers the output format 
  1240.            based on the input format, e.g. for a `i386' input file the output 
  1241.            format is `nlm32-i386'. See Target Selection, for more information. 
  1242.  
  1243.  -T headerfile 
  1244.  --header-file=headerfile 
  1245.            Reads headerfile for NLM header information.  For instructions on 
  1246.            writing the NLM command file language used in header files, see@ see 
  1247.            the `linkers' section, of the NLM Development and Tools Overview, 
  1248.            which is part of the NLM Software Developer's Kit, available from 
  1249.            Novell, Inc. 
  1250.  
  1251.  -d 
  1252.  --debug 
  1253.            Displays (on standard error) the linker command line used by 
  1254.            nlmconv. 
  1255.  
  1256.  -l linker 
  1257.  --linker=linker 
  1258.            Use linker for any linking.  linker can be an abosolute or a 
  1259.            relative pathname. 
  1260.  
  1261.  -h 
  1262.  --help 
  1263.            Prints a usage summary. 
  1264.  
  1265.  -V 
  1266.  --version 
  1267.            Prints the version number for nlmconv. 
  1268.  
  1269.  
  1270. ΓòÉΓòÉΓòÉ 13. Selecting the target system ΓòÉΓòÉΓòÉ
  1271.  
  1272. You can specify three aspects of the target system to the gnu binary file 
  1273. utilities, each in several ways: 
  1274.  
  1275.      the target 
  1276.  
  1277.      the architecture 
  1278.  
  1279.      the linker emulation (which applies to the linker only) 
  1280.  
  1281.  In the following summaries, the lists of ways to specify values are in order 
  1282.  of decreasing precedence.  The ways listed first override those listed later. 
  1283.  
  1284.  The commands to list valid values only list the values for which the programs 
  1285.  you are running were configured.  If they were configured with 
  1286.  `--enable-targets=all', the commands list most of the available values, but a 
  1287.  few are left out; not all targets can be configured in at once because some of 
  1288.  them can only be configured native (on hosts with the same type as the target 
  1289.  system). 
  1290.  
  1291.  Target Selection 
  1292.  Architecture Selection 
  1293.  Linker Emulation Selection 
  1294.  
  1295.  
  1296. ΓòÉΓòÉΓòÉ 13.1. Target Selection ΓòÉΓòÉΓòÉ
  1297.  
  1298. A target is an object file format.  A given target may be supported for 
  1299. multiple architectures (see Architecture Selection). A target selection may 
  1300. also have variations for different operating systems or architectures. 
  1301.  
  1302. The command to list valid target values is `objdump -i' (the first column of 
  1303. output contains the relevant information). 
  1304.  
  1305. Some sample values are: `a.out-hp300bsd', `ecoff-littlemips', 
  1306. `a.out-sunos-big'. 
  1307.  
  1308. objdump Target 
  1309.  
  1310. Ways to specify: 
  1311.  
  1312.    1. command line option: `-b' or `--target' 
  1313.  
  1314.    2. environment variable GNUTARGET 
  1315.  
  1316.    3. deduced from the input file 
  1317.  
  1318.  objcopy and strip Input Target 
  1319.  
  1320.  Ways to specify: 
  1321.  
  1322.    1. command line options: `-I' or `--input-target', or `-F' or `--target' 
  1323.  
  1324.    2. environment variable GNUTARGET 
  1325.  
  1326.    3. deduced from the input file 
  1327.  
  1328.  objcopy and strip Output Target 
  1329.  
  1330.  Ways to specify: 
  1331.  
  1332.    1. command line options: `-O' or `--output-target', or `-F' or `--target' 
  1333.  
  1334.    2. the input target (see ``objcopy and strip Input Target'' above) 
  1335.  
  1336.    3. environment variable GNUTARGET 
  1337.  
  1338.    4. deduced from the input file 
  1339.  
  1340.  nm, size, and strings Target 
  1341.  
  1342.  Ways to specify: 
  1343.  
  1344.    1. command line option: `--target' 
  1345.  
  1346.    2. environment variable GNUTARGET 
  1347.  
  1348.    3. deduced from the input file 
  1349.  
  1350.  Linker Input Target 
  1351.  
  1352.  Ways to specify: 
  1353.  
  1354.    1. command line option: `-b' or `--format' (see Options) 
  1355.  
  1356.    2. script command TARGET (see Option Commands) 
  1357.  
  1358.    3. environment variable GNUTARGET (see Environment) 
  1359.  
  1360.    4. the default target of the selected linker emulation (see Linker Emulation 
  1361.       Selection) 
  1362.  
  1363.  Linker Output Target 
  1364.  
  1365.  Ways to specify: 
  1366.  
  1367.    1. command line option: `-oformat' (see Options) 
  1368.  
  1369.    2. script command OUTPUT_FORMAT (see Option Commands) 
  1370.  
  1371.    3. the linker input target (see ``Linker Input Target'' above) 
  1372.  
  1373.  
  1374. ΓòÉΓòÉΓòÉ 13.2. Architecture selection ΓòÉΓòÉΓòÉ
  1375.  
  1376. An architecture is a type of cpu on which an object file is to run.  Its name 
  1377. may contain a colon, separating the name of the processor family from the name 
  1378. of the particular cpu. 
  1379.  
  1380. The command to list valid architecture values is `objdump -i' (the second 
  1381. column contains the relevant information). 
  1382.  
  1383. Sample values: `m68k:68020', `mips:3000', `sparc'. 
  1384.  
  1385. objdump Architecture 
  1386.  
  1387. Ways to specify: 
  1388.  
  1389.    1. command line option: `-m' or `--architecture' 
  1390.  
  1391.    2. deduced from the input file 
  1392.  
  1393.  objcopy, nm, size, strings Architecture 
  1394.  
  1395.  Ways to specify: 
  1396.  
  1397.    1. deduced from the input file 
  1398.  
  1399.  Linker Input Architecture 
  1400.  
  1401.  Ways to specify: 
  1402.  
  1403.    1. deduced from the input file 
  1404.  
  1405.  Linker Output Architecture 
  1406.  
  1407.  Ways to specify: 
  1408.  
  1409.    1. script command OUTPUT_ARCH (see Option Commands) 
  1410.  
  1411.    2. the default architecture from the linker output target (see Target 
  1412.       Selection) 
  1413.  
  1414.  
  1415. ΓòÉΓòÉΓòÉ 13.3. Linker emulation selection ΓòÉΓòÉΓòÉ
  1416.  
  1417. A linker emulation is a ``personality'' of the linker, which gives the linker 
  1418. default values for the other aspects of the target system. In particular, it 
  1419. consists of 
  1420.  
  1421.      the linker script 
  1422.  
  1423.      the target 
  1424.  
  1425.      several ``hook'' functions that are run at certain stages of the linking 
  1426.       process to do special things that some targets require 
  1427.  
  1428.  The command to list valid linker emulation values is `ld -V'. 
  1429.  
  1430.  Sample values: `hp300bsd', `mipslit', `sun4'. 
  1431.  
  1432.  Ways to specify: 
  1433.  
  1434.    1. command line option: `-m' (see Options) 
  1435.  
  1436.    2. environment variable LDEMULATION 
  1437.  
  1438.    3. compiled-in DEFAULT_EMULATION from `Makefile', which comes from EMUL in 
  1439.       `config/target.mt' 
  1440.  
  1441.  
  1442. ΓòÉΓòÉΓòÉ 14. Index ΓòÉΓòÉΓòÉ
  1443.  
  1444. Sorry, no cp index