From 8119fa0e62405aa787b9743362fd68cb10cf46b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 8 Dec 2019 17:48:40 +0000 Subject: [PATCH] use readelf in a way that it prints less output --- testdata/scripts/basic.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testdata/scripts/basic.txt b/testdata/scripts/basic.txt index a63ac9f..cd95967 100644 --- a/testdata/scripts/basic.txt +++ b/testdata/scripts/basic.txt @@ -18,9 +18,9 @@ cmp stderr main.stderr grep $WORK main # The default build includes DWARF and the symbol table. -exec readelf --section-details --symbols main -stdout 'debug_info$' -stdout 'globalVar' +exec readelf --section-headers main +stdout 'debug_info' +stdout '\.symtab' # The default build includes full non-trimmed paths. grep $WORK main @@ -34,9 +34,9 @@ exec go build -a -trimpath -toolexec=garble main.go exec ./main cmp stderr main.stderr -exec readelf --section-details --symbols main -! stdout 'debug_info$' -! stdout 'globalVar' +exec readelf --section-headers main +! stdout 'debug_info' +! stdout '\.symtab' ! grep $WORK main