This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Use a hash table for 26X linker speedup
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Cc: Nick Clifton <nickc at redhat dot com>,Alan Modra <amodra at bigpond dot net dot au>,hjl at lucon dot org
- Date: Sat, 1 Oct 2005 02:45:22 +0100
- Subject: Re: PATCH: Use a hash table for 26X linker speedup
- References: <200509291623.05312.stevenb@novell.com> <20050930013326.GX29044@bubble.grove.modra.org> <433D58DB.4020608@redhat.com>
> ld/testsuite/
> 2005-05-01 H.J. Lu <hongjiu.lu@intel.com>
>
> * ld-elf/sec64k.exp: Enabled for all ELF targets.
On an arm-none-eabi cross this test takes about 8 minutes to run on my
machine. This is about 25 times longer than the whole of the rest of the
binutils+gas+gdb testsuites put together.
Tests run on a 2GHz amd64, ie. not a slow machine.
A native i386 linker completes the test in a more reasonable time (~20
seconds), so this looks like an arm specific problem.
We should probably figure out what causing this slowness. Until that happens,
the patch below disable the test on arm targets.
Ok?
I'll file a bug in bugzilla to remind me/us that there's something slow in the
arm linker.
Paul
2005-10-01 Paul Brook <paul@codesourcery.com>
* ld-elf/sec64k.exp: Skip test on arm targets (too slow).
Index: ld/testsuite/ld-elf/sec64k.exp
===================================================================
RCS file: /var/cvsroot/src-cvs/src/ld/testsuite/ld-elf/sec64k.exp,v
retrieving revision 1.7
diff -u -p -r1.7 sec64k.exp
--- ld/testsuite/ld-elf/sec64k.exp 30 Sep 2005 17:45:54 -0000 1.7
+++ ld/testsuite/ld-elf/sec64k.exp 1 Oct 2005 01:38:20 -0000
@@ -24,6 +24,11 @@ if ![is_elf_format] {
return
}
+# For some reason this is painfully slow on arm targets, so skip it.
+if { [istarget arm*-*-*] } {
+ return
+}
+
# Test >64k sections, with and without -r. First, create the assembly
# files. Have a relocation to another section and one within the local
# section.