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