
Chapter 15.
readelf
readelf [-a|--all]
[-h|--file-header]
[-l|--program-headers|--segments]
[-S|--section-headers|--sections]
[-e|--headers]
[-s|--syms|--symbols]
[-n|--notes]
[-r|--relocs]
[-u|--unwind]
[-d|--dynamic]
[-V|--version-info]
[-A|--arch-specific]
[-D|--use-dynamic]
[-x
number |--hex-dump= number ]
[-w[liaprmfFso]|
--debug-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames-interp,=str,=loc]]
[-I|-histogram]
[-v|--version]
[-W|--wide]
[-H|--help]
elffile...
readelf displays information about one or more ELF format object files. The options control what
particular information to display.
elffile. . . are the object files to be examined. 32-bit and 64-bit ELF files are supported, as are
archives containing ELF files.
This program performs a similar function to objdump but it goes into more detail and it exists inde-
pendently of the bfd library, so if there is a bug in bfd then readelf will not be affected.
The long and short forms of options, shown here as alternatives, are equivalent. At least one option
besides -v or -H must be given.
-a
-all
Equivalent to specifiying -file-header, -program-headers, -sections, -symbols,
-relocs, -dynamic, -notes and -version-info.
-h
-file-header
Displays the information contained in the ELF header at the start of the file.
-l
-program-headers
-segments
Displays the information contained in the file’s segment headers, if it has any.
Kommentare zu diesen Handbüchern