OS Manuals

/usr/bin/scanelf

From scanelf 1.3.11-r5 (os), captured 2026-11-05 by running scanelf --help (exit 0). permalink

* Scan ELF binaries for stuff

Usage: scanelf [options] <dir1/file1> [dir2 dirN file2 fileN ...]

Options: -[plRmyAXz:xetrnLibSs:k:gN:TaqvF:f:o:E:M:DIYO:ZCBhV]
  -p, --path                * Scan all directories in PATH environment
  -l, --ldpath              * Scan all directories in /etc/ld.so.conf
      --ldcache <arg>       * Use alternate ld.so.cache specified in <arg>
      --use-ldpath          * Use ld.so.conf to show full path (use with -r/-n)
      --root <arg>          * Root directory (use with -l or -p)
  -R, --recursive           * Scan directories recursively
  -m, --mount               * Don't recursively cross mount points
  -y, --symlink             * Don't scan symlinks
  -A, --archives            * Scan archives (.a files)
  -L, --ldcache             * Utilize ld.so.cache to show full path (use with -r/-n)
  -X, --fix                 * Try and 'fix' bad things (use with -r/-e)
  -z, --setpax <arg>        * Sets EI_PAX/PT_PAX_FLAGS to <arg> (use with -Xx)

  -x, --pax                 * Print PaX markings
  -e, --header              * Print GNU_STACK/PT_LOAD markings
  -t, --textrel             * Print TEXTREL information
  -r, --rpath               * Print RPATH information
  -n, --needed              * Print NEEDED information
  -i, --interp              * Print INTERP information
  -b, --bind                * Print BIND information
  -S, --soname              * Print SONAME information
  -s, --symbol <arg>        * Find a specified symbol
  -k, --section <arg>       * Find a specified section
  -N, --lib <arg>           * Find a specified library
  -g, --gmatch              * Use regex rather than string compare (with -s); specify twice for case insensitive
  -T, --textrels            * Locate cause of TEXTREL
  -E, --etype <arg>         * Print only ELF files matching etype ET_DYN,ET_EXEC ...
  -M, --bits <arg>          * Print only ELF files matching numeric bits
  -D, --endian              * Print Endianness
  -I, --osabi               * Print OSABI
  -Y, --eabi                * Print EABI (EM_ARM Only)
  -O, --perms <arg>         * Print only ELF files matching octal permissions
  -Z, --size                * Print ELF file size
  -a, --all                 * Print all useful/simple info

  -q, --quiet               * Only output 'bad' things
  -v, --verbose             * Be verbose (can be specified more than once)
  -F, --format <arg>        * Use specified format for output
  -f, --from <arg>          * Read input stream from a filename
  -o, --file <arg>          * Write output stream to a filename
  -C, --nocolor             * Don't emit color in output
  -B, --nobanner            * Don't display the header
  -h, --help                * Print this help and exit
  -V, --version             * Print version and exit

For more information, see the scanelf(1) manpage.
Options (41)
OptionDescriptionSource
-p, --path* Scan all directories in PATH environmenthelp
-l, --ldpath* Scan all directories in /etc/ld.so.confhelp
--ldcache arg* Use alternate ld.so.cache specified in <arg>help
--use-ldpath* Use ld.so.conf to show full path (use with -r/-n)help
--root arg* Root directory (use with -l or -p)help
-R, --recursive* Scan directories recursivelyhelp
-m, --mount* Don't recursively cross mount pointshelp
-y, --symlink* Don't scan symlinkshelp
-A, --archives* Scan archives (.a files)help
-X, --fix* Try and 'fix' bad things (use with -r/-e)help
-z, --setpax arg* Sets EI_PAX/PT_PAX_FLAGS to <arg> (use with -Xx)help
-x, --pax* Print PaX markingshelp
-e, --header* Print GNU_STACK/PT_LOAD markingshelp
-t, --textrel* Print TEXTREL informationhelp
-r, --rpath* Print RPATH informationhelp
-n, --needed* Print NEEDED informationhelp
-i, --interp* Print INTERP informationhelp
-b, --bind* Print BIND informationhelp
-S, --soname* Print SONAME informationhelp
-s, --symbol arg* Find a specified symbolhelp
-k, --section arg* Find a specified sectionhelp
-N, --lib arg* Find a specified libraryhelp
-g, --gmatch* Use regex rather than string compare (with -s);help
-T, --textrels* Locate cause of TEXTRELhelp
-E, --etype arg* Print only ELF files matching etype ET_DYN,ET_EXEC ...help
-M, --bits arg* Print only ELF files matching numeric bitshelp
-D, --endian* Print Endiannesshelp
-I, --osabi* Print OSABIhelp
-Y, --eabi* Print EABI (EM_ARM Only)help
-O, --perms arg* Print only ELF files matching octal permissionshelp
-Z, --size* Print ELF file sizehelp
-a, --all* Print all useful/simple infohelp
-q, --quiet* Only output 'bad' thingshelp
-v, --verbose* Be verbose (can be specified more than once)help
-F, --format arg* Use specified format for outputhelp
-f, --from arg* Read input stream from a filenamehelp
-o, --file arg* Write output stream to a filenamehelp
-C, --nocolor* Don't emit color in outputhelp
-B, --nobanner* Don't display the headerhelp
-h, --help* Print this help and exithelp
-V, --version* Print version and exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.