diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c31a0c9c786..e579742200c 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-06  Joseph Myers  <joseph@codesourcery.com>
+
+	* lib/ld-lib.exp (check_gc_sections_available): Return 0 for
+	*-*-mingw*.
+
 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
 
 	* ld-arm/arm-elf.exp (armeabitests): Restore thumb2-b-interwork.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 15ed41da962..05cdf1f14ea 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1592,7 +1592,8 @@ proc check_gc_sections_available { } {
 	# advertised by ld's options.
 	if { [istarget alpha*-*-*]
 	     || [istarget mep-*-*]
-	     || [istarget ia64-*-*] } {
+	     || [istarget ia64-*-*]
+	     || [istarget *-*-mingw*] } {
 	    set gc_sections_available_saved 0
 	    return 0
 	}