Enable gold linker. (XCC)
authorDan Cross <dcross@google.com>
Sat, 14 Mar 2015 01:35:32 +0000 (21:35 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 17 Mar 2015 15:07:41 +0000 (11:07 -0400)
tools/compilers/gcc-glibc/Makefile
tools/compilers/gcc-glibc/binutils-2.24-akaros.patch

index 91a7bc9..f7344c8 100644 (file)
@@ -223,7 +223,7 @@ native-binutils-configure:
                --prefix=$(INSTDIR) \
                --disable-werror \
                --enable-ld=yes \
-               --enable-gold=no \
+               --enable-gold=yes \
                --with-pkgversion="akaros-repo" \
                --disable-multilib \
                --disable-nls
@@ -238,7 +238,7 @@ cross-binutils-configure:
                --prefix=$(INSTDIR) \
                --disable-werror \
                --enable-ld=yes \
-               --enable-gold=no \
+               --enable-gold=yes \
                --with-pkgversion="akaros-repo" \
                --disable-multilib \
                --disable-nls \
index ad974b0..8ccc83b 100644 (file)
@@ -1,6 +1,6 @@
-diff -ruN binutils-2.24/bfd/config.bfd binutils-2.24-ros/bfd/config.bfd
---- binutils-2.24/bfd/config.bfd       2013-11-04 07:33:37.000000000 -0800
-+++ binutils-2.24-ros/bfd/config.bfd   2014-12-02 15:59:22.911111195 -0800
+diff -ur binutils-2.24/bfd/config.bfd binutils-2.24-ros/bfd/config.bfd
+--- binutils-2.24/bfd/config.bfd       2013-11-04 10:33:37.000000000 -0500
++++ binutils-2.24-ros/bfd/config.bfd   2015-03-13 19:04:52.880987644 -0400
 @@ -538,6 +538,9 @@
    i[3-7]86-*-aros*)
      targ_defvec=bfd_elf32_i386_vec
@@ -23,9 +23,9 @@ diff -ruN binutils-2.24/bfd/config.bfd binutils-2.24-ros/bfd/config.bfd
    x86_64-*-dicos*)
      targ_defvec=bfd_elf64_x86_64_vec
      targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
-diff -ruN binutils-2.24/config.sub binutils-2.24-ros/config.sub
---- binutils-2.24/config.sub   2013-11-26 03:37:33.000000000 -0800
-+++ binutils-2.24-ros/config.sub       2014-12-02 15:59:22.911111195 -0800
+diff -ur binutils-2.24/config.sub binutils-2.24-ros/config.sub
+--- binutils-2.24/config.sub   2013-11-26 06:37:33.000000000 -0500
++++ binutils-2.24-ros/config.sub       2015-03-13 19:04:52.884987755 -0400
 @@ -1356,7 +1356,7 @@
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
              | -sym* | -kopensolaris* | -plan9* \
@@ -35,9 +35,18 @@ diff -ruN binutils-2.24/config.sub binutils-2.24-ros/config.sub
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
-diff -ruN binutils-2.24/configure binutils-2.24-ros/configure
---- binutils-2.24/configure    2013-11-08 02:13:48.000000000 -0800
-+++ binutils-2.24-ros/configure        2014-12-02 15:59:22.915111218 -0800
+diff -ur binutils-2.24/configure binutils-2.24-ros/configure
+--- binutils-2.24/configure    2013-11-08 05:13:48.000000000 -0500
++++ binutils-2.24-ros/configure        2015-03-13 19:06:34.523764718 -0400
+@@ -2953,7 +2953,7 @@
+       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
+       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
+       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
+-      | *-*-solaris2* | *-*-nto* | *-*-nacl*)
++      | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-akaros*)
+         case "${target}" in
+           *-*-linux*aout* | *-*-linux*oldld*)
+             ;;
 @@ -7027,6 +7027,10 @@
    *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
    *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
@@ -49,9 +58,9 @@ diff -ruN binutils-2.24/configure binutils-2.24-ros/configure
  
  # On systems where the dynamic library environment variable is PATH,
  # gcc/ will put dynamic libraries into a subdirectory to avoid adding
-diff -ruN binutils-2.24/gas/configure.tgt binutils-2.24-ros/gas/configure.tgt
---- binutils-2.24/gas/configure.tgt    2013-11-04 07:33:37.000000000 -0800
-+++ binutils-2.24-ros/gas/configure.tgt        2014-12-02 15:59:22.915111218 -0800
+diff -ur binutils-2.24/gas/configure.tgt binutils-2.24-ros/gas/configure.tgt
+--- binutils-2.24/gas/configure.tgt    2013-11-04 10:33:37.000000000 -0500
++++ binutils-2.24-ros/gas/configure.tgt        2015-03-13 19:04:52.888987865 -0400
 @@ -206,6 +206,7 @@
    i386-*-beos*)                               fmt=elf ;;
    i386-*-coff)                                fmt=coff ;;
@@ -60,9 +69,9 @@ diff -ruN binutils-2.24/gas/configure.tgt binutils-2.24-ros/gas/configure.tgt
    i386-*-kaos*)                               fmt=elf ;;
    i386-*-bsd*)                                fmt=aout em=386bsd ;;
    i386-*-nacl*)                               fmt=elf em=nacl
-diff -ruN binutils-2.24/ld/configure.tgt binutils-2.24-ros/ld/configure.tgt
---- binutils-2.24/ld/configure.tgt     2013-11-26 03:37:33.000000000 -0800
-+++ binutils-2.24-ros/ld/configure.tgt 2014-12-02 15:59:22.915111218 -0800
+diff -ur binutils-2.24/ld/configure.tgt binutils-2.24-ros/ld/configure.tgt
+--- binutils-2.24/ld/configure.tgt     2013-11-26 06:37:33.000000000 -0500
++++ binutils-2.24-ros/ld/configure.tgt 2015-03-13 19:04:52.888987865 -0400
 @@ -284,6 +284,10 @@
                        targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
                        tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`