This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]