diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 00957838e66..24e8a9df2ac 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-18  Alan Modra  <amodra@gmail.com>
+
+	* ld-elf/init-mixed.c: Include config.h first.
+
 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* ld-arm/emit-relocs1-vxworks.d: Expect addend as signed.
diff --git a/ld/testsuite/ld-elf/init-mixed.c b/ld/testsuite/ld-elf/init-mixed.c
index 770a4b50e8f..f401ded4d70 100644
--- a/ld/testsuite/ld-elf/init-mixed.c
+++ b/ld/testsuite/ld-elf/init-mixed.c
@@ -1,8 +1,7 @@
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "config.h"
-
 #ifdef HAVE_INITFINI_ARRAY
 static int count;