summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/update-section.exp
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/update-section.exp')
-rw-r--r--binutils/testsuite/binutils-all/update-section.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/update-section.exp b/binutils/testsuite/binutils-all/update-section.exp
index 4fd6a77214a..81a01b0a58b 100644
--- a/binutils/testsuite/binutils-all/update-section.exp
+++ b/binutils/testsuite/binutils-all/update-section.exp
@@ -82,6 +82,13 @@ foreach f [list update-1.s update-2.s update-3.s update-4.s] {
}
}
+# Check that we can dump empty sections.
+if { ![do_objcopy update-1.o "--dump-section .text=tmpdir/empty"] } {
+ fail "objcopy (dump empty section)"
+} else {
+ pass "objcopy (dump empty section)"
+}
+
if { ![do_objcopy update-1.o \
"--dump-section .foo=tmpdir/dumped-contents"]
|| ![do_objcopy update-2.o \