Readelf: Add --lto-syms option to display LTO symbol tables.
* readelf.c (do_lto_syms): New local. (long_option_values): Add OPTION_LTO_SYMS. (options): Add --lto-syms. (usage): Mention the new option. (parse_args): Parse the new option. (get_lto_kind): New function. (get_lto_visibility): New function. (get_lto_sym_type): New function. (display_lto_symtab): New function - displays the contents of an LTo symbol table section. (process_lto_symbol_tables): New functions. Calls dipslay_lto_symtab on any LTO symbol table section. (process_object_file): Call process_lto_symbol_tables. * doc/binutils.texi: Document the new option. * NEWS: Mention the new feature.
This commit is contained in:
parent
740341b9be
commit
0f03783c8e
4 changed files with 289 additions and 4 deletions
|
@ -4707,7 +4707,7 @@ readelf [@option{-a}|@option{--all}]
|
|||
[@option{-t}|@option{--section-details}]
|
||||
[@option{-e}|@option{--headers}]
|
||||
[@option{-s}|@option{--syms}|@option{--symbols}]
|
||||
[@option{--dyn-syms}]
|
||||
[@option{--dyn-syms}|@option{--lto-syms}]
|
||||
[@option{--demangle@var{=style}}|@option{--no-demangle}]
|
||||
[@option{--recurse-limit}|@option{--no-recurse-limit}]
|
||||
[@option{-n}|@option{--notes}]
|
||||
|
@ -4825,6 +4825,10 @@ 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
|
||||
@option{--syms} option.
|
||||
|
||||
@item --lto-syms
|
||||
@cindex LTO symbol table
|
||||
Displays the contents of any LTO symbol tables in the file.
|
||||
|
||||
@item -C
|
||||
@itemx --demangle[=@var{style}]
|
||||
@cindex demangling in nm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue