Enable the use .init_array and .fini_array sections in GCC

We should be using .init_array/.fini_array everywhere in Magenta.

Change-Id: Iee85e270bc51ccc32356a32b5fccf03cf5c66290
diff --git a/do-build b/do-build
index 94028af..a516b44 100755
--- a/do-build
+++ b/do-build
@@ -50,6 +50,7 @@
 # GCC
 CONFIG_GCC="--with-included-gettext: \
             --disable-werror: \
+            --enable-initfini-array: \
             --enable-languages=c,c++:\
             --with-gmp=: \
             --with-mpfr=: \
diff --git a/doit b/doit
index 8c8fe61..bd1e2d1 100755
--- a/doit
+++ b/doit
@@ -240,7 +240,7 @@
 
         mkdir -p $GCCBUILDPATH
         pushd $GCCBUILDPATH
-        log ../gcc-$GCC_VER/configure $COMMON_CONFIG --target=$TARGET --prefix=$INSTALLPATH --enable-languages=c,c++ $ARCH_OPTIONS --disable-werror
+        log ../gcc-$GCC_VER/configure $COMMON_CONFIG --target=$TARGET --prefix=$INSTALLPATH --enable-languages=c,c++ $ARCH_OPTIONS --disable-werror --enable-initfini-array
         log $MAKE all-gcc $PARALLEL
         log $MAKE all-target-libgcc $PARALLEL
         log $MAKE install-gcc