size(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

size(1)

size(1)                          User Commands                         size(1)

NAME
       size - print section sizes in bytes of object files

SYNOPSIS
       size [-fFhnoVx] [--scale[=item1,item2,...]] file...

DESCRIPTION
       The  size command produces segment or section size information in bytes
       for each loaded section in ELF object files. size prints  the  size  of
       the text, data, and bss (uninitialized data) segments (or sections) and
       their total.


       size  processes  ELF  object  files  entered on the command line. If an
       archive file is input to the size command, the information for each ob‐
       ject file in the archive is displayed.


       When calculating segment information, the size command prints the total
       file size of the non-writable segments, the  total  file  size  of  the
       writable  segments,  and the total memory size of the writable segments
       minus the total file size of the writable segments.


       If it cannot calculate segment information, size calculates section in‐
       formation. When calculating section information, it  prints  the  total
       size  of  sections  that are allocatable, non-writable, and not NOBITS,
       the total size of the sections that are allocatable, writable, and  not
       NOBITS, and the total size of the writable sections of type NOBITS. NO‐
       BITS sections do not actually take up space in the file.


       If  size  cannot  calculate  either  segment or section information, it
       prints an error message.

OPTIONS
       The following options are supported:

       -f

           Prints the size of each allocatable section, the name of  the  sec‐
           tion,  and  the  total of the section sizes. If there is no section
           data, size prints an error message.


       -F

           Prints the size of each loadable segment, the permission  flags  of
           the segment, then the total of the loadable segment sizes. If there
           is no segment data, size prints an error message.


       -h

           Prints  numbers  in decimal, scaled to a human readable format. The
           -h option is equivalent to using the --scale=max,1024 option.


       -n

           Prints non-loadable segment or non-allocatable  section  sizes.  If
           segment  data  exists, size prints the memory size of each loadable
           segment or file size of each non-loadable segment,  the  permission
           flags,  and  the total size of the segments. If there is no segment
           data, size prints, for each allocatable  and  non-allocatable  sec‐
           tion,  the memory size, the section name, and the total size of the
           sections. If there is no segment or section data,  size  prints  an
           error message.


       -o

           Prints numbers in octal, not decimal.


       --scale[=item1,item2,...]

           Prints numbers in decimal, scaled to a human readable format. Scal‐
           ing  is  done  by  repetitively  dividing by 1024, unless otherwise
           specified. --scale  specified  without  arguments  enables  default
           scaled  output, and is equivalent to --scale=max,1024. See scale(7)
           for a complete description of --scale features.


       -V
       --version

           Print version information.



       -x

           Prints numbers in hexadecimal, not decimal.


       -?
       --help

           Print usage message and immediately exit.



EXAMPLES
       The examples below are typical size output.

       Example 1 Producing size information


         example% size filename
         2724 + 88 + 0 = 2812


       Example 2 Producing allocatable section size information


         example% size -f filename
         26(.text) + 5(.init) + 5(.fini) = 36


       Example 3 Producing loadable segment size information


         example% size -F filename
         2724(r-x) + 88(rwx) + 0(rwx) = 2812


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitydeveloper/base-developer-utilities


SEE ALSO
       as(1), ld(1), ar.h(3HEAD), a.out(5), attributes(7), scale(7)

HISTORY
       Support for the --scale option was added in Oracle Solaris 11.4.30.


       Support for the -h, -?, --help, and --version options was added in Ora‐
       cle Solaris 11.4.0.


       Support for the -F option was added in Solaris 2.0.


       The  size command, with support for the -f, -n, -o, -x, and -V options,
       has been included in all Sun and Oracle releases of Solaris.

Oracle Solaris 11.4               29 Nov 2022                          size(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3