Merge from vendor branch OPENSSH:
[dragonfly.git] / contrib / binutils / binutils / size.1
1 .\" Copyright (c) 1991, 2000 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH size 1 "5 November 1991" "Free Software Foundation" "GNU Development Tools"
4 .de BP
5 .sp
6 .ti \-.2i
7 \(**
8 ..
9
10 .SH NAME
11 size \- list section sizes and total size.
12
13 .SH SYNOPSIS
14 .hy 0
15 .na
16 .TP
17 .B size
18 .RB "[\|" \-A \||\| \-B \||\| \c
19 .BI "\-\-format=" compatibility\c
20 \&\|]
21 .RB "[\|" \-\-help "\|]" 
22 .RB "[\|" \-d \||\| \-o \||\| \-x\c
23 \||\|\c
24 .BI "\-\-radix=" number\c
25 \&\|]
26 .RB "[\|" \c
27 .BI "\-\-target=" bfdname\c
28 \&\|]
29 .RB "[\|" \-V \||\| \-\-version "\|]"  
30 .I objfile\c
31 \&.\|.\|.
32 .ad b
33 .hy 1
34 .SH DESCRIPTION
35 The GNU \c
36 .B size\c
37 \& utility lists the section sizes\(em\&and the total
38 size\(em\&for each of the object files
39 .I objfile
40 in its argument list.
41 By default, one line of output is generated for each object file or each
42 module in an archive.
43
44 .SH OPTIONS
45 .TP
46 .B \-A
47 .TP
48 .B \-B
49 .TP
50 .BI "\-\-format " "compatibility"
51 Using one of these options, you can choose whether the output from GNU
52 \c
53 .B size\c
54 \& resembles output from System V \c
55 .B size\c
56 \& (using `\|\c
57 .B \-A\c
58 \|',
59 or `\|\c
60 .B \-\-format=sysv\c
61 \|'), or Berkeley \c
62 .B size\c
63 \& (using `\|\c
64 .B \-B\c
65 \|', or
66 `\|\c
67 .B \-\-format=berkeley\c
68 \|').  The default is the one-line format similar to
69 Berkeley's.  
70
71 .TP
72 .B \-\-help
73 Show a summary of acceptable arguments and options.
74
75 .TP
76 .B \-d
77 .TP
78 .B \-o
79 .TP
80 .B \-x
81 .TP
82 .BI "\-\-radix " "number"
83 Using one of these options, you can control whether the size of each
84 section is given in decimal (`\|\c
85 .B \-d\c
86 \|', or `\|\c
87 .B \-\-radix 10\c
88 \|'); octal
89 (`\|\c
90 .B \-o\c
91 \|', or `\|\c
92 .B \-\-radix 8\c
93 \|'); or hexadecimal (`\|\c
94 .B \-x\c
95 \|', or
96 `\|\c
97 .B \-\-radix 16\c
98 \|').  In `\|\c
99 .B \-\-radix \c
100 .I number\c
101 \&\c
102 \|', only the three
103 values (8, 10, 16) are supported.  The total size is always given in two
104 radices; decimal and hexadecimal for `\|\c
105 .B \-d\c
106 \|' or `\|\c
107 .B \-x\c
108 \|' output, or
109 octal and hexadecimal if you're using `\|\c
110 .B \-o\c
111 \|'.
112
113 .TP
114 .BI "\-\-target " "bfdname"
115 You can specify a particular object-code format for \c
116 .I objfile\c
117 \& as
118 \c
119 .I bfdname\c
120 \&.  This may not be necessary; \c
121 .I size\c
122 \& can
123 automatically recognize many formats.   See 
124 .BR objdump ( 1 ) 
125 for information
126 on listing available formats.
127
128 .TP
129 .B \-V
130 .TP
131 .B \-\-version
132 Display version number information on \c
133 .B size\c
134 \& itself.
135
136 .SH "SEE ALSO"
137 .RB "`\|" binutils "\|'" 
138 entry in 
139 .BR info ;
140 .IR "The GNU Binary Utilities" ,
141  Roland H. Pesch (October 1991); 
142 .BR ar "(" 1 "),"
143 .BR objdump ( 1 ).
144
145 .SH COPYING
146 Copyright (c) 1991, 2000 Free Software Foundation, Inc.
147 .PP
148 This document is distributed under the terms of the GNU Free
149 Documentation License, version 1.1.  That license is described in the
150 sources for this manual page, but it is not displayed here in order to
151 make this manual more consise.  Copies of this license can also be
152 obtained from: http://www.gnu.org/copyleft/.
153
154 \"  .SH GNU Free Documentation License
155 \"    Version 1.1, March 2000
156
157 \"    Copyright (C) 2000  Free Software Foundation, Inc.
158 \"    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
159      
160 \"    Everyone is permitted to copy and distribute verbatim
161 \"    copies of this license document, but changing it is
162 \"    not allowed.
163 \"  .PP
164 \"  0. PREAMBLE
165 \"  .PP
166 \"  The purpose of this License is to make a manual, textbook, or other
167 \"  written document "free" in the sense of freedom: to assure everyone
168 \"  the effective freedom to copy and redistribute it, with or without
169 \"  modifying it, either commercially or noncommercially.  Secondarily,
170 \"  this License preserves for the author and publisher a way to get
171 \"  credit for their work, while not being considered responsible for
172 \"  modifications made by others.
173 \"  .PP
174 \"  This License is a kind of "copyleft", which means that derivative
175 \"  works of the document must themselves be free in the same sense.  It
176 \"  complements the GNU General Public License, which is a copyleft
177 \"  license designed for free software.
178 \"  .PP
179 \"  We have designed this License in order to use it for manuals for free
180 \"  software, because free software needs free documentation: a free
181 \"  program should come with manuals providing the same freedoms that the
182 \"  software does.  But this License is not limited to software manuals;
183 \"  it can be used for any textual work, regardless of subject matter or
184 \"  whether it is published as a printed book.  We recommend this License
185 \"  principally for works whose purpose is instruction or reference.
186 \"  .PP
187 \"  1. APPLICABILITY AND DEFINITIONS
188 \"  .PP
189 \"  This License applies to any manual or other work that contains a
190 \"  notice placed by the copyright holder saying it can be distributed
191 \"  under the terms of this License.  The "Document", below, refers to any
192 \"  such manual or work.  Any member of the public is a licensee, and is
193 \"  addressed as "you".
194 \"  .PP
195 \"  A "Modified Version" of the Document means any work containing the
196 \"  Document or a portion of it, either copied verbatim, or with
197 \"  modifications and/or translated into another language.
198 \"  .PP
199 \"  A "Secondary Section" is a named appendix or a front-matter section of
200 \"  the Document that deals exclusively with the relationship of the
201 \"  publishers or authors of the Document to the Document's overall subject
202 \"  (or to related matters) and contains nothing that could fall directly
203 \"  within that overall subject.  (For example, if the Document is in part a
204 \"  textbook of mathematics, a Secondary Section may not explain any
205 \"  mathematics.)  The relationship could be a matter of historical
206 \"  connection with the subject or with related matters, or of legal,
207 \"  commercial, philosophical, ethical or political position regarding
208 \"  them.
209 \"  .PP
210 \"  The "Invariant Sections" are certain Secondary Sections whose titles
211 \"  are designated, as being those of Invariant Sections, in the notice
212 \"  that says that the Document is released under this License.
213 \"  .PP
214 \"  The "Cover Texts" are certain short passages of text that are listed,
215 \"  as Front-Cover Texts or Back-Cover Texts, in the notice that says that
216 \"  the Document is released under this License.
217 \"  .PP
218 \"  A "Transparent" copy of the Document means a machine-readable copy,
219 \"  represented in a format whose specification is available to the
220 \"  general public, whose contents can be viewed and edited directly and
221 \"  straightforwardly with generic text editors or (for images composed of
222 \"  pixels) generic paint programs or (for drawings) some widely available
223 \"  drawing editor, and that is suitable for input to text formatters or
224 \"  for automatic translation to a variety of formats suitable for input
225 \"  to text formatters.  A copy made in an otherwise Transparent file
226 \"  format whose markup has been designed to thwart or discourage
227 \"  subsequent modification by readers is not Transparent.  A copy that is
228 \"  not "Transparent" is called "Opaque".
229 \"  .PP
230 \"  Examples of suitable formats for Transparent copies include plain
231 \"  ASCII without markup, Texinfo input format, LaTeX input format, SGML
232 \"  or XML using a publicly available DTD, and standard-conforming simple
233 \"  HTML designed for human modification.  Opaque formats include
234 \"  PostScript, PDF, proprietary formats that can be read and edited only
235 \"  by proprietary word processors, SGML or XML for which the DTD and/or
236 \"  processing tools are not generally available, and the
237 \"  machine-generated HTML produced by some word processors for output
238 \"  purposes only.
239 \"  .PP
240 \"  The "Title Page" means, for a printed book, the title page itself,
241 \"  plus such following pages as are needed to hold, legibly, the material
242 \"  this License requires to appear in the title page.  For works in
243 \"  formats which do not have any title page as such, "Title Page" means
244 \"  the text near the most prominent appearance of the work's title,
245 \"  preceding the beginning of the body of the text.
246 \"  .PP
247 \"  2. VERBATIM COPYING
248 \"  .PP
249 \"  You may copy and distribute the Document in any medium, either
250 \"  commercially or noncommercially, provided that this License, the
251 \"  copyright notices, and the license notice saying this License applies
252 \"  to the Document are reproduced in all copies, and that you add no other
253 \"  conditions whatsoever to those of this License.  You may not use
254 \"  technical measures to obstruct or control the reading or further
255 \"  copying of the copies you make or distribute.  However, you may accept
256 \"  compensation in exchange for copies.  If you distribute a large enough
257 \"  number of copies you must also follow the conditions in section 3.
258 \"  .PP
259 \"  You may also lend copies, under the same conditions stated above, and
260 \"  you may publicly display copies.
261 \"  .PP
262 \"  3. COPYING IN QUANTITY
263 \"  .PP
264 \"  If you publish printed copies of the Document numbering more than 100,
265 \"  and the Document's license notice requires Cover Texts, you must enclose
266 \"  the copies in covers that carry, clearly and legibly, all these Cover
267 \"  Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
268 \"  the back cover.  Both covers must also clearly and legibly identify
269 \"  you as the publisher of these copies.  The front cover must present
270 \"  the full title with all words of the title equally prominent and
271 \"  visible.  You may add other material on the covers in addition.
272 \"  Copying with changes limited to the covers, as long as they preserve
273 \"  the title of the Document and satisfy these conditions, can be treated
274 \"  as verbatim copying in other respects.
275 \"  .PP
276 \"  If the required texts for either cover are too voluminous to fit
277 \"  legibly, you should put the first ones listed (as many as fit
278 \"  reasonably) on the actual cover, and continue the rest onto adjacent
279 \"  pages.
280 \"  .PP
281 \"  If you publish or distribute Opaque copies of the Document numbering
282 \"  more than 100, you must either include a machine-readable Transparent
283 \"  copy along with each Opaque copy, or state in or with each Opaque copy
284 \"  a publicly-accessible computer-network location containing a complete
285 \"  Transparent copy of the Document, free of added material, which the
286 \"  general network-using public has access to download anonymously at no
287 \"  charge using public-standard network protocols.  If you use the latter
288 \"  option, you must take reasonably prudent steps, when you begin
289 \"  distribution of Opaque copies in quantity, to ensure that this
290 \"  Transparent copy will remain thus accessible at the stated location
291 \"  until at least one year after the last time you distribute an Opaque
292 \"  copy (directly or through your agents or retailers) of that edition to
293 \"  the public.
294 \"  .PP
295 \"  It is requested, but not required, that you contact the authors of the
296 \"  Document well before redistributing any large number of copies, to give
297 \"  them a chance to provide you with an updated version of the Document.
298 \"  .PP
299 \"  4. MODIFICATIONS
300 \"  .PP
301 \"  You may copy and distribute a Modified Version of the Document under
302 \"  the conditions of sections 2 and 3 above, provided that you release
303 \"  the Modified Version under precisely this License, with the Modified
304 \"  Version filling the role of the Document, thus licensing distribution
305 \"  and modification of the Modified Version to whoever possesses a copy
306 \"  of it.  In addition, you must do these things in the Modified Version:
307 \"  .PP
308 \"  A. Use in the Title Page (and on the covers, if any) a title distinct
309 \"  from that of the Document, and from those of previous versions
310 \"  (which should, if there were any, be listed in the History section
311 \"  of the Document).  You may use the same title as a previous version
312 \"  if the original publisher of that version gives permission.
313 \"  .PP
314 \"  B. List on the Title Page, as authors, one or more persons or entities
315 \"  responsible for authorship of the modifications in the Modified
316 \"  Version, together with at least five of the principal authors of the
317 \"  Document (all of its principal authors, if it has less than five).
318 \"  .PP
319 \"  C. State on the Title page the name of the publisher of the
320 \"  Modified Version, as the publisher.
321 \"  .PP
322 \"  D. Preserve all the copyright notices of the Document.
323 \"  .PP
324 \"  E. Add an appropriate copyright notice for your modifications
325 \"  adjacent to the other copyright notices.
326 \"  .PP
327 \"  F. Include, immediately after the copyright notices, a license notice
328 \"  giving the public permission to use the Modified Version under the
329 \"  terms of this License, in the form shown in the Addendum below.
330 \"  Preserve in that license notice the full lists of Invariant Sections
331 \"  and required Cover Texts given in the Document's license notice.
332 \"  .PP
333 \"  H. Include an unaltered copy of this License.
334 \"  .PP
335 \"  I. Preserve the section entitled "History", and its title, and add to
336 \"  it an item stating at least the title, year, new authors, and
337 \"  publisher of the Modified Version as given on the Title Page.  If
338 \"  there is no section entitled "History" in the Document, create one
339 \"  stating the title, year, authors, and publisher of the Document as
340 \"  given on its Title Page, then add an item describing the Modified
341 \"  Version as stated in the previous sentence.
342 \"  .PP
343 \"  J. Preserve the network location, if any, given in the Document for
344 \"  public access to a Transparent copy of the Document, and likewise
345 \"  the network locations given in the Document for previous versions
346 \"  it was based on.  These may be placed in the "History" section.
347 \"  You may omit a network location for a work that was published at
348 \"  least four years before the Document itself, or if the original
349 \"  publisher of the version it refers to gives permission.
350 \"  .PP
351 \"  K. In any section entitled "Acknowledgements" or "Dedications",
352 \"  preserve the section's title, and preserve in the section all the
353 \"  substance and tone of each of the contributor acknowledgements
354 \"  and/or dedications given therein.
355 \"  .PP
356 \"  L. Preserve all the Invariant Sections of the Document,
357 \"  unaltered in their text and in their titles.  Section numbers
358 \"  or the equivalent are not considered part of the section titles.
359 \"  .PP
360 \"  M. Delete any section entitled "Endorsements".  Such a section
361 \"  may not be included in the Modified Version.
362 \"  .PP
363 \"  N. Do not retitle any existing section as "Endorsements"
364 \"  or to conflict in title with any Invariant Section.
365 \"  .PP
366 \"  If the Modified Version includes new front-matter sections or
367 \"  appendices that qualify as Secondary Sections and contain no material
368 \"  copied from the Document, you may at your option designate some or all
369 \"  of these sections as invariant.  To do this, add their titles to the
370 \"  list of Invariant Sections in the Modified Version's license notice.
371 \"  These titles must be distinct from any other section titles.
372 \"  .PP
373 \"  You may add a section entitled "Endorsements", provided it contains
374 \"  nothing but endorsements of your Modified Version by various
375 \"  parties--for example, statements of peer review or that the text has
376 \"  been approved by an organization as the authoritative definition of a
377 \"  standard.
378 \"  .PP
379 \"  You may add a passage of up to five words as a Front-Cover Text, and a
380 \"  passage of up to 25 words as a Back-Cover Text, to the end of the list
381 \"  of Cover Texts in the Modified Version.  Only one passage of
382 \"  Front-Cover Text and one of Back-Cover Text may be added by (or
383 \"  through arrangements made by) any one entity.  If the Document already
384 \"  includes a cover text for the same cover, previously added by you or
385 \"  by arrangement made by the same entity you are acting on behalf of,
386 \"  you may not add another; but you may replace the old one, on explicit
387 \"  permission from the previous publisher that added the old one.
388 \"  .PP
389 \"  The author(s) and publisher(s) of the Document do not by this License
390 \"  give permission to use their names for publicity for or to assert or
391 \"  imply endorsement of any Modified Version.
392 \"  .PP
393
394 \"  5. COMBINING DOCUMENTS
395 \"  .PP
396 \"  You may combine the Document with other documents released under this
397 \"  License, under the terms defined in section 4 above for modified
398 \"  versions, provided that you include in the combination all of the
399 \"  Invariant Sections of all of the original documents, unmodified, and
400 \"  list them all as Invariant Sections of your combined work in its
401 \"  license notice.
402 \"  .PP
403 \"  The combined work need only contain one copy of this License, and
404 \"  multiple identical Invariant Sections may be replaced with a single
405 \"  copy.  If there are multiple Invariant Sections with the same name but
406 \"  different contents, make the title of each such section unique by
407 \"  adding at the end of it, in parentheses, the name of the original
408 \"  author or publisher of that section if known, or else a unique number.
409 \"  Make the same adjustment to the section titles in the list of
410 \"  Invariant Sections in the license notice of the combined work.
411 \"  .PP
412 \"  In the combination, you must combine any sections entitled "History"
413 \"  in the various original documents, forming one section entitled
414 \"  "History"; likewise combine any sections entitled "Acknowledgements",
415 \"  and any sections entitled "Dedications".  You must delete all sections
416 \"  entitled "Endorsements."
417 \"  .PP
418
419 \"  6. COLLECTIONS OF DOCUMENTS
420 \"  .PP
421 \"  You may make a collection consisting of the Document and other documents
422 \"  released under this License, and replace the individual copies of this
423 \"  License in the various documents with a single copy that is included in
424 \"  the collection, provided that you follow the rules of this License for
425 \"  verbatim copying of each of the documents in all other respects.
426 \"  .PP
427 \"  You may extract a single document from such a collection, and distribute
428 \"  it individually under this License, provided you insert a copy of this
429 \"  License into the extracted document, and follow this License in all
430 \"  other respects regarding verbatim copying of that document.
431 \"  .PP
432
433 \"  7. AGGREGATION WITH INDEPENDENT WORKS
434 \"  .PP
435 \"  A compilation of the Document or its derivatives with other separate
436 \"  and independent documents or works, in or on a volume of a storage or
437 \"  distribution medium, does not as a whole count as a Modified Version
438 \"  of the Document, provided no compilation copyright is claimed for the
439 \"  compilation.  Such a compilation is called an "aggregate", and this
440 \"  License does not apply to the other self-contained works thus compiled
441 \"  with the Document, on account of their being thus compiled, if they
442 \"  are not themselves derivative works of the Document.
443 \"  .PP
444 \"  If the Cover Text requirement of section 3 is applicable to these
445 \"  copies of the Document, then if the Document is less than one quarter
446 \"  of the entire aggregate, the Document's Cover Texts may be placed on
447 \"  covers that surround only the Document within the aggregate.
448 \"  Otherwise they must appear on covers around the whole aggregate.
449 \"  .PP
450
451 \"  8. TRANSLATION
452 \"  .PP
453 \"  Translation is considered a kind of modification, so you may
454 \"  distribute translations of the Document under the terms of section 4.
455 \"  Replacing Invariant Sections with translations requires special
456 \"  permission from their copyright holders, but you may include
457 \"  translations of some or all Invariant Sections in addition to the
458 \"  original versions of these Invariant Sections.  You may include a
459 \"  translation of this License provided that you also include the
460 \"  original English version of this License.  In case of a disagreement
461 \"  between the translation and the original English version of this
462 \"  License, the original English version will prevail.
463 \"  .PP
464
465 \"  9. TERMINATION
466 \"  .PP
467 \"  You may not copy, modify, sublicense, or distribute the Document except
468 \"  as expressly provided for under this License.  Any other attempt to
469 \"  copy, modify, sublicense or distribute the Document is void, and will
470 \"  automatically terminate your rights under this License.  However,
471 \"  parties who have received copies, or rights, from you under this
472 \"  License will not have their licenses terminated so long as such
473 \"  parties remain in full compliance.
474 \"  .PP
475
476 \"  10. FUTURE REVISIONS OF THIS LICENSE
477 \"  .PP
478 \"  The Free Software Foundation may publish new, revised versions
479 \"  of the GNU Free Documentation License from time to time.  Such new
480 \"  versions will be similar in spirit to the present version, but may
481 \"  differ in detail to address new problems or concerns.  See
482 \"  http://www.gnu.org/copyleft/.
483 \"  .PP
484 \"  Each version of the License is given a distinguishing version number.
485 \"  If the Document specifies that a particular numbered version of this
486 \"  License "or any later version" applies to it, you have the option of
487 \"  following the terms and conditions either of that specified version or
488 \"  of any later version that has been published (not as a draft) by the
489 \"  Free Software Foundation.  If the Document does not specify a version
490 \"  number of this License, you may choose any version ever published (not
491 \"  as a draft) by the Free Software Foundation.
492 \"  .PP
493
494 \"  ADDENDUM: How to use this License for your documents
495 \"  .PP
496 \"  To use this License in a document you have written, include a copy of
497 \"  the License in the document and put the following copyright and
498 \"  license notices just after the title page:
499 \"  .PP
500 \"      Copyright (c)  YEAR  YOUR NAME.
501 \"      Permission is granted to copy, distribute and/or
502 \"      modify this document under the terms of the GNU
503 \"      Free Documentation License, Version 1.1 or any later
504 \"      version published by the Free Software Foundation;
505 \"      with the Invariant Sections being LIST THEIR TITLES,
506 \"      with the Front-Cover Texts being LIST, and with the
507 \"      Back-Cover Texts being LIST.  A copy of the license
508 \"      is included in the section entitled "GNU Free
509 \"      Documentation License".
510 \"  .PP
511 \"  If you have no Invariant Sections, write "with no Invariant Sections"
512 \"  instead of saying which ones are invariant.  If you have no
513 \"  Front-Cover Texts, write "no Front-Cover Texts" instead of
514 \"  "Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
515 \"  .PP
516 \"  If your document contains nontrivial examples of program code, we
517 \"  recommend releasing these examples in parallel under your choice of
518 \"  free software license, such as the GNU General Public License,
519 \"  to permit their use in free software.