]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Readelf: Add --lto-syms option to display LTO symbol tables.
authorNick Clifton <nickc@redhat.com>
Mon, 19 Oct 2020 14:27:58 +0000 (15:27 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Oct 2020 14:27:58 +0000 (15:27 +0100)
commit0f03783c8e9f14d02749081815949493bb28d4e3
tree013d8f81c9a7a9daf9802858b06b1f6b791c0124
parent740341b9be657772538f9cf0b563c49798f47b3c
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.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/readelf.c