1 \input texinfo @c -*- Texinfo -*-
2 @setfilename binutils.info
7 * Binutils: (binutils). The GNU binary utilities "ar", "ld", "objdump",
8 "nm", "size", "strip", and "ranlib".
14 Copyright @copyright{} 1991 Free Software Foundation, Inc.
16 Permission is granted to make and distribute verbatim copies of
17 this manual provided the copyright notice and this permission notice
18 are preserved on all copies.
21 Permission is granted to process this file through TeX and print the
22 results, provided the printed document carries a copying permission
23 notice identical to this one except for the removal of this paragraph
24 (this paragraph not being relevant to the printed manual).
28 Permission is granted to copy and distribute modified versions of this
29 manual under the conditions for verbatim copying, provided also that
30 the entire resulting derived work is distributed under the terms of a
31 permission notice identical to this one.
33 Permission is granted to copy and distribute translations of this manual
34 into another language, under the above conditions for modified versions.
39 @c This file documents the GNU binary utilities "ar", "ld", "objdump", "nm",
40 @c "size", "strip", and "ranlib".
42 @c Copyright (C) 1991 Free Software Foundation, Inc.
44 @c This text may be freely distributed under the terms of the GNU
45 @c General Public License.
48 @setchapternewpage odd
49 @settitle GNU Binary Utilities
54 @title The GNU Binary Utilities
55 @subtitle Version 1.97
57 @subtitle October 1991
58 @author Roland H. Pesch
59 @author Cygnus Support
63 \def\$#1${{#1}} % Kluge: collect RCS revision info without $...$
64 \xdef\manvers{\$Revision$} % For use in headers, footers too
65 {\parskip=0pt \hfill Cygnus Support\par \hfill \manvers\par \hfill
66 \TeX{}info \texinfoversion\par }
69 @vskip 0pt plus 1filll
70 Copyright @copyright{} 1991 Free Software Foundation, Inc.
72 Permission is granted to make and distribute verbatim copies of
73 this manual provided the copyright notice and this permission notice
74 are preserved on all copies.
76 Permission is granted to copy and distribute modified versions of this
77 manual under the conditions for verbatim copying, provided also that
78 the entire resulting derived work is distributed under the terms of a
79 permission notice identical to this one.
81 Permission is granted to copy and distribute translations of this manual
82 into another language, under the above conditions for modified versions.
85 @node Top, ar, (dir), (dir)
89 This brief manual contains preliminary documentation for the GNU binary
90 utilities (collectively version 1.97):
95 Create, modify, and extract from archives
98 List symbols from object files
101 Display information from object files
104 Generate index to archive contents
107 List section sizes and total size
115 * ar:: Create, modify, and extract from archives
116 * ld:(ld)Overview. Combine object and archive files
117 * nm:: List symbols from object files
118 * objdump:: Display information from object files
119 * ranlib:: Generate index to archive contents
120 * size:: List section sizes and total size
121 * strip:: Discard symbols
125 @node ar, nm, Top, Top
130 @cindex collections of files
132 ar [-]@var{p}@var{mod} [ @var{membername} ] @var{archive} @var{files}@dots{}
133 ar -M [ <mri-script ]
136 The GNU @code{ar} program creates, modifies, and extracts from
137 archives. An @dfn{archive} is a single file holding a collection of
138 other files in a structure that makes it possible to retrieve
139 the original individual files (called @dfn{members} of the archive).
141 The original files' contents, mode (permissions), timestamp, owner, and
142 group are preserved in the archive, and may be reconstituted on
146 GNU @code{ar} can maintain archives whose members have names of any
147 length; however, depending on how @code{ar} is configured on your
148 system, a limit on member-name length may be imposed (for compatibility
149 with archive formats maintained with other tools). If it exists, the
150 limit is often 15 characters (typical of formats related to a.out) or 16
151 characters (typical of formats related to coff).
154 @code{ar} is considered a binary utility because archives of this sort
155 are most often used as @dfn{libraries} holding commonly needed
159 @code{ar} will create an index to the symbols defined in relocatable
160 object modules in the archive when you specify the modifier @samp{s}.
161 Once created, this index is updated in the archive whenever @code{ar}
162 makes a change to its contents (save for the @samp{q} update operation).
163 An archive with such an index speeds up linking to the library, and
164 allows routines in the library to call each other without regard to
165 their placement in the archive.
167 You may use @samp{nm -s} or @samp{nm +print-armap} to list this index
168 table. If an archive lacks the table, another form of @code{ar} called
169 @code{ranlib} can be used to add just the table.
171 @cindex compatibility, @code{ar}
172 @cindex @code{ar} compatibility
173 GNU @code{ar} is designed to be compatible with two different
174 facilities. You can control its activity using command-line options,
175 like the different varieties of @code{ar} on Unix systems; or, if you
176 specify the single command-line option @samp{-M}, you can control it
177 with a script supplied via standard input, like the MRI ``librarian''
181 * ar-cmdline:: Controlling @code{ar} on the command line
182 * ar-scripts:: Controlling @code{ar} with a script
186 @node ar-cmdline, ar-scripts, ar, ar
187 @section Controlling @code{ar} on the command line
190 ar [-]@var{p}@var{mod} [ @var{membername} ] @var{archive} @var{files}@dots{}
193 @cindex Unix compatibility, @code{ar}
194 When you use @code{ar} in the Unix style, @code{ar} insists on at least two
195 arguments to execute: one keyletter specifying the @emph{operation}
196 (optionally accompanied by other keyletters specifying
197 @emph{modifiers}), and the archive name to act on.
199 Most operations can also accept further @var{files} arguments,
200 specifying particular files to operate on.
202 GNU @code{ar} allows you to mix the operation code @var{p} and modifier
203 flags @var{mod} in any order, within the first command-line argument.
205 If you wish, you may begin the first command-line argument with a
208 @cindex operations on archive
209 The @var{p} keyletter specifies what operation to execute; it may be
210 any of the following, but you must specify only one of them:
214 @cindex deleting from archive
215 @emph{Delete} modules from the archive. Specify the names of modules to
216 be deleted as @var{files}; the archive is untouched if you
217 specify no files to delete.
219 If you specify the @samp{v} modifier, @code{ar} will list each module
223 @cindex moving in archive
224 Use this operation to @emph{move} members in an archive.
226 The ordering of members in an archive can make a difference in how
227 programs are linked using the library, if a symbol is defined in more
230 If no modifiers are used with @code{m}, any members you name in the
231 @var{files} arguments are moved to the @emph{end} of the archive;
232 you can use the @samp{a}, @samp{b}, or @samp{i} modifiers to move them to a
233 specified place instead.
236 @cindex printing from archive
237 @emph{Print} the specified members of the archive, to the standard
238 output file. If the @samp{v} modifier is specified, show the member
239 name before copying its contents to standard output.
241 If you specify no @var{files}, all the files in the archive are printed.
244 @cindex quick append to archive
245 @emph{Quick append}; add @var{files} to the end of @var{archive},
246 without checking for replacement.
248 The modifiers @samp{a}, @samp{b}, and @samp{i} do @emph{not} affect this
249 operation; new members are always placed at the end of the archive.
251 The modifier @samp{v} makes @code{ar} list each file as it is appended.
253 Since the point of this operation is speed, the archive's symbol table
254 index is not updated, even if it already existed; you can use @samp{ar s} or
255 @code{ranlib} explicitly to update the symbol table index.
258 @cindex replacement in archive
259 Insert @var{files} into @var{archive} (with @emph{replacement}). This
260 operation differs from @samp{q} in that any previously existing members
261 are deleted if their names match those being added.
263 If one of the files named in @var{files} doesn't exist, @code{ar}
264 displays an error message, and leaves undisturbed any existing members
265 of the archive matching that name.
267 By default, new members are added at the end of the file; but you may
268 use one of the modifiers @samp{a}, @samp{b}, or @samp{i} to request
269 placement relative to some existing member.
271 The modifier @samp{v} used with this operation elicits a line of
272 output for each file inserted, along with one of the letters @samp{a} or
273 @samp{r} to indicate whether the file was appended (no old member
274 deleted) or replaced.
277 @cindex contents of archive
278 Display a @emph{table} listing the contents of @var{archive}, or those
279 of the files listed in @var{files} that are present in the
280 archive. Normally only the member name is shown; if you also want to
281 see the modes (permissions), timestamp, owner, group, and size, you can
282 request that by also specifying the @samp{v} modifier.
284 If you do not specify any @var{files}, all files in the archive
287 @cindex repeated names in archive
288 @cindex name duplication in archive
289 If there is more than one file with the same name (say, @samp{fie}) in
290 an archive (say @samp{b.a}), @samp{ar t b.a fie} will list only the
291 first instance; to see them all, you must ask for a complete
292 listing---in our example, @samp{ar t b.a}.
293 @c WRS only; per Gumby, this is implementation-dependent, and in a more
294 @c recent case in fact works the other way.
297 @cindex extract from archive
298 @emph{Extract} members (named @var{files}) from the archive. You can
299 use the @samp{v} modifier with this operation, to request that
300 @code{ar} list each name as it extracts it.
302 If you do not specify any @var{files}, all files in the archive
307 A number of modifiers (@var{mod}) may immediately follow the @var{p}
308 keyletter, to specify variations on an operation's behavior:
312 @cindex relative placement in archive
313 Add new files @emph{after} an existing member of the
314 archive. If you use the modifier @code{a}, the name of an existing archive
315 member must be present as the @var{membername} argument, before the
316 @var{archive} specification.
319 Add new files @emph{before} an existing member of the
320 archive. If you use the modifier @code{b}, the name of an existing archive
321 member must be present as the @var{membername} argument, before the
322 @var{archive} specification. (same as @samp{i}).
325 @cindex creating archives
326 @emph{Create} the archive. The specified @var{archive} is always
327 created if it didn't exist, when you request an update. But a warning is
328 issued unless you specify in advance that you expect to create it, by
332 Insert new files @emph{before} an existing member of the
333 archive. If you use the modifier @code{i}, the name of an existing archive
334 member must be present as the @var{membername} argument, before the
335 @var{archive} specification. (same as @samp{b}).
338 This modifier is accepted but not used.
339 @c whaffor ar l modifier??? presumably compat; with
340 @c what???---pesch@@cygnus.com, 25jan91
343 @cindex dates in archive
344 Preserve the @emph{original} dates of members when extracting them. If
345 you do not specify this modifier, files extracted from the archive
346 will be stamped with the time of extraction.
349 @cindex writing archive index
350 Write an object-file index into the archive, or update an existing one,
351 even if no other change is made to the archive. You may use this modifier
352 flag either with any operation, or alone. Running @samp{ar s} on an
353 archive is equivalent to running @samp{ranlib} on it.
356 @cindex updating an archive
357 Normally, @code{ar r}@dots{} inserts all files
358 listed into the archive. If you would like to insert @emph{only} those
359 of the files you list that are newer than existing members of the same
360 names, use this modifier. The @samp{u} modifier is allowed only for the
361 operation @samp{r} (replace). In particular, the combination @samp{qu} is
362 not allowed, since checking the timestamps would lose any speed
363 advantage from the operation @samp{q}.
366 This modifier requests the @emph{verbose} version of an operation. Many
367 operations display additional information, such as filenames processed,
368 when the modifier @samp{v} is appended.
371 @node ar-scripts, , ar-cmdline, ar
372 @section Controlling @code{ar} with a script
375 ar -M [ <@var{script} ]
378 @cindex MRI compatibility, @code{ar}
379 @cindex scripts, @code{ar}
380 If you use the single command-line option @samp{-M} with @code{ar}, you
381 can control its operation with a rudimentary command language. This
382 form of @code{ar} will operate interactively if standard input is coming
383 directly from a terminal. During interactive use, @code{ar} prompts for
384 input (the prompt is @samp{AR >}), and continues executing even after
385 errors. If you redirect standard input to a script file, no prompts are
386 issued, and @code{ar} will abandon execution (with a nonzero exit code)
389 The @code{ar} command language is @emph{not} designed to be equivalent
390 to the command-line options; in fact, it provides somewhat less control
391 over archives. The only purpose of the command language is to ease the
392 transition to GNU @code{ar} for developers who already have scripts
393 written for the MRI ``librarian'' program.
395 The syntax for the @code{ar} command language is straightforward:
398 commands are recognized in upper or lower case; for example, @code{LIST}
399 is the same as @code{list}. In the following descriptions, commands are
400 shown in upper case for clarity.
403 a single command may appear on each line; it is the first word on the
407 empty lines are allowed, and have no effect.
410 comments are allowed; text after either of the characters @samp{*}
411 or @samp{;} is ignored.
414 Whenever you use a list of names as part of the argument to an @code{ar}
415 command, you can separate the individual names with either commas or
416 blanks. Commas are shown in the explanations below, for clarity.
419 @samp{+} is used as a line continuation character; if @samp{+} appears
420 at the end of a line, the text on the following line is considered part
421 of the current command.
424 Here are the commands you can use in @code{ar} scripts, or when using
425 @code{ar} interactively. Three of them have special significance:
427 @code{OPEN} or @code{CREATE} specify a @dfn{current archive}, which is
428 a temporary file required for most of the other commands.
430 @code{SAVE} commits the changes so far specified by the script. Prior
431 to @code{SAVE}, commands affect only the temporary copy of the current
435 @item ADDLIB @var{archive}
436 @itemx ADDLIB @var{archive} (@var{module}, @var{module}, @dots{} @var{module})
437 Add all the contents of @var{archive} (or, if specified, each named
438 @var{module} from @var{archive}) to the current archive.
440 Requires prior use of @code{OPEN} or @code{CREATE}.
442 @item ADDMOD @var{file}, @var{file}, @dots{} @var{file}
443 @c FIXME! w/Replacement?? If so, like "ar r @var{archive} @var{names}"
444 @c else like "ar q..."
445 Add each named @var{file} as a module in the current archive.
447 Requires prior use of @code{OPEN} or @code{CREATE}.
450 Discard the contents of the current archive, cancelling the effect of
451 any operations since the last @code{SAVE}. May be executed (with no
452 effect) even if no current archive is specified.
454 @item CREATE @var{archive}
455 Creates an archive, and makes it the current archive (required for many
456 other commands). The new archive is created with a temporary name; it
457 is not actually saved as @var{archive} until you use @code{SAVE}.
458 You can overwrite existing archives; similarly, the contents of any
459 existing file named @var{archive} will not be destroyed until @code{SAVE}.
461 @item DELETE @var{module}, @var{module}, @dots{} @var{module}
462 Delete each listed @var{module} from the current archive; equivalent to
463 @samp{ar -d @var{archive} @var{module} @dots{} @var{module}}.
465 Requires prior use of @code{OPEN} or @code{CREATE}.
467 @item DIRECTORY @var{archive} (@var{module}, @dots{} @var{module})
468 @itemx DIRECTORY @var{archive} (@var{module}, @dots{} @var{module}) @var{outputfile}
469 List each named @var{module} present in @var{archive}. The separate
470 command @code{VERBOSE} specifies the form of the output: when verbose
471 output is off, output is like that of @samp{ar -t @var{archive}
472 @var{module}@dots{}}. When verbose output is on, the listing is like
473 @samp{ar -tv @var{archive} @var{module}@dots{}}.
475 Output normally goes to the standard output stream; however, if you
476 specify @var{outputfile} as a final argument, @code{ar} directs the
480 Exit from @code{ar}, with a @code{0} exit code to indicate successful
481 completion. This command does not save the output file; if you have
482 changed the current archive since the last @code{SAVE} command, those
485 @item EXTRACT @var{module}, @var{module}, @dots{} @var{module}
486 Extract each named @var{module} from the current archive, writing them
487 into the current directory as separate files. Equivalent to @samp{ar -x
488 @var{archive} @var{module}@dots{}}.
490 Requires prior use of @code{OPEN} or @code{CREATE}.
493 @c FIXME Tokens but no commands???
500 Display full contents of the current archive, in ``verbose'' style
501 regardless of the state of @code{VERBOSE}. The effect is like @samp{ar
502 tv @var{archive}}). (This single command is a GNU @code{ld}
503 enhancement, rather than present for MRI compatibility.)
505 Requires prior use of @code{OPEN} or @code{CREATE}.
507 @item OPEN @var{archive}
508 Opens an existing archive for use as the current archive (required for
509 many other commands). Any changes as the result of subsequent commands
510 will not actually affect @var{archive} until you next use @code{SAVE}.
512 @item REPLACE @var{module}, @var{module}, @dots{} @var{module}
513 In the current archive, replace each existing @var{module} (named in
514 the @code{REPLACE} arguments) from files in the current working directory.
515 To execute this command without errors, both the file, and the module in
516 the current archive, must exist.
518 Requires prior use of @code{OPEN} or @code{CREATE}.
521 Toggle an internal flag governing the output from @code{DIRECTORY}.
522 When the flag is on, @code{DIRECTORY} output matches output from
523 @samp{ar -tv @dots{}}.
526 Commit your changes to the current archive, and actually save it as a
527 file with the name specified in the last @code{CREATE} or @code{OPEN}
530 Requires prior use of @code{OPEN} or @code{CREATE}.
539 The GNU linker @code{ld} is now described in a separate manual.
540 @xref{Top,, Overview,, Using LD: the GNU linker}.
543 @node nm, objdump, ar, Top
549 nm [ -a | +debug-syms ] [ -g | +extern-only ]
550 [ -s | +print-armap ] [ -o | +print-file-name ]
551 [ -n | +numeric-sort ] [ -p | +no-sort ]
552 [ -r | +reverse-sort ] [ -u | +undefined-only ]
553 [ +target @var{bfdname} ]
554 [ @var{objfiles}@dots{} ]
557 GNU @code{nm} will list the symbols from object files @var{objfiles}.
559 The long and short forms of options, shown here as alternatives, are
563 @item @var{objfiles}@dots{}
565 Object files whose symbols are to be listed. If no object files are
566 listed as arguments, @code{nm} assumes @samp{a.out}.
570 @cindex debugging symbols
571 Display debugger-only symbols; normally these are not listed.
575 @cindex external symbols
576 Display only external symbols.
580 @cindex sorting symbols
581 Don't bother to sort the symbols in any order; just print them in the
586 Sort symbols numerically by their addresses, not alphabetically by their
591 @cindex symbol index, listing
592 When listing symbols from archive members, include the index: a mapping
593 (stored in the archive by @code{ar} or @code{ranlib}) of what modules
594 contain definitions for what names.
597 @itemx +print-file-name
598 @cindex input file name
600 @cindex source file name
601 Precede each symbol by the name of the input file where it was found,
602 rather than identifying the input file once only before all of its
607 Reverse the sense of the sort (whether numeric or alphabetic); let the
610 @item +target @var{bfdname}
612 @cindex object code format
613 Specify an object code format other than your system's default format.
614 @xref{objdump}, for information on listing available formats.
615 @c FIXME what *does* +target/no arg do?
618 @itemx +undefined-only
619 @cindex external symbols
620 @cindex undefined symbols
621 Display only undefined symbols (those external to each object file).
625 @node objdump, ranlib, nm, Top
628 @cindex object file information
632 objdump [ -a ] [ -b @var{bfdname} ] [ -d ] [ -f ]
633 [ -h | --header ] [ -i ] [ -j @var{section} ] [ -l ]
634 [ -m @var{machine} ] [ -r | --reloc ] [ -s ]
635 [ --stabs ] [ -t | --syms ] [ -x ]
636 @var{objfiles}@dots{}
639 @code{objdump} displays information about one or more object files.
640 The options control what particular information to display. This
641 information is mostly useful to programmers who are working on the
642 compilation tools, as opposed to programmers who just want their
643 program to compile and work.
645 The long and short forms of options, shown here as alternatives, are
649 @item @var{objfiles}@dots{}
650 The object files to be examined. When you specify archives,
651 @code{objdump} shows information on each of the member object files.
655 @cindex archive headers
656 If any files from @var{objfiles} are archives, display the archive
657 header information (in a format similar to @samp{ls -l}). Besides the
658 information you could list with @samp{ar tv}, @samp{objdump -a} shows
659 the object file format of each archive member.
661 @c suggest longname --target or --format or --bfd
662 @item -b @var{bfdname}
663 @cindex object code format
664 You can specify a particular object-code format for your object files as
665 @var{bfdname}. This may not be necessary; @var{objdump} can
666 automatically recognize many formats. For example,
668 objdump -b oasys -m vax -h fu.o
671 Displays summary information from the section headers (@samp{-h}) of
672 @file{fu.o}, which is explicitly identified (@samp{-m}) as a Vax object
673 file in the format produced by Oasys compilers. You can list the
674 formats available with the @samp{-i} option.
677 @cindex disassembling object code
678 @cindex machine instructions
679 Disassemble. Display the assembler mnemonics for the machine
680 instructions from @var{objfiles}.
683 @cindex object file header
684 File header. Display summary information from the overall header of
685 each file in @var{objfiles}.
689 @cindex section headers
690 Header. Display summary information from the section headers of the
694 @cindex architectures available
695 @cindex object formats available
696 Display a list showing all architectures and object formats available
697 for specification with @code{-b} or @code{-m}.
699 @c suggest longname --section
701 @cindex section information
702 Display information only for section @var{name}
704 @c suggest longname --label or --linespec
706 @cindex source filenames for object files
707 Label the display (using debugging information) with the source filename
708 and line numbers corresponding to the object code shown.
710 @c suggest longname --architecture
711 @item -m @var{machine}
713 Specify the object files @var{objfiles} are for architecture
714 @var{machine}. You can list available architectures using the @samp{-i}
719 @cindex relocation entries, in object file
720 Relocation. Print the relocation entries of the file.
723 @cindex sections, full contents
724 @cindex object file sections
725 Display the full contents of any sections requested.
730 @cindex debug symbols
731 @cindex ELF object file format
732 Display the full contents of any sections requested. Display the
733 contents of the .stab and .stab.index and .stab.excl sections from an
734 ELF file. This is only useful on systems (such as Solaris 2.0) in which
735 @code{.stab} debugging symbol-table entries are carried in an ELF
736 section. In most other file formats, debugging symbol-table entries are
737 interleaved with linkage symbols, and are visible in the @samp{--syms}
742 @cindex symbol table entries, printing
743 Symbol Table. Print the symbol table entries of the file.
744 This is similar to the information provided by the @samp{nm} program.
747 @cindex all header information, object file
748 @cindex header information, all
749 Display all available header information, including the symbol table and
750 relocation entries. Using @samp{-x} is equivalent to specifying all of
751 @samp{-a -f -h -r -t}.
755 @node ranlib, size, objdump, Top
759 @cindex archive contents
766 @code{ranlib} generates an index to the contents of an archive, and
767 stores it in the archive. The index lists each symbol defined by a
768 member of an archive that is a relocatable object file.
770 You may use @samp{nm -s} or @samp{nm +print-armap} to list this index.
772 An archive with such an index speeds up linking to the library, and
773 allows routines in the library to call each other without regard to
774 their placement in the archive.
776 The GNU @code{ranlib} program is another form of GNU @code{ar}; running
777 @code{ranlib} is completely equivalent to executing @samp{ar -s}.
780 @node size, strip, ranlib, Top
784 @cindex section sizes
787 size [ -A | -B | +format @var{compatibility} ]
788 [ +help ] [ -d | -o | -x | +radix @var{number} ]
789 [ +target @var{bfdname} ] [ -V | +version ]
790 @var{objfiles}@dots{}
793 The GNU @code{size} utility lists the section sizes---and the total
794 size---for each of the object files @var{objfiles} in its argument list.
795 By default, one line of output is generated for each object file or each
796 module in an archive.
798 The command line options have the following meanings:
800 @item @var{objfiles}@dots{}
801 The object files to be examined.
805 @itemx +format @var{compatibility}
806 @cindex size display format
807 Using one of these options, you can choose whether the output from GNU
808 @code{size} resembles output from System V @code{size} (using @samp{-A},
809 or @samp{+format sysv}), or Berkeley @code{size} (using @samp{-B}, or
810 @samp{+format berkeley}). The default is the one-line format similar to
812 @c Bonus for doc-source readers: you can also say +format=strange (or
813 @c anything else that starts with 's') for sysv, and +format=boring (or
814 @c anything else that starts with 'b') for Berkeley.
816 Here is an example of the Berkeley (default) format of output from
819 eg$ size +format Berkeley ranlib size
820 text data bss dec hex filename
821 294880 81920 11592 388392 5ed28 ranlib
822 294880 81920 11888 388688 5ee50 size
826 This is the same data, but displayed closer to System V conventions:
829 eg$ size +format SysV ranlib size
847 Show a summary of acceptable arguments and options.
852 @itemx +radix @var{number}
853 @cindex size number format
854 @cindex radix for section sizes
855 Using one of these options, you can control whether the size of each
856 section is given in decimal (@samp{-d}, or @samp{+radix 10}); octal
857 (@samp{-o}, or @samp{+radix 8}); or hexadecimal (@samp{-x}, or
858 @samp{+radix 16}). In @samp{+radix @var{number}}, only the three
859 values (8, 10, 16) are supported. The total size is always given in two
860 radices; decimal and hexadecimal for @samp{-d} or @samp{-x} output, or
861 octal and hexadecimal if you're using @samp{-o}.
863 @item +target @var{bfdname}
864 @cindex object code format
865 You can specify a particular object-code format for @var{objfiles} as
866 @var{bfdname}. This may not be necessary; @var{size} can
867 automatically recognize many formats. @xref{objdump}, for information
868 on listing available formats.
872 Display version number information on @code{size} itself.
876 @node strip, Index, size, Top
880 @cindex removing symbols
881 @cindex discarding symbols
882 @cindex symbols, discarding
885 strip [ -v ] @var{objfiles}@dots{}
888 GNU @code{strip} will discard all symbols from object files
889 @var{objfiles}. The list of object files may include archives.
891 @code{strip} will not execute unless at least one object file is listed.
894 @emph{WARNING:} @code{strip} modifies the files named in its argument,
895 rather than writing modified copies under different names.
900 Verbose operation: list all object files modified. In the case of
901 archives, @samp{strip -v} will list all members of the archive.
904 @node Index, , strip, Top