From 40ca48d44fb8794633a466015ab5b34f978bf2c6 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao <xry111@xry111.site> Date: Thu, 6 Feb 2025 10:44:28 +0800 Subject: [PATCH] binutils: Drop stale references to gold I'm surprised --enable-gold doesn't cause an error when the tarball does not contain gold. --- chapter08/binutils.xml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index 6717543da..70f6bd026 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -57,7 +57,6 @@ cd build</userinput></screen> <screen><userinput remap="configure">../configure --prefix=/usr \ --sysconfdir=/etc \ - --enable-gold \ --enable-ld=default \ --enable-plugins \ --enable-shared \ @@ -70,14 +69,6 @@ cd build</userinput></screen> <variablelist> <title>The meaning of the new configure parameters:</title> - <varlistentry> - <term><parameter>--enable-gold</parameter></term> - <listitem> - <para>Build the gold linker and install it as ld.gold (alongside the - default linker).</para> - </listitem> - </varlistentry> - <varlistentry> <term><parameter>--enable-ld=default</parameter></term> <listitem> @@ -142,12 +133,6 @@ cd build</userinput></screen> <screen><userinput remap="test">grep '^FAIL:' $(find -name '*.log')</userinput></screen> - <para>Twelve tests fail in the gold test suite when the - <option>--enable-default-pie</option> and - <option>--enable-default-ssp</option> options are passed to GCC.</para> - - <!-- <para>Three tests in the gprofng suite are also known to fail.</para>--> - <para>Install the package:</para> <screen><userinput remap="install">make tooldir=/usr install</userinput></screen> @@ -167,7 +152,7 @@ cd build</userinput></screen> <segtitle>Installed directory</segtitle> <seglistitem> - <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, ld.gold, nm, + <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, nm, objcopy, objdump, ranlib, readelf, size, strings, and strip</seg> <seg>libbfd.so, libctf.so, libctf-nobfd.so, libgprofng.so, libopcodes.so, and libsframe.so</seg> @@ -277,17 +262,6 @@ cd build</userinput></screen> </listitem> </varlistentry> - <varlistentry id="ld.gold"> - <term><command>ld.gold</command></term> - <listitem> - <para>A cut down version of ld that only supports the - elf object file format</para> - <indexterm zone="ch-system-binutils ld.gold"> - <primary sortas="b-ld.gold">ld.gold</primary> - </indexterm> - </listitem> - </varlistentry> - <varlistentry id="ld.bfd"> <term><command>ld.bfd</command></term> <listitem>