aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-04-11 15:57:26 +0100
committerNick Clifton <nickc@redhat.com>2024-04-11 15:57:26 +0100
commit8e8d0b63ff15896cc2c228c01f18dfcf2a4a9305 (patch)
tree1ab0338b6e5574386ef805bc7ae9a350082c3f87 /binutils/testsuite/binutils-all
parent31c21e2c13d85793b525f74aa911eb28700ed89c (diff)
downloadbinutils-8e8d0b63ff15896cc2c228c01f18dfcf2a4a9305.zip
binutils-8e8d0b63ff15896cc2c228c01f18dfcf2a4a9305.tar.gz
binutils-8e8d0b63ff15896cc2c228c01f18dfcf2a4a9305.tar.bz2
Add -j/--display-section option to readelf.
Diffstat (limited to 'binutils/testsuite/binutils-all')
-rw-r--r--binutils/testsuite/binutils-all/readelf.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index 399b3c7..b91134b 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -634,3 +634,11 @@ readelf_find_size $tempfile 2
# Make sure that readelf can decode the contents.
readelf_test -wi $tempfile dw5-op.W
}
+
+# Test the -j/--display-section option.
+# Check that multiple options accumulate.
+# Check that both numbers and names can be used.
+readelf_test {-j .rela.debug_info --display-section=.rel.debug_info} $tempfile display-section.r
+readelf_test --display-section=0 $tempfile display-section.0
+
+