* archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
[deliverable/binutils-gdb.git] / binutils / size.1
CommitLineData
2c8df22d
RP
1.\" Copyright (c) 1991 Free Software Foundation
2.\" See section COPYING for conditions for redistribution
2c8df22d
RP
3.TH size 1 "5 November 1991" "cygnus support" "GNU Development Tools"
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
938fa52b 11size \- list section sizes and total size.
2c8df22d
RP
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
17.B size
18.RB "[\|" \-A \||\| \-B \||\| \c
1f72cab1 19.BI "\-\-format=" compatibility\c
2c8df22d 20\&\|]
1f72cab1 21.RB "[\|" \-\-help "\|]"
2c8df22d
RP
22.RB "[\|" \-d \||\| \-o \||\| \-x\c
23\||\|\c
1f72cab1 24.BI "\-\-radix=" number\c
2c8df22d
RP
25\&\|]
26.RB "[\|" \c
1f72cab1 27.BI "\-\-target=" bfdname\c
2c8df22d 28\&\|]
1f72cab1
DM
29.RB "[\|" \-V \||\| \-\-version "\|]"
30.I objfile\c
2c8df22d
RP
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
b26ac613
DM
38size\(em\&for each of the object files
39.I objfile
40in its argument list.
2c8df22d
RP
41By default, one line of output is generated for each object file or each
42module in an archive.
43
44.SH OPTIONS
2c8df22d
RP
45.TP
46.B \-A
47.TP
48.B \-B
49.TP
5740d9df 50.BI "\-\-format " "compatibility"
2c8df22d
RP
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
eae04238 60.B \-\-format=sysv\c
2c8df22d
RP
61\|'), or Berkeley \c
62.B size\c
63\& (using `\|\c
64.B \-B\c
65\|', or
66`\|\c
eae04238 67.B \-\-format=berkeley\c
2c8df22d
RP
68\|'). The default is the one-line format similar to
69Berkeley's.
70
71.TP
1f72cab1 72.B \-\-help
2c8df22d
RP
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
5740d9df 82.BI "\-\-radix " "number"
2c8df22d
RP
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
1f72cab1 87.B \-\-radix 10\c
2c8df22d
RP
88\|'); octal
89(`\|\c
90.B \-o\c
91\|', or `\|\c
1f72cab1 92.B \-\-radix 8\c
2c8df22d
RP
93\|'); or hexadecimal (`\|\c
94.B \-x\c
95\|', or
96`\|\c
1f72cab1 97.B \-\-radix 16\c
2c8df22d 98\|'). In `\|\c
1f72cab1 99.B \-\-radix \c
2c8df22d
RP
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
5740d9df 114.BI "\-\-target " "bfdname"
2c8df22d 115You can specify a particular object-code format for \c
1f72cab1 116.I objfile\c
2c8df22d
RP
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
1f72cab1 131.B \-\-version
2c8df22d
RP
132Display version number information on \c
133.B size\c
134\& itself.
135
2c8df22d
RP
136.SH "SEE ALSO"
137.RB "`\|" binutils "\|'"
138entry in
b26ac613 139.BR info ;
5740d9df 140.IR "The GNU Binary Utilities" ,
b26ac613 141 Roland H. Pesch (October 1991);
2c8df22d
RP
142.BR ar "(" 1 "),"
143.BR objdump ( 1 ).
144
145.SH COPYING
146Copyright (c) 1991 Free Software Foundation, Inc.
147.PP
148Permission is granted to make and distribute verbatim copies of
149this manual provided the copyright notice and this permission notice
150are preserved on all copies.
151.PP
152Permission is granted to copy and distribute modified versions of this
153manual under the conditions for verbatim copying, provided that the
154entire resulting derived work is distributed under the terms of a
155permission notice identical to this one.
156.PP
157Permission is granted to copy and distribute translations of this
158manual into another language, under the above conditions for modified
159versions, except that this permission notice may be included in
160translations approved by the Free Software Foundation instead of in
161the original English.
This page took 0.397626 seconds and 4 git commands to generate.