Skip to content

Instantly share code, notes, and snippets.

@sebsto
Last active May 2, 2024 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebsto/219315a80333fb0661e03be2e0d00c80 to your computer and use it in GitHub Desktop.
Save sebsto/219315a80333fb0661e03be2e0d00c80 to your computer and use it in GitHub Desktop.
Installl `ld.gold` on Amazon Linux 2023
#!/bin/bash
dnf install gmp-devel mpfr-devel texinfo bison git gcc-c++ -y
mkdir ld.gold && cd ld.gold
git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils
mkdir build && cd build
../binutils/configure --enable-gold --enable-plugins --disable-werror
make all-gold
cd gold
make all-am
cd ..
cp gold/ld-new /usr/bin/ld.gold
cd ../..
/usr/bin/ld.gold -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment