aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-09-13 14:43:34 +0930
committerAlan Modra <amodra@gmail.com>2018-09-15 16:24:18 +0930
commit04ade4bc669b28b3994197d154cb392515c758d4 (patch)
tree90ab815a6febcd4e30c1c338cefe9258a5efbd80 /binutils
parenta3a6aef4090ca13d065d116f5d77f4e3f7bcbf9a (diff)
downloadgdb-04ade4bc669b28b3994197d154cb392515c758d4.zip
gdb-04ade4bc669b28b3994197d154cb392515c758d4.tar.gz
gdb-04ade4bc669b28b3994197d154cb392515c758d4.tar.bz2
Remove run_dump_test support for objcopy as a dump program
We have three copies of run_dump_test in the testsuite. This is a first step towards consolidating them. A few tests use objcopy to convert to verilog or srec output, then check that output is as expected. Those tests can just as easily use objdump, keeping the set of dump programs (addr2line, nm, objdump, readelf, size) separate from utilities under test. That in turn makes auto-detecting the dump program possible in more places. binutils/ * testsuite/binutils-all/group-7a.d, * testsuite/binutils-all/group-7b.d, * testsuite/binutils-all/group-7c.d, * testsuite/binutils-all/symbols-1.d, * testsuite/binutils-all/symbols-2.d, * testsuite/binutils-all/symbols-3.d, * testsuite/binutils-all/symbols-4.d: Remove DUMPPROG. gas/ * testsuite/gas/mri/char.d: Don't objcopy to srec, objdump instead. * testsuite/gas/mri/float.d: Likewise. * testsuite/lib/gas-defs.exp (run_dump_test): Remove support for objcopy as a dump tool. ld/ * testsuite/ld-elf/interleave-0.d, * testsuite/ld-elf/interleave-4.d: Don't objcopy to srec, objdump instead. * testsuite/ld-gc/all-debug-sections.d, * testsuite/ld-scripts/provide-4.d, * testsuite/ld-scripts/provide-5.d, * testsuite/ld-scripts/provide-6.d, * testsuite/ld-scripts/provide-7.d, * testsuite/ld-scripts/provide-8.d, * testsuite/ld-scripts/segment-start.d: Remove PROG, specify nm instead. * testsuite/lib/ld-lib.exp (run_dump_test): Remove support for objcopy as a dump tool.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog10
-rw-r--r--binutils/testsuite/binutils-all/group-7a.d1
-rw-r--r--binutils/testsuite/binutils-all/group-7b.d1
-rw-r--r--binutils/testsuite/binutils-all/group-7c.d1
-rw-r--r--binutils/testsuite/binutils-all/symbols-1.d1
-rw-r--r--binutils/testsuite/binutils-all/symbols-2.d1
-rw-r--r--binutils/testsuite/binutils-all/symbols-3.d1
-rw-r--r--binutils/testsuite/binutils-all/symbols-4.d1
8 files changed, 10 insertions, 7 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 929b4f3..d7ed7a8 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,13 @@
+2018-09-15 Alan Modra <amodra@gmail.com>
+
+ * testsuite/binutils-all/group-7a.d,
+ * testsuite/binutils-all/group-7b.d,
+ * testsuite/binutils-all/group-7c.d,
+ * testsuite/binutils-all/symbols-1.d,
+ * testsuite/binutils-all/symbols-2.d,
+ * testsuite/binutils-all/symbols-3.d,
+ * testsuite/binutils-all/symbols-4.d: Remove DUMPPROG.
+
2018-09-14 Alan Modra <amodra@gmail.com>
PR binutils/23633
diff --git a/binutils/testsuite/binutils-all/group-7a.d b/binutils/testsuite/binutils-all/group-7a.d
index fa8db60..8fdc6aa 100644
--- a/binutils/testsuite/binutils-all/group-7a.d
+++ b/binutils/testsuite/binutils-all/group-7a.d
@@ -1,7 +1,6 @@
#name: copy removing reloc group member
#source: group-7.s
#PROG: objcopy
-#DUMPPROG: readelf
#objcopy: --remove-section .data.foo
#readelf: -Sg --wide
diff --git a/binutils/testsuite/binutils-all/group-7b.d b/binutils/testsuite/binutils-all/group-7b.d
index b674545..c269116 100644
--- a/binutils/testsuite/binutils-all/group-7b.d
+++ b/binutils/testsuite/binutils-all/group-7b.d
@@ -1,7 +1,6 @@
#name: copy removing non-reloc group member
#source: group-7.s
#PROG: objcopy
-#DUMPPROG: readelf
#objcopy: --remove-section .data2.foo
#readelf: -Sg --wide
diff --git a/binutils/testsuite/binutils-all/group-7c.d b/binutils/testsuite/binutils-all/group-7c.d
index 83e9115..034a872 100644
--- a/binutils/testsuite/binutils-all/group-7c.d
+++ b/binutils/testsuite/binutils-all/group-7c.d
@@ -1,7 +1,6 @@
#name: copy removing reloc and non-reloc group member
#source: group-7.s
#PROG: objcopy
-#DUMPPROG: readelf
#objcopy: -R .data.foo -R .data2.foo
#readelf: -g --wide
diff --git a/binutils/testsuite/binutils-all/symbols-1.d b/binutils/testsuite/binutils-all/symbols-1.d
index a2d8f55..bfcd6aa 100644
--- a/binutils/testsuite/binutils-all/symbols-1.d
+++ b/binutils/testsuite/binutils-all/symbols-1.d
@@ -2,7 +2,6 @@
#PROG: objcopy
#objcopy: -w -L !foo -L fo*
#source: symbols.s
-#DUMPPROG: nm
#nm: -n
#...
diff --git a/binutils/testsuite/binutils-all/symbols-2.d b/binutils/testsuite/binutils-all/symbols-2.d
index 68fa673..b9fd907 100644
--- a/binutils/testsuite/binutils-all/symbols-2.d
+++ b/binutils/testsuite/binutils-all/symbols-2.d
@@ -2,7 +2,6 @@
#PROG: objcopy
#objcopy: -w -W !foo -W fo*
#source: symbols.s
-#DUMPPROG: nm
#nm: -n
#...
diff --git a/binutils/testsuite/binutils-all/symbols-3.d b/binutils/testsuite/binutils-all/symbols-3.d
index 0815238..d415e98 100644
--- a/binutils/testsuite/binutils-all/symbols-3.d
+++ b/binutils/testsuite/binutils-all/symbols-3.d
@@ -2,7 +2,6 @@
#PROG: objcopy
#objcopy: -w -W !foo -W fo* -L foo
#source: symbols.s
-#DUMPPROG: nm
#nm: -n
#...
diff --git a/binutils/testsuite/binutils-all/symbols-4.d b/binutils/testsuite/binutils-all/symbols-4.d
index 7480b0d..6dd2900 100644
--- a/binutils/testsuite/binutils-all/symbols-4.d
+++ b/binutils/testsuite/binutils-all/symbols-4.d
@@ -2,7 +2,6 @@
#PROG: objcopy
#objcopy: -w -W !foo -W !bar -W *
#source: symbols.s
-#DUMPPROG: nm
#nm: -n
#...