{
    "mode": "man",
    "parameter": "readelf",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/readelf/1/json",
    "generated": "2026-08-11T00:32:58Z",
    "synopsis": "readelf [-a|--all]\n[-h|--file-header]\n[-l|--program-headers|--segments]\n[-S|--section-headers|--sections]\n[-g|--section-groups]\n[-t|--section-details]\n[-e|--headers]\n[-s|--syms|--symbols]\n[--dyn-syms|--lto-syms]\n[--sym-base=[0|8|10|16]]\n[--demangle=style|--no-demangle]\n[--quiet]\n[--recurse-limit|--no-recurse-limit]\n[-U method|--unicode=method]\n[-X|--extra-sym-info|--no-extra-sym-info]\n[-n|--notes]\n[-r|--relocs]\n[-u|--unwind]\n[-d|--dynamic]\n[-V|--version-info]\n[-A|--arch-specific]\n[-D|--use-dynamic]\n[-L|--lint|--enable-checks]\n[-x <number or name>|--hex-dump=<number or name>]\n[-p <number or name>|--string-dump=<number or name>]\n[-R <number or name>|--relocated-dump=<number or name>]\n[-z|--decompress]\n[-c|--archive-index]\n[-w[lLiaprmfFsoORtUuTgAck]|\n--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=traceinfo,=traceabbrev,=tracearanges,=gdbindex,=addr,=cuindex,=links]]\n[-wK|--debug-dump=follow-links]\n[-wN|--debug-dump=no-follow-links]\n[-wD|--debug-dump=use-debuginfod]\n[-wE|--debug-dump=do-not-use-debuginfod]\n[-P|--process-links]\n[--dwarf-depth=n]\n[--dwarf-start=n]\n[--ctf=section]\n[--ctf-parent=section]\n[--ctf-symbols=section]\n[--ctf-strings=section]\n[--sframe=section]\n[-I|--histogram]\n[-v|--version]\n[-W|--wide]\n[-T|--silent-truncation]\n[-H|--help]\nelffile...",
    "sections": {
        "NAME": {
            "content": "readelf - display information about ELF files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "readelf [-a|--all]\n[-h|--file-header]\n[-l|--program-headers|--segments]\n[-S|--section-headers|--sections]\n[-g|--section-groups]\n[-t|--section-details]\n[-e|--headers]\n[-s|--syms|--symbols]\n[--dyn-syms|--lto-syms]\n[--sym-base=[0|8|10|16]]\n[--demangle=style|--no-demangle]\n[--quiet]\n[--recurse-limit|--no-recurse-limit]\n[-U method|--unicode=method]\n[-X|--extra-sym-info|--no-extra-sym-info]\n[-n|--notes]\n[-r|--relocs]\n[-u|--unwind]\n[-d|--dynamic]\n[-V|--version-info]\n[-A|--arch-specific]\n[-D|--use-dynamic]\n[-L|--lint|--enable-checks]\n[-x <number or name>|--hex-dump=<number or name>]\n[-p <number or name>|--string-dump=<number or name>]\n[-R <number or name>|--relocated-dump=<number or name>]\n[-z|--decompress]\n[-c|--archive-index]\n[-w[lLiaprmfFsoORtUuTgAck]|\n--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=traceinfo,=traceabbrev,=tracearanges,=gdbindex,=addr,=cuindex,=links]]\n[-wK|--debug-dump=follow-links]\n[-wN|--debug-dump=no-follow-links]\n[-wD|--debug-dump=use-debuginfod]\n[-wE|--debug-dump=do-not-use-debuginfod]\n[-P|--process-links]\n[--dwarf-depth=n]\n[--dwarf-start=n]\n[--ctf=section]\n[--ctf-parent=section]\n[--ctf-symbols=section]\n[--ctf-strings=section]\n[--sframe=section]\n[-I|--histogram]\n[-v|--version]\n[-W|--wide]\n[-T|--silent-truncation]\n[-H|--help]\nelffile...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "readelf displays information about one or more ELF format object files.  The options control\nwhat particular information to display.\n\nelffile... are the object files to be examined.  32-bit and 64-bit ELF files are supported,\nas are archives containing ELF files.\n\nThis program performs a similar function to objdump but it goes into more detail and it\nexists independently of the BFD library, so if there is a bug in BFD then readelf will not be\naffected.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The long and short forms of options, shown here as alternatives, are equivalent.  At least\none option besides -v or -H must be given.\n",
            "subsections": [
                {
                    "name": "-a",
                    "content": "",
                    "flag": "-a"
                },
                {
                    "name": "--all",
                    "content": "Equivalent   to   specifying  --file-header,  --program-headers,  --sections,  --symbols,\n--relocs, --dynamic, --notes, --version-info, --arch-specific, --unwind, --section-groups\nand --histogram.\n\nNote - this option does not enable --use-dynamic itself, so if that option is not present\non the command line then dynamic symbols and dynamic relocs will not be displayed.\n",
                    "long": "--all"
                },
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "--file-header",
                    "content": "Displays the information contained in the ELF header at the start of the file.\n",
                    "long": "--file-header"
                },
                {
                    "name": "-l",
                    "content": "",
                    "flag": "-l"
                },
                {
                    "name": "--program-headers",
                    "content": "",
                    "long": "--program-headers"
                },
                {
                    "name": "--segments",
                    "content": "Displays the information contained in the file's segment headers, if it has any.\n",
                    "long": "--segments"
                },
                {
                    "name": "--quiet",
                    "content": "Suppress \"no symbols\" diagnostic.\n",
                    "long": "--quiet"
                },
                {
                    "name": "-S",
                    "content": "",
                    "flag": "-S"
                },
                {
                    "name": "--sections",
                    "content": "",
                    "long": "--sections"
                },
                {
                    "name": "--section-headers",
                    "content": "Displays the information contained in the file's section headers, if it has any.\n",
                    "long": "--section-headers"
                },
                {
                    "name": "-g",
                    "content": "",
                    "flag": "-g"
                },
                {
                    "name": "--section-groups",
                    "content": "Displays the information contained in the file's section groups, if it has any.\n",
                    "long": "--section-groups"
                },
                {
                    "name": "-t",
                    "content": "",
                    "flag": "-t"
                },
                {
                    "name": "--section-details",
                    "content": "Displays the detailed section information. Implies -S.\n",
                    "long": "--section-details"
                },
                {
                    "name": "-s",
                    "content": "",
                    "flag": "-s"
                },
                {
                    "name": "--symbols",
                    "content": "",
                    "long": "--symbols"
                },
                {
                    "name": "--syms",
                    "content": "Displays the entries in symbol table section of the file, if it has one.  If a symbol has\nversion information associated with it then this  is  displayed  as  well.   The  version\nstring  is  displayed  as  a  suffix to the symbol name, preceded by an @ character.  For\nexample foo@VER1.  If the version is the default  version  to  be  used  when  resolving\nunversioned  references  to the symbol then it is displayed as a suffix preceded by two @\ncharacters.  For example foo@@VER2.\n",
                    "long": "--syms"
                },
                {
                    "name": "--dyn-syms",
                    "content": "Displays the entries in dynamic symbol table section of the file, if  it  has  one.   The\noutput format is the same as the format used by the --syms option.\n",
                    "long": "--dyn-syms"
                },
                {
                    "name": "--lto-syms",
                    "content": "Displays the contents of any LTO symbol tables in the file.\n",
                    "long": "--lto-syms"
                },
                {
                    "name": "--sym-base=[0|8|10|16]",
                    "content": "Forces  the  size  field  of  the  symbol  table to use the given base.  Any unrecognized\noptions will be treated as 0.  --sym-base=0 represents the default and legacy  behaviour.\nThis  will  output  sizes  as decimal for numbers less than 100000.  For sizes 100000 and\ngreater hexadecimal notation will be used with a 0x prefix.  --sym-base=8 will  give  the\nsymbol  sizes  in  octal.   --sym-base=10  will  always give the symbol sizes in decimal.\n--sym-base=16 will always give the symbol sizes in hexadecimal with a 0x prefix.\n",
                    "long": "--sym-base",
                    "arg": "[0|8|10|16]"
                },
                {
                    "name": "-C",
                    "content": "--demangle[=style]\nDecode (demangle) low-level symbol names into user-level names.  This makes C++  function\nnames  readable.   Different  compilers  have  different  mangling  styles.  The optional\ndemangling style argument can be used to choose an appropriate demangling style for  your\ncompiler.\n",
                    "flag": "-C"
                },
                {
                    "name": "--no-demangle",
                    "content": "Do not demangle low-level symbol names.  This is the default.\n",
                    "long": "--no-demangle"
                },
                {
                    "name": "--recurse-limit",
                    "content": "",
                    "long": "--recurse-limit"
                },
                {
                    "name": "--no-recurse-limit",
                    "content": "",
                    "long": "--no-recurse-limit"
                },
                {
                    "name": "--recursion-limit",
                    "content": "",
                    "long": "--recursion-limit"
                },
                {
                    "name": "--no-recursion-limit",
                    "content": "Enables  or  disables  a  limit  on  the  amount of recursion performed whilst demangling\nstrings.  Since the name mangling formats allow for an infinite level of recursion it  is\npossible  to  create  strings  whose  decoding  will  exhaust  the  amount of stack space\navailable on the host machine, triggering a memory fault.  The  limit  tries  to  prevent\nthis from happening by restricting recursion to 2048 levels of nesting.\n\nThe  default  is for this limit to be enabled, but disabling it may be necessary in order\nto demangle truly complicated names.   Note  however  that  if  the  recursion  limit  is\ndisabled  then  stack exhaustion is possible and any bug reports about such an event will\nbe rejected.\n",
                    "long": "--no-recursion-limit"
                },
                {
                    "name": "-U _",
                    "content": "",
                    "flag": "-U"
                },
                {
                    "name": "--unicode=[default|invalid|locale|escape|hex|highlight]",
                    "content": "Controls  the  display  of  non-ASCII  characters  in  identifier  names.   The   default\n(--unicode=locale  or  --unicode=default)  is  to  treat them as multibyte characters and\ndisplay them in the current locale.  All other versions of this option treat the bytes as\nUTF-8 encoded values and attempt to interpret them.  If they cannot be interpreted or  if\nthe  --unicode=invalid option is used then they are displayed as a sequence of hex bytes,\nencloses in curly parethesis characters.\n\nUsing the --unicode=escape option will  display  the  characters  as  as  unicode  escape\nsequences  (\\uxxxx).   Using  the  --unicode=hex  will display the characters as hex byte\nsequences enclosed between angle brackets.\n\nUsing the --unicode=highlight will display the characters as unicode escape sequences but\nit will also highlighted them in red, assuming that colouring is supported by the  output\ndevice.  The colouring is intended to draw attention to the presence of unicode sequences\nwhen they might not be expected.\n",
                    "long": "--unicode",
                    "arg": "[default|invalid|locale|escape|hex|highlight]"
                },
                {
                    "name": "-X",
                    "content": "",
                    "flag": "-X"
                },
                {
                    "name": "--extra-sym-info",
                    "content": "When  displaying  details  of  symbols, include extra information not normally presented.\nCurrently this just adds the name of the section referenced by the symbol's index  field,\nif  there  is  one.   In the future more information may be displayed when this option is\nenabled.\n\nEnabling this option effectively enables  the  --wide  option  as  well,  at  least  when\ndisplaying symbol information.\n",
                    "long": "--extra-sym-info"
                },
                {
                    "name": "--no-extra-sym-info",
                    "content": "Disables the effect of the --extra-sym-info option.  This is the default.\n",
                    "long": "--no-extra-sym-info"
                },
                {
                    "name": "-e",
                    "content": "",
                    "flag": "-e"
                },
                {
                    "name": "--headers",
                    "content": "Display all the headers in the file.  Equivalent to -h -l -S.\n",
                    "long": "--headers"
                },
                {
                    "name": "-n",
                    "content": "",
                    "flag": "-n"
                },
                {
                    "name": "--notes",
                    "content": "Displays the contents of the NOTE segments and/or sections, if any.\n",
                    "long": "--notes"
                },
                {
                    "name": "-r",
                    "content": "",
                    "flag": "-r"
                },
                {
                    "name": "--relocs",
                    "content": "Displays the contents of the file's relocation section, if it has one.\n",
                    "long": "--relocs"
                },
                {
                    "name": "-u",
                    "content": "",
                    "flag": "-u"
                },
                {
                    "name": "--unwind",
                    "content": "Displays  the  contents  of  the  file's  unwind section, if it has one.  Only the unwind\nsections for IA64 ELF files, as well as ARM unwind tables (\".ARM.exidx\"  /  \".ARM.extab\")\nare  currently  supported.   If  support is not yet implemented for your architecture you\ncould try dumping the contents of the .ehframes section using the --debug-dump=frames or\n--debug-dump=frames-interp options.\n",
                    "long": "--unwind"
                },
                {
                    "name": "-d",
                    "content": "",
                    "flag": "-d"
                },
                {
                    "name": "--dynamic",
                    "content": "Displays the contents of the file's dynamic section, if it has one.\n",
                    "long": "--dynamic"
                },
                {
                    "name": "-V",
                    "content": "",
                    "flag": "-V"
                },
                {
                    "name": "--version-info",
                    "content": "Displays the contents of the version sections in the file, it they exist.\n",
                    "long": "--version-info"
                },
                {
                    "name": "-A",
                    "content": "",
                    "flag": "-A"
                },
                {
                    "name": "--arch-specific",
                    "content": "Displays architecture-specific information in the file, if there is any.\n",
                    "long": "--arch-specific"
                },
                {
                    "name": "-D",
                    "content": "",
                    "flag": "-D"
                },
                {
                    "name": "--use-dynamic",
                    "content": "When displaying symbols, this option makes readelf use the  symbol  hash  tables  in  the\nfile's dynamic section, rather than the symbol table sections.\n\nWhen  displaying  relocations,  this option makes readelf display the dynamic relocations\nrather than the static relocations.\n",
                    "long": "--use-dynamic"
                },
                {
                    "name": "-L",
                    "content": "",
                    "flag": "-L"
                },
                {
                    "name": "--lint",
                    "content": "",
                    "long": "--lint"
                },
                {
                    "name": "--enable-checks",
                    "content": "Displays warning messages about possible problems with the file(s)  being  examined.   If\nused  on  its own then all of the contents of the file(s) will be examined.  If used with\none of the dumping options then the warning messages will only be produced for the things\nbeing displayed.\n",
                    "long": "--enable-checks"
                },
                {
                    "name": "-x <number or name>",
                    "content": "",
                    "flag": "-x"
                },
                {
                    "name": "--hex-dump=<number or name>",
                    "content": "Displays the contents of  the  indicated  section  as  a  hexadecimal  bytes.   A  number\nidentifies  a  particular  section  by  index  in  the  section  table;  any other string\nidentifies all sections with that name in the object file.\n",
                    "long": "--hex-dump",
                    "arg": "<number"
                },
                {
                    "name": "-R <number or name>",
                    "content": "",
                    "flag": "-R"
                },
                {
                    "name": "--relocated-dump=<number or name>",
                    "content": "Displays the contents of  the  indicated  section  as  a  hexadecimal  bytes.   A  number\nidentifies  a  particular  section  by  index  in  the  section  table;  any other string\nidentifies all sections with that name in the object file.  The contents of  the  section\nwill be relocated before they are displayed.\n",
                    "long": "--relocated-dump",
                    "arg": "<number"
                },
                {
                    "name": "-p <number or name>",
                    "content": "",
                    "flag": "-p"
                },
                {
                    "name": "--string-dump=<number or name>",
                    "content": "Displays the contents of the indicated section as printable strings.  A number identifies\na  particular  section  by  index  in  the section table; any other string identifies all\nsections with that name in the object file.\n",
                    "long": "--string-dump",
                    "arg": "<number"
                },
                {
                    "name": "-z",
                    "content": "",
                    "flag": "-z"
                },
                {
                    "name": "--decompress",
                    "content": "Requests that the section(s) being dumped by x, R or p options  are  decompressed  before\nbeing displayed.  If the section(s) are not compressed then they are displayed as is.\n",
                    "long": "--decompress"
                },
                {
                    "name": "-c",
                    "content": "",
                    "flag": "-c"
                },
                {
                    "name": "--archive-index",
                    "content": "Displays  the  file  symbol  index  information  contained  in  the header part of binary\narchives.  Performs the same function as the t command to ar, but without using  the  BFD\nlibrary.\n",
                    "long": "--archive-index"
                },
                {
                    "name": "-w[lLiaprmfFsOoRtUuTgAckK]",
                    "content": ""
                },
                {
                    "name": "--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links,=follow-links]",
                    "content": "Displays  the  contents  of  the  DWARF  debug  sections in the file, if any are present.\nCompressed debug sections are automatically decompressed (temporarily)  before  they  are\ndisplayed.   If one or more of the optional letters or words follows the switch then only\nthose type(s) of data will be dumped.  The letters  and  words  refer  to  the  following\ninformation:\n\n\"a\"\n\"=abbrev\"\nDisplays the contents of the .debugabbrev section.\n\n\"A\"\n\"=addr\"\nDisplays the contents of the .debugaddr section.\n\n\"c\"\n\"=cuindex\"\nDisplays the contents of the .debugcuindex and/or .debugtuindex sections.\n\n\"f\"\n\"=frames\"\nDisplay the raw contents of a .debugframe section.\n\n\"F\"\n\"=frames-interp\"\nDisplay the interpreted contents of a .debugframe section.\n\n\"g\"\n\"=gdbindex\"\nDisplays the contents of the .gdbindex and/or .debugnames sections.\n\n\"i\"\n\"=info\"\nDisplays  the contents of the .debuginfo section.  Note: the output from this option\ncan also be restricted by the use of the --dwarf-depth and --dwarf-start options.\n\n\"k\"\n\"=links\"\nDisplays  the  contents  of  the  .gnudebuglink,  .gnudebugaltlink  and  .debugsup\nsections,  if  any  of  them  are present.  Also displays any links to separate dwarf\nobject files (dwo), if they are specified by the DWATGNUdwoname or DWATdwoname\nattributes in the .debuginfo section.\n\n\"K\"\n\"=follow-links\"\nDisplay the contents of any  selected  debug  sections  that  are  found  in  linked,\nseparate  debug info file(s).  This can result in multiple versions of the same debug\nsection being displayed if it exists in more than one file.\n\nIn addition, when displaying DWARF attributes, if a form is found that references the\nseparate debug info file, then the referenced contents will also be displayed.\n\nNote - in some distributions this option is enabled by default.  It can  be  disabled\nvia  the N debug option.  The default can be chosen when configuring the binutils via\nthe --enable-follow-debug-links=yes or  --enable-follow-debug-links=no  options.   If\nthese are not used then the default is to enable the following of debug links.\n\nNote  -  if  support  for  the debuginfod protocol was enabled when the binutils were\nbuilt then this option will also include an attempt to contact any debuginfod servers\nmentioned in the DEBUGINFODURLS environment variable.  This could take some time  to\nresolve.  This behaviour can be disabled via the =do-not-use-debuginfod debug option.\n\n\"N\"\n\"=no-follow-links\"\nDisables the following of links to separate debug info files.\n\n\"D\"\n\"=use-debuginfod\"\nEnables contacting debuginfod servers if there is a need to follow debug links.  This\nis the default behaviour.\n\n\"E\"\n\"=do-not-use-debuginfod\"\nDisables contacting debuginfod servers when there is a need to follow debug links.\n\n\"l\"\n\"=rawline\"\nDisplays the contents of the .debugline section in a raw format.\n\n\"L\"\n\"=decodedline\"\nDisplays the interpreted contents of the .debugline section.\n\n\"m\"\n\"=macro\"\nDisplays the contents of the .debugmacro and/or .debugmacinfo sections.\n\n\"o\"\n\"=loc\"\nDisplays the contents of the .debugloc and/or .debugloclists sections.\n\n\"O\"\n\"=str-offsets\"\nDisplays the contents of the .debugstroffsets section.\n\n\"p\"\n\"=pubnames\"\nDisplays the contents of the .debugpubnames and/or .debuggnupubnames sections.\n\n\"r\"\n\"=aranges\"\nDisplays the contents of the .debugaranges section.\n\n\"R\"\n\"=Ranges\"\nDisplays the contents of the .debugranges and/or .debugrnglists sections.\n\n\"s\"\n\"=str\"\nDisplays  the  contents  of the .debugstr, .debuglinestr and/or .debugstroffsets\nsections.\n\n\"t\"\n\"=pubtype\"\nDisplays the contents of the .debugpubtypes and/or .debuggnupubtypes sections.\n\n\"T\"\n\"=tracearanges\"\nDisplays the contents of the .tracearanges section.\n\n\"u\"\n\"=traceabbrev\"\nDisplays the contents of the .traceabbrev section.\n\n\"U\"\n\"=traceinfo\"\nDisplays the contents of the .traceinfo section.\n\nNote:  displaying   the   contents   of   .debugstaticfuncs,   .debugstaticvars   and\ndebugweaknames sections is not currently supported.\n\n--dwarf-depth=n\nLimit  the  dump  of  the  \".debuginfo\" section to n children.  This is only useful with\n--debug-dump=info.  The default is to print all DIEs; the special value 0 for n will also\nhave this effect.\n\nWith a non-zero value for n, DIEs at or deeper than n levels will not  be  printed.   The\nrange for n is zero-based.\n\n--dwarf-start=n\nPrint  only  DIEs  beginning  with  the  DIE  numbered  n.   This  is  only  useful  with\n--debug-dump=info.\n\nIf specified, this option will suppress printing of any header information and  all  DIEs\nbefore  the  DIE  numbered  n.   Only  siblings and children of the specified DIE will be\nprinted.\n\nThis can be used in conjunction with --dwarf-depth.\n"
                },
                {
                    "name": "-P",
                    "content": "",
                    "flag": "-P"
                },
                {
                    "name": "--process-links",
                    "content": "Display the contents of non-debug sections found in separate  debuginfo  files  that  are\nlinked  to  the  main  file.   This option automatically implies the -wK option, and only\nsections requested by other command line options will be displayed.\n\n--ctf[=section]\nDisplay the contents of the specified CTF section.  CTF sections themselves contain  many\nsubsections, all of which are displayed in order.\n\nBy default, display the name of the section named .ctf, which is the name emitted by ld.\n\n--ctf-parent=member\nIf  the  CTF section contains ambiguously-defined types, it will consist of an archive of\nmany CTF dictionaries, all inheriting from one dictionary containing  unambiguous  types.\nThis  member is by default named .ctf, like the section containing it, but it is possible\nto change this name using the \"ctflinksetmembnamechanger\"  function  at  link  time.\nWhen  looking  at  CTF  archives  that  have  been created by a linker that uses the name\nchanger to rename the parent archive member, --ctf-parent can be used to specify the name\nused for the parent.\n\n--ctf-symbols=section\n--ctf-strings=section\nSpecify the name of another section from which the  CTF  file  can  inherit  strings  and\nsymbols.  By default, the \".symtab\" and its linked string table are used.\n\nIf  either of --ctf-symbols or --ctf-strings is specified, the other must be specified as\nwell.\n",
                    "long": "--process-links"
                },
                {
                    "name": "-I",
                    "content": "",
                    "flag": "-I"
                },
                {
                    "name": "--histogram",
                    "content": "Display a histogram of bucket list lengths when displaying the  contents  of  the  symbol\ntables.\n",
                    "long": "--histogram"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "--version",
                    "content": "Display the version number of readelf.\n",
                    "long": "--version"
                },
                {
                    "name": "-W",
                    "content": "",
                    "flag": "-W"
                },
                {
                    "name": "--wide",
                    "content": "Don't break output lines to fit into 80 columns. By default readelf breaks section header\nand  segment  listing  lines for 64-bit ELF files, so that they fit into 80 columns. This\noption causes readelf to print each section header resp. each segment one a single  line,\nwhich is far more readable on terminals wider than 80 columns.\n",
                    "long": "--wide"
                },
                {
                    "name": "-T",
                    "content": "",
                    "flag": "-T"
                },
                {
                    "name": "--silent-truncation",
                    "content": "Normally when readelf is displaying a symbol name, and it has to truncate the name to fit\ninto  an  80  column  display, it will add a suffix of \"[...]\" to the name.  This command\nline option disables this behaviour, allowing  5  more  characters  of  the  name  to  be\ndisplayed and restoring the old behaviour of readelf (prior to release 2.35).\n",
                    "long": "--silent-truncation"
                },
                {
                    "name": "-H",
                    "content": "",
                    "flag": "-H"
                },
                {
                    "name": "--help",
                    "content": "Display the command-line options understood by readelf.\n\n@file\nRead  command-line  options  from  file.   The  options read are inserted in place of the\noriginal @file option.  If file does not exist, or cannot be read, then the  option  will\nbe treated literally, and not removed.\n\nOptions  in  file are separated by whitespace.  A whitespace character may be included in\nan option by surrounding the entire option  in  either  single  or  double  quotes.   Any\ncharacter  (including  a  backslash)  may  be  included  by prefixing the character to be\nincluded with a backslash.  The file may itself contain  additional  @file  options;  any\nsuch options will be processed recursively.\n",
                    "long": "--help"
                }
            ]
        },
        "SEE ALSO": {
            "content": "objdump(1), and the Info entries for binutils.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 1991-2024 Free Software Foundation, Inc.\n\nPermission  is granted to copy, distribute and/or modify this document under the terms of the\nGNU Free Documentation License, Version 1.3 or  any  later  version  published  by  the  Free\nSoftware Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-\nCover  Texts.   A  copy  of  the  license  is  included  in  the  section  entitled \"GNU Free\nDocumentation License\".\n\nbinutils-2.42                                2026-02-09                                   READELF(1)",
            "subsections": []
        }
    },
    "summary": "readelf - display information about ELF files",
    "flags": [
        {
            "flag": "-a",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--all",
            "arg": null,
            "description": "Equivalent to specifying --file-header, --program-headers, --sections, --symbols, --relocs, --dynamic, --notes, --version-info, --arch-specific, --unwind, --section-groups and --histogram. Note - this option does not enable --use-dynamic itself, so if that option is not present on the command line then dynamic symbols and dynamic relocs will not be displayed."
        },
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--file-header",
            "arg": null,
            "description": "Displays the information contained in the ELF header at the start of the file."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--program-headers",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--segments",
            "arg": null,
            "description": "Displays the information contained in the file's segment headers, if it has any."
        },
        {
            "flag": "",
            "long": "--quiet",
            "arg": null,
            "description": "Suppress \"no symbols\" diagnostic."
        },
        {
            "flag": "-S",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--sections",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--section-headers",
            "arg": null,
            "description": "Displays the information contained in the file's section headers, if it has any."
        },
        {
            "flag": "-g",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--section-groups",
            "arg": null,
            "description": "Displays the information contained in the file's section groups, if it has any."
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--section-details",
            "arg": null,
            "description": "Displays the detailed section information. Implies -S."
        },
        {
            "flag": "-s",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--symbols",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--syms",
            "arg": null,
            "description": "Displays the entries in symbol table section of the file, if it has one. If a symbol has version information associated with it then this is displayed as well. The version string is displayed as a suffix to the symbol name, preceded by an @ character. For example foo@VER1. If the version is the default version to be used when resolving unversioned references to the symbol then it is displayed as a suffix preceded by two @ characters. For example foo@@VER2."
        },
        {
            "flag": "",
            "long": "--dyn-syms",
            "arg": null,
            "description": "Displays the entries in dynamic symbol table section of the file, if it has one. The output format is the same as the format used by the --syms option."
        },
        {
            "flag": "",
            "long": "--lto-syms",
            "arg": null,
            "description": "Displays the contents of any LTO symbol tables in the file."
        },
        {
            "flag": "",
            "long": "--sym-base",
            "arg": "[0|8|10|16",
            "description": "Forces the size field of the symbol table to use the given base. Any unrecognized options will be treated as 0. --sym-base=0 represents the default and legacy behaviour. This will output sizes as decimal for numbers less than 100000. For sizes 100000 and greater hexadecimal notation will be used with a 0x prefix. --sym-base=8 will give the symbol sizes in octal. --sym-base=10 will always give the symbol sizes in decimal. --sym-base=16 will always give the symbol sizes in hexadecimal with a 0x prefix."
        },
        {
            "flag": "-C",
            "long": null,
            "arg": null,
            "description": "--demangle[=style] Decode (demangle) low-level symbol names into user-level names. This makes C++ function names readable. Different compilers have different mangling styles. The optional demangling style argument can be used to choose an appropriate demangling style for your compiler."
        },
        {
            "flag": "",
            "long": "--no-demangle",
            "arg": null,
            "description": "Do not demangle low-level symbol names. This is the default."
        },
        {
            "flag": "",
            "long": "--recurse-limit",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--no-recurse-limit",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--recursion-limit",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--no-recursion-limit",
            "arg": null,
            "description": "Enables or disables a limit on the amount of recursion performed whilst demangling strings. Since the name mangling formats allow for an infinite level of recursion it is possible to create strings whose decoding will exhaust the amount of stack space available on the host machine, triggering a memory fault. The limit tries to prevent this from happening by restricting recursion to 2048 levels of nesting. The default is for this limit to be enabled, but disabling it may be necessary in order to demangle truly complicated names. Note however that if the recursion limit is disabled then stack exhaustion is possible and any bug reports about such an event will be rejected."
        },
        {
            "flag": "-U",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--unicode",
            "arg": "[default|invalid|locale|escape|hex|highlight",
            "description": "Controls the display of non-ASCII characters in identifier names. The default (--unicode=locale or --unicode=default) is to treat them as multibyte characters and display them in the current locale. All other versions of this option treat the bytes as UTF-8 encoded values and attempt to interpret them. If they cannot be interpreted or if the --unicode=invalid option is used then they are displayed as a sequence of hex bytes, encloses in curly parethesis characters. Using the --unicode=escape option will display the characters as as unicode escape sequences (\\uxxxx). Using the --unicode=hex will display the characters as hex byte sequences enclosed between angle brackets. Using the --unicode=highlight will display the characters as unicode escape sequences but it will also highlighted them in red, assuming that colouring is supported by the output device. The colouring is intended to draw attention to the presence of unicode sequences when they might not be expected."
        },
        {
            "flag": "-X",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--extra-sym-info",
            "arg": null,
            "description": "When displaying details of symbols, include extra information not normally presented. Currently this just adds the name of the section referenced by the symbol's index field, if there is one. In the future more information may be displayed when this option is enabled. Enabling this option effectively enables the --wide option as well, at least when displaying symbol information."
        },
        {
            "flag": "",
            "long": "--no-extra-sym-info",
            "arg": null,
            "description": "Disables the effect of the --extra-sym-info option. This is the default."
        },
        {
            "flag": "-e",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--headers",
            "arg": null,
            "description": "Display all the headers in the file. Equivalent to -h -l -S."
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--notes",
            "arg": null,
            "description": "Displays the contents of the NOTE segments and/or sections, if any."
        },
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--relocs",
            "arg": null,
            "description": "Displays the contents of the file's relocation section, if it has one."
        },
        {
            "flag": "-u",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--unwind",
            "arg": null,
            "description": "Displays the contents of the file's unwind section, if it has one. Only the unwind sections for IA64 ELF files, as well as ARM unwind tables (\".ARM.exidx\" / \".ARM.extab\") are currently supported. If support is not yet implemented for your architecture you could try dumping the contents of the .ehframes section using the --debug-dump=frames or --debug-dump=frames-interp options."
        },
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--dynamic",
            "arg": null,
            "description": "Displays the contents of the file's dynamic section, if it has one."
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--version-info",
            "arg": null,
            "description": "Displays the contents of the version sections in the file, it they exist."
        },
        {
            "flag": "-A",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--arch-specific",
            "arg": null,
            "description": "Displays architecture-specific information in the file, if there is any."
        },
        {
            "flag": "-D",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--use-dynamic",
            "arg": null,
            "description": "When displaying symbols, this option makes readelf use the symbol hash tables in the file's dynamic section, rather than the symbol table sections. When displaying relocations, this option makes readelf display the dynamic relocations rather than the static relocations."
        },
        {
            "flag": "-L",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--lint",
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--enable-checks",
            "arg": null,
            "description": "Displays warning messages about possible problems with the file(s) being examined. If used on its own then all of the contents of the file(s) will be examined. If used with one of the dumping options then the warning messages will only be produced for the things being displayed."
        },
        {
            "flag": "-x",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--hex-dump",
            "arg": "<number",
            "description": "Displays the contents of the indicated section as a hexadecimal bytes. A number identifies a particular section by index in the section table; any other string identifies all sections with that name in the object file."
        },
        {
            "flag": "-R",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--relocated-dump",
            "arg": "<number",
            "description": "Displays the contents of the indicated section as a hexadecimal bytes. A number identifies a particular section by index in the section table; any other string identifies all sections with that name in the object file. The contents of the section will be relocated before they are displayed."
        },
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--string-dump",
            "arg": "<number",
            "description": "Displays the contents of the indicated section as printable strings. A number identifies a particular section by index in the section table; any other string identifies all sections with that name in the object file."
        },
        {
            "flag": "-z",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--decompress",
            "arg": null,
            "description": "Requests that the section(s) being dumped by x, R or p options are decompressed before being displayed. If the section(s) are not compressed then they are displayed as is."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--archive-index",
            "arg": null,
            "description": "Displays the file symbol index information contained in the header part of binary archives. Performs the same function as the t command to ar, but without using the BFD library."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Displays the contents of the DWARF debug sections in the file, if any are present. Compressed debug sections are automatically decompressed (temporarily) before they are displayed. If one or more of the optional letters or words follows the switch then only those type(s) of data will be dumped. The letters and words refer to the following information: \"a\" \"=abbrev\" Displays the contents of the .debugabbrev section. \"A\" \"=addr\" Displays the contents of the .debugaddr section. \"c\" \"=cuindex\" Displays the contents of the .debugcuindex and/or .debugtuindex sections. \"f\" \"=frames\" Display the raw contents of a .debugframe section. \"F\" \"=frames-interp\" Display the interpreted contents of a .debugframe section. \"g\" \"=gdbindex\" Displays the contents of the .gdbindex and/or .debugnames sections. \"i\" \"=info\" Displays the contents of the .debuginfo section. Note: the output from this option can also be restricted by the use of the --dwarf-depth and --dwarf-start options. \"k\" \"=links\" Displays the contents of the .gnudebuglink, .gnudebugaltlink and .debugsup sections, if any of them are present. Also displays any links to separate dwarf object files (dwo), if they are specified by the DWATGNUdwoname or DWATdwoname attributes in the .debuginfo section. \"K\" \"=follow-links\" Display the contents of any selected debug sections that are found in linked, separate debug info file(s). This can result in multiple versions of the same debug section being displayed if it exists in more than one file. In addition, when displaying DWARF attributes, if a form is found that references the separate debug info file, then the referenced contents will also be displayed. Note - in some distributions this option is enabled by default. It can be disabled via the N debug option. The default can be chosen when configuring the binutils via the --enable-follow-debug-links=yes or --enable-follow-debug-links=no options. If these are not used then the default is to enable the following of debug links. Note - if support for the debuginfod protocol was enabled when the binutils were built then this option will also include an attempt to contact any debuginfod servers mentioned in the DEBUGINFODURLS environment variable. This could take some time to resolve. This behaviour can be disabled via the =do-not-use-debuginfod debug option. \"N\" \"=no-follow-links\" Disables the following of links to separate debug info files. \"D\" \"=use-debuginfod\" Enables contacting debuginfod servers if there is a need to follow debug links. This is the default behaviour. \"E\" \"=do-not-use-debuginfod\" Disables contacting debuginfod servers when there is a need to follow debug links. \"l\" \"=rawline\" Displays the contents of the .debugline section in a raw format. \"L\" \"=decodedline\" Displays the interpreted contents of the .debugline section. \"m\" \"=macro\" Displays the contents of the .debugmacro and/or .debugmacinfo sections. \"o\" \"=loc\" Displays the contents of the .debugloc and/or .debugloclists sections. \"O\" \"=str-offsets\" Displays the contents of the .debugstroffsets section. \"p\" \"=pubnames\" Displays the contents of the .debugpubnames and/or .debuggnupubnames sections. \"r\" \"=aranges\" Displays the contents of the .debugaranges section. \"R\" \"=Ranges\" Displays the contents of the .debugranges and/or .debugrnglists sections. \"s\" \"=str\" Displays the contents of the .debugstr, .debuglinestr and/or .debugstroffsets sections. \"t\" \"=pubtype\" Displays the contents of the .debugpubtypes and/or .debuggnupubtypes sections. \"T\" \"=tracearanges\" Displays the contents of the .tracearanges section. \"u\" \"=traceabbrev\" Displays the contents of the .traceabbrev section. \"U\" \"=traceinfo\" Displays the contents of the .traceinfo section. Note: displaying the contents of .debugstaticfuncs, .debugstaticvars and debugweaknames sections is not currently supported. --dwarf-depth=n Limit the dump of the \".debuginfo\" section to n children. This is only useful with --debug-dump=info. The default is to print all DIEs; the special value 0 for n will also have this effect. With a non-zero value for n, DIEs at or deeper than n levels will not be printed. The range for n is zero-based. --dwarf-start=n Print only DIEs beginning with the DIE numbered n. This is only useful with --debug-dump=info. If specified, this option will suppress printing of any header information and all DIEs before the DIE numbered n. Only siblings and children of the specified DIE will be printed. This can be used in conjunction with --dwarf-depth."
        },
        {
            "flag": "-P",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--process-links",
            "arg": null,
            "description": "Display the contents of non-debug sections found in separate debuginfo files that are linked to the main file. This option automatically implies the -wK option, and only sections requested by other command line options will be displayed. --ctf[=section] Display the contents of the specified CTF section. CTF sections themselves contain many subsections, all of which are displayed in order. By default, display the name of the section named .ctf, which is the name emitted by ld. --ctf-parent=member If the CTF section contains ambiguously-defined types, it will consist of an archive of many CTF dictionaries, all inheriting from one dictionary containing unambiguous types. This member is by default named .ctf, like the section containing it, but it is possible to change this name using the \"ctflinksetmembnamechanger\" function at link time. When looking at CTF archives that have been created by a linker that uses the name changer to rename the parent archive member, --ctf-parent can be used to specify the name used for the parent. --ctf-symbols=section --ctf-strings=section Specify the name of another section from which the CTF file can inherit strings and symbols. By default, the \".symtab\" and its linked string table are used. If either of --ctf-symbols or --ctf-strings is specified, the other must be specified as well."
        },
        {
            "flag": "-I",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--histogram",
            "arg": null,
            "description": "Display a histogram of bucket list lengths when displaying the contents of the symbol tables."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display the version number of readelf."
        },
        {
            "flag": "-W",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--wide",
            "arg": null,
            "description": "Don't break output lines to fit into 80 columns. By default readelf breaks section header and segment listing lines for 64-bit ELF files, so that they fit into 80 columns. This option causes readelf to print each section header resp. each segment one a single line, which is far more readable on terminals wider than 80 columns."
        },
        {
            "flag": "-T",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--silent-truncation",
            "arg": null,
            "description": "Normally when readelf is displaying a symbol name, and it has to truncate the name to fit into an 80 column display, it will add a suffix of \"[...]\" to the name. This command line option disables this behaviour, allowing 5 more characters of the name to be displayed and restoring the old behaviour of readelf (prior to release 2.35)."
        },
        {
            "flag": "-H",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--help",
            "arg": null,
            "description": "Display the command-line options understood by readelf. @file Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed. Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "objdump",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/objdump/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Display information about ELF files.",
        "examples": [
            {
                "description": "Display all information about the ELF file",
                "command": "readelf -all {{path/to/binary}}"
            },
            {
                "description": "Display all the headers present in the ELF file",
                "command": "readelf --headers {{path/to/binary}}"
            },
            {
                "description": "Display the entries in symbol table section of the ELF file, if it has one",
                "command": "readelf --symbols {{path/to/binary}}"
            },
            {
                "description": "Display ELF header information",
                "command": "readelf --file-header {{path/to/binary}}"
            },
            {
                "description": "Display ELF section header information",
                "command": "readelf --section-headers {{path/to/binary}}"
            }
        ]
    }
}