The following instructions are written for MacOS users but should apply to any unix-like system, with maybe some modifications at the end regarding the bash_profile.
Create destination dir for binutils
sudo mkdir -p /opt/crossCreate and enter local working dir
mkdir ~/binutils-tmp
cd ~/binutils-tmpGet and extract binutils source
wget https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
tar xjf binutils-2.35.tar.bz2Create and enter build dir
mkdir build-binutils
cd build-binutilsConfigure the build
../binutils-2.35/configure --target=mips-linux-gnu --prefix=/opt/cross --disable-gprof --disable-gdb --disable-werrorMake and install binutils
make -j
sudo make installEdit your ~/.bash_profile to add the new binutils binaries to the system PATH
echo "export PATH=$PATH:/opt/cross/bin" >> ~/.bash_profileReload ~/.bash_profile (or just launch a new terminal tab)
source ~/.bash_profile