# HG changeset patch # User Mike Hommey # Date 1527842921 -32400 # Fri Jun 01 17:48:41 2018 +0900 # Node ID 42ff6656917e95d2919f9cee84ef69afba595f14 # Parent 05dd49ca42ade71cc2b994f5bbe6e3e2fa960dec Bug 1466060 - Upgrade to binutils 2.28.1. r=nalexander Version 2.25.1's libiberty can choke on some symbols. That was fixed in 2.27. As of writing, the last version is 2.30. Conservatively go with 2.28.1, which is the same major version (2.28) as what is currently in Debian stable. diff --git a/build/unix/build-binutils/build-binutils.sh b/build/unix/build-binutils/build-binutils.sh --- a/build/unix/build-binutils/build-binutils.sh +++ b/build/unix/build-binutils/build-binutils.sh @@ -1,26 +1,26 @@ #!/bin/bash -binutils_version=2.25.1 +binutils_version=2.28.1 make_flags='-j12' root_dir="$1" if [ -z "$root_dir" -o ! -d "$root_dir" ]; then root_dir=$(mktemp -d) fi cd $root_dir if test -z $TMPDIR; then TMPDIR=/tmp/ fi # Download the source of the specified version of binutils -wget -c --progress=dot:mega -P $TMPDIR ftp://ftp.gnu.org/gnu/binutils/binutils-${binutils_version}.tar.bz2 || exit 1 -tar xjf $TMPDIR/binutils-${binutils_version}.tar.bz2 +wget -c --progress=dot:mega -P $TMPDIR ftp://ftp.gnu.org/gnu/binutils/binutils-${binutils_version}.tar.xz || exit 1 +tar xJf $TMPDIR/binutils-${binutils_version}.tar.xz # Build binutils mkdir binutils-objdir cd binutils-objdir ../binutils-$binutils_version/configure --prefix /tools/binutils/ --enable-gold --enable-plugins --disable-nls || exit 1 make $make_flags || exit 1 make install $make_flags DESTDIR=$root_dir || exit 1