fixed wrong linker
authorReto Achermann <acreto@emmentaler1.ethz.ch>
Mon, 24 Mar 2014 14:59:16 +0000 (15:59 +0100)
committerStefan Kaestle <stefan.kaestle@inf.ethz.ch>
Wed, 20 Aug 2014 13:27:56 +0000 (15:27 +0200)
tools/k1om/binutils-2.24-barrelfish.patch
tools/k1om/build-toolchain.sh

index 43838ec..eb223d2 100644 (file)
@@ -19,7 +19,7 @@ index 5324d39a21cb..3f0119ab2649 100644
      ;;
 +  x86_64-k1om-barrelfish*)
 +    targ_defvec=bfd_elf64_x86_64_vec
-+    targ_selvecs="bfd_elf32_x86_64_vec i386linux_vec x86_64pei_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
++    targ_selvecs="bfd_elf32_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
 +    want64=true
 +    ;;
 +  x86_64-*-barrelfish*)
@@ -157,9 +157,9 @@ index c50730b9c514..27702cbedc3a 100644
                        targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
                        tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
                        tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
-+x86_64-k1om-barrelfish*) targ_emul=barrelfish_k1om 
-+                      targ_extra_emuls="elf_l1om elf_k1om" 
-+                      targ_extra_libpath="elf_l1om elf_k1om"          ;;
++x86_64-k1om-barrelfish*) targ_emul=elf_k1om 
++                      targ_extra_emuls="barrelfish_k1om elf_l1om elf_x86_64" 
++                      targ_extra_libpath="elf_l1om barrelfish_k1om elf_x86_64"                ;;
 +x86_64-*-barrelfish*) targ_emul=barrelfish_x86_64 ;;
  i[3-7]86-*-sysv[45]*) targ_emul=elf_i386 ;;
  i[3-7]86-*-solaris2*) targ_emul=elf_i386_sol2
index 639db04..3d25afe 100755 (executable)
@@ -91,7 +91,6 @@ pushd ${BINUTILS}-build/
 ../${BINUTILS}/configure \
     --prefix="${TOOLCHAIN_PREFIX}" \
     --target="${TARGET}" \
-    --enable-gold=default \
     --enable-threads \
     --enable-lto \
     --enable-plugins \
@@ -100,7 +99,6 @@ make -j${MAKE_JOBS}
 make install-strip
 popd  # ${BINUTILS}-build/
 
-
 # 2. GCC - GNU Compiler Collection
 wget "ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/${GCC}/${GCC}.tar.bz2"
 tar xjvf ${GCC}.tar.bz2