diff options
author | Nick Clifton <nickc@redhat.com> | 2022-05-20 16:55:36 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-05-20 16:55:36 +0100 |
commit | 94585d6d4495a001dd5023f728150c96d5740ba8 (patch) | |
tree | e2ae934b5864bda0281b1dbf39e153018256451c /binutils/testsuite | |
parent | 9ecdcd1be1e8487fca035c588d17a102d1f8b5eb (diff) | |
download | binutils-gdb-94585d6d4495a001dd5023f728150c96d5740ba8.tar.gz |
Stop readekf and objdump from aggressively following links.
* dwarf.c (dwarf_select_sections_by_names): Return zero if no
sections were selected.
(dwarf_select_sections_by_letters): Likewise.
* dwarf.h: (dwarf_select_sections_by_names): Update prototype.
(dwarf_select_sections_by_letters): Update prototype.
* objdump.c (might_need_separate_debug_info): New function.
(dump_bfd): Call new function before attempting to load separate
debug info files.
(main): Do not enable dwarf section dumping for -WK or -WN.
* readelf.c (parse_args): Do not enable dwarf section dumping for
-wK or -wN.
(might_need_separate_debug_info): New function.
(process_object): Call new function before attempting to load
separate debug info files.
* testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
debuginfod tests to pass.
* testsuite/binutils-all/objdump.Wk: Add extra regexps.
* testsuite/binutils-all/readelf.k: Add extra regexps.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/binutils-all/debuginfod.exp | 4 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/objdump.Wk | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.k | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/binutils/testsuite/binutils-all/debuginfod.exp b/binutils/testsuite/binutils-all/debuginfod.exp index f5935ad0348..d0e6db23f34 100644 --- a/binutils/testsuite/binutils-all/debuginfod.exp +++ b/binutils/testsuite/binutils-all/debuginfod.exp @@ -189,7 +189,7 @@ if { [regexp ".*DEBUGINFOD.*" $conf_objdump] } { test_fetch_debugaltlink $OBJDUMP "-Wk" set test "disabling debuginfod access" - setup_xfail *-*-* + # setup_xfail *-*-* test_fetch_debuglink $OBJDUMP "-W -WE" set test "debuginfod" @@ -202,7 +202,7 @@ if { [regexp ".*DEBUGINFOD.*" $conf_readelf] } { test_fetch_debugaltlink $READELF "-wk" set test "disabling debuginfod access" - setup_xfail *-*-* + # setup_xfail *-*-* test_fetch_debuglink $READELF "-w -wE" set test "debuginfod" diff --git a/binutils/testsuite/binutils-all/objdump.Wk b/binutils/testsuite/binutils-all/objdump.Wk index 35472328fc2..b0d7b1a91f9 100644 --- a/binutils/testsuite/binutils-all/objdump.Wk +++ b/binutils/testsuite/binutils-all/objdump.Wk @@ -1,8 +1,9 @@ +#... tmpdir/debuglink\.o: file format .* -Contents of the \.gnu_debuglink section: +Contents of the \.gnu_debuglink section.* Separate debug info file: this_is_a_debuglink\.debug CRC value: 0x12345678 -Contents of the \.gnu_debugaltlink section: +Contents of the \.gnu_debugaltlink section.* Separate debug info file: linkdebug\.debug Build-ID \(0x18 bytes\): 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 01 23 45 67 89 ab cd ef diff --git a/binutils/testsuite/binutils-all/readelf.k b/binutils/testsuite/binutils-all/readelf.k index fe033421187..c2d03a0e477 100644 --- a/binutils/testsuite/binutils-all/readelf.k +++ b/binutils/testsuite/binutils-all/readelf.k @@ -1,7 +1,8 @@ -Contents of the \.gnu_debuglink section: +#... +Contents of the \.gnu_debuglink section.* Separate debug info file: this_is_a_debuglink\.debug CRC value: 0x12345678 -Contents of the \.gnu_debugaltlink section: +Contents of the \.gnu_debugaltlink section.* Separate debug info file: linkdebug\.debug Build-ID \(0x18 bytes\): 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 01 23 45 67 89 ab cd ef |