diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 11e36ad364d..5e9b9c1eea3 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,7 @@
 2010-09-29  Alan Modra  <amodra@gmail.com>
 
+	* ld-h8300/h8300.exp: Use is_elf_format.
+
 	* lib/ld-lib.exp (is_elf_format): Merge with binutils and gas versions.
 	(is_aout_format): Update target list.
 	(is_pecoff_format): Remove unnecessary line continuation.
diff --git a/ld/testsuite/ld-h8300/h8300.exp b/ld/testsuite/ld-h8300/h8300.exp
index 6051d9b4431..3604dfad8e9 100644
--- a/ld/testsuite/ld-h8300/h8300.exp
+++ b/ld/testsuite/ld-h8300/h8300.exp
@@ -1,5 +1,5 @@
 # Expect script for ld-h8300 tests
-# Copyright 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+# Copyright 2002, 2003, 2004, 2005, 2007, 2010 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -29,7 +29,7 @@ if ![istarget h8300-*-*] {
 
 run_dump_test relax
 
-if {[istarget *-elf]} {
+if [is_elf_format] {
     run_dump_test relax-2
     run_dump_test relax-3
     run_dump_test relax-4