ranlib: fix it
[odcctools-svp.git] / man / size.1
blob8a997c39f4ddad23794dff94b09347b9a0f040c8
1 .TH SIZE 1 "July 28, 2005" "Apple Computer, Inc."
2 .SH NAME
3 size \- print the size of the sections in an object file
4 .SH SYNOPSIS
5 .B size 
6 [ option ... ] [ object ... ]
7 .SH DESCRIPTION
8 .I Size
9 (without the
10 .B \-m
11 option) prints the (decimal) number of bytes required by the \_\^\_TEXT,
12 \_\^\_DATA and \_\^\_OBJC segments.  All other segments are totaled and
13 that size is listed in the `others' column.  The final two columns is 
14 the sum in decimal and hexadecimal.
15 If no file is specified,
16 .B a.out
17 is used.
18 .PP
19 The options to
20 .IR size (1)
21 are:
22 .TP
23 .B \-
24 Treat the remaining arguments as name of object files not options to
25 .IR size (1).
26 .TP
27 .B \-m
28 Print the sizes of the Mach-O segments and sections as well as the total sizes
29 of the sections in each segment and the total size of the segments in the file.
30 .TP
31 .B \-l
32 When used with the
33 .B \-m
34 option, also print the addresses and offsets of the sections and segments.
35 .TP
36 .B \-x
37 When used with the
38 .B \-m
39 option,
40 print the values in hexadecimal (with leading 0x's) rather than decimal.
41 .TP
42 .BI \-arch " arch_type"
43 Specifies the architecture,
44 .I arch_type,
45 of the file for
46 .IR size (1)
47 to operate on when the file is a universal file.  (See
48 .IR arch (3)
49 for the currently know
50 .IR arch_type s.)
51 The
52 .I arch_type
53 can be "all" to operate on all architectures in the file.
54 The default is to display only the host architecture, if the file contains it;
55 otherwise, all architectures in the file are shown.
56 .SH "SEE ALSO"
57 otool(1)
58 .SH BUGS
59 The size of common symbols can't be reflected in any of the numbers for
60 relocatable object files.