aarch64-none-linux-gnu-size.1 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "SIZE 1"
  132. .TH SIZE 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. size \- list section sizes and total size of binary files
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. size [\fB\-A\fR|\fB\-B\fR|\fB\-G\fR|\fB\-\-format=\fR\fIcompatibility\fR]
  142. [\fB\-\-help\fR]
  143. [\fB\-d\fR|\fB\-o\fR|\fB\-x\fR|\fB\-\-radix=\fR\fInumber\fR]
  144. [\fB\-\-common\fR]
  145. [\fB\-t\fR|\fB\-\-totals\fR]
  146. [\fB\-\-target=\fR\fIbfdname\fR] [\fB\-V\fR|\fB\-\-version\fR]
  147. [\fIobjfile\fR...]
  148. .SH "DESCRIPTION"
  149. .IX Header "DESCRIPTION"
  150. The \s-1GNU\s0 \fBsize\fR utility lists the section sizes and the total
  151. size for each of the binary files \fIobjfile\fR on its argument list.
  152. By default, one line of output is generated for each file or each
  153. module if the file is an archive.
  154. .PP
  155. \&\fIobjfile\fR... are the files to be examined. If none are
  156. specified, the file \f(CW\*(C`a.out\*(C'\fR will be used instead.
  157. .SH "OPTIONS"
  158. .IX Header "OPTIONS"
  159. The command-line options have the following meanings:
  160. .IP "\fB\-A\fR" 4
  161. .IX Item "-A"
  162. .PD 0
  163. .IP "\fB\-B\fR" 4
  164. .IX Item "-B"
  165. .IP "\fB\-G\fR" 4
  166. .IX Item "-G"
  167. .IP "\fB\-\-format=\fR\fIcompatibility\fR" 4
  168. .IX Item "--format=compatibility"
  169. .PD
  170. Using one of these options, you can choose whether the output from \s-1GNU\s0
  171. \&\fBsize\fR resembles output from System V \fBsize\fR (using \fB\-A\fR,
  172. or \fB\-\-format=sysv\fR), or Berkeley \fBsize\fR (using \fB\-B\fR, or
  173. \&\fB\-\-format=berkeley\fR). The default is the one-line format similar to
  174. Berkeley's. Alternatively, you can choose the \s-1GNU\s0 format output
  175. (using \fB\-G\fR, or \fB\-\-format=gnu\fR), this is similar to
  176. Berkeley's output format, but sizes are counted differently.
  177. .Sp
  178. Here is an example of the Berkeley (default) format of output from
  179. \&\fBsize\fR:
  180. .Sp
  181. .Vb 4
  182. \& $ size \-\-format=Berkeley ranlib size
  183. \& text data bss dec hex filename
  184. \& 294880 81920 11592 388392 5ed28 ranlib
  185. \& 294880 81920 11888 388688 5ee50 size
  186. .Ve
  187. .Sp
  188. The Berkeley style output counts read only data in the \f(CW\*(C`text\*(C'\fR
  189. column, not in the \f(CW\*(C`data\*(C'\fR column, the \f(CW\*(C`dec\*(C'\fR and \f(CW\*(C`hex\*(C'\fR
  190. columns both display the sum of the \f(CW\*(C`text\*(C'\fR, \f(CW\*(C`data\*(C'\fR, and
  191. \&\f(CW\*(C`bss\*(C'\fR columns in decimal and hexadecimal respectively.
  192. .Sp
  193. The \s-1GNU\s0 format counts read only data in the \f(CW\*(C`data\*(C'\fR column, not
  194. the \f(CW\*(C`text\*(C'\fR column, and only displays the sum of the \f(CW\*(C`text\*(C'\fR,
  195. \&\f(CW\*(C`data\*(C'\fR, and \f(CW\*(C`bss\*(C'\fR columns once, in the \f(CW\*(C`total\*(C'\fR column.
  196. The \fB\-\-radix\fR option can be used to change the number base for
  197. all columns. Here is the same data displayed with \s-1GNU\s0 conventions:
  198. .Sp
  199. .Vb 4
  200. \& $ size \-\-format=GNU ranlib size
  201. \& text data bss total filename
  202. \& 279880 96920 11592 388392 ranlib
  203. \& 279880 96920 11888 388688 size
  204. .Ve
  205. .Sp
  206. This is the same data, but displayed closer to System V conventions:
  207. .Sp
  208. .Vb 7
  209. \& $ size \-\-format=SysV ranlib size
  210. \& ranlib :
  211. \& section size addr
  212. \& .text 294880 8192
  213. \& .data 81920 303104
  214. \& .bss 11592 385024
  215. \& Total 388392
  216. \&
  217. \&
  218. \& size :
  219. \& section size addr
  220. \& .text 294880 8192
  221. \& .data 81920 303104
  222. \& .bss 11888 385024
  223. \& Total 388688
  224. .Ve
  225. .IP "\fB\-\-help\fR" 4
  226. .IX Item "--help"
  227. Show a summary of acceptable arguments and options.
  228. .IP "\fB\-d\fR" 4
  229. .IX Item "-d"
  230. .PD 0
  231. .IP "\fB\-o\fR" 4
  232. .IX Item "-o"
  233. .IP "\fB\-x\fR" 4
  234. .IX Item "-x"
  235. .IP "\fB\-\-radix=\fR\fInumber\fR" 4
  236. .IX Item "--radix=number"
  237. .PD
  238. Using one of these options, you can control whether the size of each
  239. section is given in decimal (\fB\-d\fR, or \fB\-\-radix=10\fR); octal
  240. (\fB\-o\fR, or \fB\-\-radix=8\fR); or hexadecimal (\fB\-x\fR, or
  241. \&\fB\-\-radix=16\fR). In \fB\-\-radix=\fR\fInumber\fR, only the three
  242. values (8, 10, 16) are supported. The total size is always given in two
  243. radices; decimal and hexadecimal for \fB\-d\fR or \fB\-x\fR output, or
  244. octal and hexadecimal if you're using \fB\-o\fR.
  245. .IP "\fB\-\-common\fR" 4
  246. .IX Item "--common"
  247. Print total size of common symbols in each file. When using Berkeley
  248. or \s-1GNU\s0 format these are included in the bss size.
  249. .IP "\fB\-t\fR" 4
  250. .IX Item "-t"
  251. .PD 0
  252. .IP "\fB\-\-totals\fR" 4
  253. .IX Item "--totals"
  254. .PD
  255. Show totals of all objects listed (Berkeley or \s-1GNU\s0 format mode only).
  256. .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
  257. .IX Item "--target=bfdname"
  258. Specify that the object-code format for \fIobjfile\fR is
  259. \&\fIbfdname\fR. This option may not be necessary; \fBsize\fR can
  260. automatically recognize many formats.
  261. .IP "\fB\-V\fR" 4
  262. .IX Item "-V"
  263. .PD 0
  264. .IP "\fB\-\-version\fR" 4
  265. .IX Item "--version"
  266. .PD
  267. Display the version number of \fBsize\fR.
  268. .IP "\fB@\fR\fIfile\fR" 4
  269. .IX Item "@file"
  270. Read command-line options from \fIfile\fR. The options read are
  271. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  272. does not exist, or cannot be read, then the option will be treated
  273. literally, and not removed.
  274. .Sp
  275. Options in \fIfile\fR are separated by whitespace. A whitespace
  276. character may be included in an option by surrounding the entire
  277. option in either single or double quotes. Any character (including a
  278. backslash) may be included by prefixing the character to be included
  279. with a backslash. The \fIfile\fR may itself contain additional
  280. @\fIfile\fR options; any such options will be processed recursively.
  281. .SH "SEE ALSO"
  282. .IX Header "SEE ALSO"
  283. \&\fIar\fR\|(1), \fIobjdump\fR\|(1), \fIreadelf\fR\|(1), and the Info entries for \fIbinutils\fR.
  284. .SH "COPYRIGHT"
  285. .IX Header "COPYRIGHT"
  286. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  287. .PP
  288. Permission is granted to copy, distribute and/or modify this document
  289. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  290. or any later version published by the Free Software Foundation;
  291. with no Invariant Sections, with no Front-Cover Texts, and with no
  292. Back-Cover Texts. A copy of the license is included in the
  293. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".