📄 elfls.1
字号:
.TH ELFLS 1 "July 1999".LO 1.SH NAMEelfls \- display the contents of an ELF file.SH SYNOPSIS.B elfls[\-hvPScdEip] [\-w N] FILE....SH DESCRIPTION.B elflsexamines an ELF file, reads the program header table and the sectionheader table, and displays a synopsis of the contents..SH OPTIONS.TP.BI \-hDisplay help and exit..TP.BI \-vDisplay version number and exit..TP.BI \-PSuppress the listing of the program header table..TP.BI \-SSuppress the listing of the section header table..TP.BI \-cInclude the listing of the source files..TP.BI \-dInclude the listing of the program's dependencies..TP.BI \-EDon't examines the contents of the ELF identifier. By default.B elflsverifies that a version 1 ELF identifier is present, and indicates a32-bit ELF file of the proper endianness. Use of this option skipsthis verification..TP.BI \-iDon't treat small entries specially. By default, program and sectionheader entries whose referenced contents are mainly or entirely short,null-terminated strings are listed by simply displaying the string(namely.IR interpreter ,.IR comment ,and.I notesections). Use of this optioncauses such entries to be displayed the same as other entries..TP.BI \-pSuppress display of positions of entries within the file..TP.BI \-w " N"Set the maximum width of the lines of the output to.IR N ..I Ncan be zero to indicate no maximum width..SH PROGRAM OUTPUTThe output of the program, for each ELF file given on the commandline, is as follows:.P.I file name.br.I dependencies.br.I source files.br.I program header table.br.I section header table.PThe first line of the output shows the name of the file, and thearchitecture it was created for. The file name will be suffixed withan asterisk.I *if the file is a binary executable, or an ampersand.I &if the file is a shared library. Otherwise, the file is an objectfile. (This is the only line that is guaranteed to be output. Theother information is not shown if the data is not applicable, notpresent in the file, or suppressed via the command-line options.).PAfter the file name is shown the list of shared-object libraries withwhich the file is dynamically linked, if any..PNext is shown the list of the source files which were used to buildthe file, presuming this information is available..PThe list of entries in the program header table appears next. Seebelow for a detailed description of the output. Binary executables andshared libraries always contain a program header table..PFinally, the entries in the section header table are displayed. Seebelow for a detailed description of the output. ELF files almostalways contain a section header table, although they are onlyrequired for object files..SH PROGRAM HEADER TABLEThe entries in the program header table are displayed in followingformat:.P.B " ind T rwx pos size address".TP.BI indThe index number of the entry in the program header table..TP.BI TA letter indicating the entry's type. The possible types are:.TP\ \ PProgram data: machine language instructions or data used by theprogram proper..TP\ \ TThe program header table..TP\ \ LThe dynamic linking information section..TP\ \ IThe interpreter specification. Typically, this will be the pathname ofthe dynamic linker..TP\ \ NThe note section, which typically includes the name and version numberof the program that created the file..TP.BI rwxFlags indicating memory permissions for the contents of this entry..I rindicates that the contents are to be loaded into readable memory,.I windicates that the memory is to be writeable, and.I xindicates that the memory is to be executable. An.I scan also appear in the final position, which additionally indicatesthat this section contains the program's starting point..TP.BI posA hexadecimal number indicating the position within the file of thisentry's contents..TP.BI sizeA hexadecimal number indicating the size of the entry's contents..TP.BI addressA hexadecimal number indicating the (virtual) memory address at whichto load this entry's contents..PA hexadecimal number at the end of the entry prefixed with a.I +indicates by how much the size of this entry should be larger inmemory than it is in the file (with the extra bytes at the end to beinitialized to zeroes)..PNote that, unless the.I \-iswitch is used, interpreter and note entries in the program headertable are simply displayed as a string indicating their contents..SH SECTION HEADER TABLEThe entries in the section header table are displayed in the followingformat:.P.B " ind T rwx pos size name".TP.BI indThe index number of the entry in the section header table..TP.BI TA letter indicating the entry's type. The possible types are:.TP\ \ PProgram data: machine language instructions or data that are part ofthe program proper..TP\ \ 0Zero-initialized program data: memory is to be allocated as usual forthis entry, but no data is present in the file. The memory is insteadinitialized to all bits zero..TP\ \ SA table of the symbols used in the file..TP\ \ DA symbol table, the contents of which are typically symbolsspecifically needed for dynamic linking..TP\ \ $A string table..TP\ \ HThe hash table of symbols used for dynamic linking..TP\ \ LThe dynamic linking information section..TP\ \ IThe interpreter specification. Typically, this will be the pathname ofthe dynamic linker..TP\ \ RA list of relocation records..TP\ \ AA list of relocation records with explicit addends..TP\ \ UA list of version definition records..TP\ \ VA list of version dependencies for the program..TP\ \ WAn array of version symbol identifiers (used by the previous twosections)..TP\ \ NThe note section, which typically includes the name and version numberof the program that created the file..TP\ \ CA comment section: unspecified auxiliary information, typicallyinserted by the program that created the file..TP.BI rwxFlags indicating the memory usage and permission for this entry..I rindicates that the contents are to be loaded into memory duringprocess execution,.I windicates that the contents are to be writeable during processexecution, and.I xindicates that the contents contain machine-executable instructions..TP.BI posA hexadecimal number indicating the position within the file of thisentry's contents..TP.BI sizeA hexadecimal number indicating the size of the entry's contents..TP.BI nameThe name of this section. If the section is a list of relocationentries, then the name will be suffixed with a colon and a number, thenumber indicating the index of the section to which the relocationinformation applies. Furthermore, several sections types containinformation that refer to strings and/or symbols, which are containedin a string table section and/or symbol hash table section. Suchsections will have a number in square brackets after the name,indicating the index of this section. An.I Sin square brackets appearing after the name of a string table sectionindicates the string table that contains the section names..PNote that, unless the.I \-iswitch is used, interpreter, comment and note entries in the programheader table are simply displayed as a string indicating theircontents..SH SEE ALSO.IR objdump (1).PThe Portable Formats Specification for ELF version 1.1, created by theTIS (Tool Interface Standards), can currently be found at thefollowing locations:.TP.B ftp://tsx.mit.edu/pub/linux/packages/GCC/ELF.doc.tar.gza compressed archive of the documentation in Postscript format..TP.B http://www.muppetlabs.com/~breadbox/software/ELF.txta flat-text transcription of same..SH AUTHORBrian Raiter.IR <breadbox@muppetlabs.com> .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -