[committed] Use "nm" rather than "objdump -dr" on a 1GB MIPS testcase

Richard Sandiford rdsandiford@googlemail.com
Sat May 23 08:27:00 GMT 2009


Noticed while running the testsuite on an old laptop (512MB)
that the gas testsuite was thrashing and taking a long time to run.
It turned out that we were using "objdump -dr" on a 1GB file to
verify symbol values.

I checked the original submission:

    http://sourceware.org/ml/binutils/2007-09/msg00350.html

and the use of -dr didn't seem to be an important part of the test.
This patch changes it to use "nm" instead.  This means we no longer
have to walk through the contents of the .text section.

Tested on mipsisa64-elf and applied.

Richard


gas/testsuite/
	* gas/mips/align.d: Use an nm test rather than an objdump one.

Index: gas/testsuite/gas/mips/align.d
===================================================================
--- gas/testsuite/gas/mips/align.d	2009-05-23 09:24:05.000000000 +0100
+++ gas/testsuite/gas/mips/align.d	2009-05-23 09:24:09.000000000 +0100
@@ -1,14 +1,4 @@
-#objdump: -dr
+#nm: -n
 #name: MIPS align maximum 
-
-# Test the align macro at maximum alignment.
-
-.*:  +file format .*mips.*
-
-Disassembly of section .text:
-
-[0]*00000000 <foo>:
-	...
-
-[0]*10000000 <bar>:
-	...
+0*00000000 t foo
+0*10000000 t bar



More information about the Binutils mailing list