]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Add ability to follow dwo links to readelf/objdump.
authorNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2017 13:12:04 +0000 (13:12 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2017 13:12:04 +0000 (13:12 +0000)
commitd85bf2ba86fea1cf918f065d179b98eb4ddbde86
treeb63b374b40e58403431a94352c421751d85127e9
parent0fc7642151cc5e62f05ac8ea91fe4d5b44bee11a
Add ability to follow dwo links to readelf/objdump.

* dwarf.c (dwo_name, dwo_dir, dwo_id, dwo_id_len): New variables.
(read_and_display_attr_value): Record dwo variables if requested.
(display_augmentation_data): Rename to display_data and make
generic.
(load_dwo_file): New function.  Loads a separate dwarf object
file.
(load_separate_debug_file): Add reporting and loading of separate
dwarf objet files.
* readelf.c (process_section_headers): Add do_debug_links to list
of flags requiring a debug dump.
(display_debug_section): Tidy up code.
* doc/debug.options.texi: Add note that dwo links will also be
followed.
* testsuite/binutils-all/debuglink.s: Tidy code.
* testsuite/binutils-all/dwo.s: New test file.
* testsuite/binutils-all/readelf.wk2: New file - expected output
from readelf.
* testsuite/binutils-all/readelf.exp: Run the new test.
binutils/ChangeLog
binutils/doc/debug.options.texi
binutils/dwarf.c
binutils/readelf.c
binutils/testsuite/binutils-all/debuglink.s
binutils/testsuite/binutils-all/dwo.s [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.exp
binutils/testsuite/binutils-all/readelf.k2 [new file with mode: 0644]