Fix implementation of readelf's -wE and -wN options,
commitaa40d66bb18c7aa068179f42de52327a0711834e
authorNick Clifton <nickc@redhat.com>
Thu, 30 Jun 2022 13:53:02 +0000 (30 14:53 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 30 Jun 2022 13:53:02 +0000 (30 14:53 +0100)
tree3bfae933ebf9f2e75d81787a4190de8b02940940
parent6418644b0d09af7d1334cc034a7bf8674c061d6e
Fix implementation of readelf's -wE and -wN options,

* dwarf.c (dwarf_select_sections_by_name): If the entry's value is
zero then clear the corresponding variable.
(dwarf_select_sections_by_letters): Likewise.
* testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
debuginfod tests to fail.
binutils/ChangeLog
binutils/dwarf.c
binutils/testsuite/binutils-all/debuginfod.exp