public inbox for
 help / color / mirror / Atom feed
* [COMMITTED] Adjust test-case for readelf with =follow-links.
@ 2020-10-08 12:17 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2020-10-08 12:17 UTC (permalink / raw)
  To: dwz; +Cc: Mark Wielaard

Newer binutils readelf have =follow-links which is automatically
enabled with -w. This shows not only the debuginfo of the main file
but also that of the alt file referenced. This causes the
to see "too many" DW_TAG_partial_units (from both files) which then
doesn't matches the number of DW_AT_imports. The fix is simply to
use -wi instead of -w since we are only interested in the .debug_info
DIEs anyway.

	* testsuite/dwz.tests/ Use readelf -wi.
 testsuite/dwz.tests/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/dwz.tests/ b/testsuite/dwz.tests/
index b03fdf9..4dac9a1 100644
--- a/testsuite/dwz.tests/
+++ b/testsuite/dwz.tests/
@@ -5,7 +5,7 @@ cp 1 2
 dwz -m 3 1 2
-readelf -w 1 > READELF 2>/dev/null
+readelf -wi 1 > READELF 2>/dev/null
 offsets=$(grep '(DW_TAG_partial_unit' READELF \
 	      | awk '{print $1}' \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-08 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08 12:17 [COMMITTED] Adjust test-case for readelf with =follow-links Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).