Changeset 62d3362


Ignore:
Timestamp:
01/30/2006 06:50:11 AM (18 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
28bb0634
Parents:
b87ea87
Message:

Adjust binutils-pass1 so we don't need to hang on to its source directories.
Also use 'gcc -dumpmachine' instead of the MACHTYPE var.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7316 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rb87ea87 r62d3362  
    3838
    3939    <listitem>
     40      <para>January 30, 2006</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jhuntwork] - Adjust binutils-pass1 so we don't need to hang on to its
     44          source directories. Also use 'gcc -dumpmachine' instead of the MACHTYPE var.</para>
     45        </listitem>
     46      </itemizedlist>
     47    </listitem>
     48
     49    <listitem>
    4050      <para>January 29, 2006</para>
    4151      <itemizedlist>
    4252        <listitem>
    43           <para>[jhuntwork] - Restore the use of *startfile_prefix_spec.
     53          <para>[jhuntwork] - Restore the use of *startfile_prefix_spec.</para>
    4454        </listitem>
    4555        <listitem>
    4656          <para>[jhuntwork] - Remove a spurious -i from the perl command when
    47           readjusting the toolchain. Thanks Dan Nicholson.
     57          readjusting the toolchain. Thanks Dan Nicholson.</para>
    4858        </listitem>
    4959      </itemizedlist>
  • chapter05/adjusting.xml

    rb87ea87 r62d3362  
    1616  compiler's specs file need to be adjusted.</para>
    1717
    18   <para>The linker, adjusted at the end of the first pass of Binutils,
    19   is installed by running the following command from within the
    20   <filename class="directory">binutils-build</filename> directory:</para>
     18  <para>The linker, adjusted at the end of the first pass of Binutils, needs
     19  to be renamed so that it can be properly found and used. First, backup the
     20  original linker, then replace it with the adjusted linker. We'll also
     21  create a link to its counterpart in <filename class="directory">
     22  /tools/$(gcc -dumpmachine)/bin</filename></para>
    2123
    22 <screen><userinput>make -C ld install</userinput></screen>
     24<screen><userinput>mv -v /tools/bin/{ld,ld-old}
     25mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
     26mv -v /tools/bin/{ld-new,ld}
     27ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
    2328
    2429  <para>From this point onwards, everything will link only against the
    2530  libraries in <filename class="directory">/tools/lib</filename>.</para>
    26 
    27   <note>
    28     <para>If the earlier warning to retain the Binutils source and
    29     build directories from the first pass was missed, ignore the above
    30     command. This results in a small chance that the subsequent testing
    31     programs will link against libraries on the host. This is not ideal,
    32     but it is not a major problem. The situation is corrected when the
    33     second pass of Binutils is installed later.</para>
    34   </note>
    35 
    36   <para>Now that the adjusted linker is installed, the Binutils build and source
    37   directories should be removed.</para>
    3831
    3932  <para>The next task is to point GCC to the new dynamic linker. This is done by
  • chapter05/binutils-pass1.xml

    rb87ea87 r62d3362  
    106106
    107107<screen><userinput>make -C ld clean
    108 make -C ld LIB_PATH=/tools/lib</userinput></screen>
     108make -C ld LDFLAGS="-s" LIB_PATH=/tools/lib
     109cp -v ld/ld-new /tools/bin</userinput></screen>
    109110
    110111    <variablelist>
     
    121122
    122123      <varlistentry>
    123         <term><parameter>-C ld LIB_PATH=/tools/lib</parameter></term>
     124        <term><parameter>-C ld LDFLAGS="-s" LIB_PATH=/tools/lib</parameter></term>
    124125        <listitem>
    125126          <para>This option rebuilds everything in the <filename
    126           class="directory">ld</filename> subdirectory. Specifying the
     127          class="directory">ld</filename> subdirectory. The
     128          <envar>LDFLAGS</envar> variable will build a static version of
     129          <command>ld</command>. Specifying the
    127130          <envar>LIB_PATH</envar> Makefile variable on the command line
    128131          allows us to override the default value and point it to the
     
    134137
    135138    </variablelist>
    136 
    137     <warning>
    138       <para><emphasis>Do not</emphasis> remove the Binutils build and source
    139       directories yet. These will be needed again in their current state later
    140       in this chapter.</para>
    141     </warning>
    142139
    143140  </sect2>
  • chapter06/readjusting.xml

    rb87ea87 r62d3362  
    2222<para>First, backup the <filename class="directory">/tools</filename> linker, and
    2323replace it with the adjusted linker we made in chapter 5. We'll also create a
    24 link to its counterpart in <filename class="directory">/tools/$MACHTYPE/bin</filename></para>
     24link to its counterpart in <filename class="directory">/tools/$(gcc -dumpmachine)/bin</filename></para>
    2525
    2626<screen><userinput>mv -v /tools/bin/{ld,ld-old}
    27 mv -v /tools/$MACHTYPE/bin/{ld,ld-old}
     27mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
    2828mv -v /tools/bin/{ld-new,ld}
    29 ln -sv /tools/bin/ld /tools/$MACHTYPE/bin/ld</userinput></screen>
     29ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
    3030
    3131<para>Next, amend the GCC specs file so that it points to the new
  • general.ent

    rb87ea87 r62d3362  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-20060129">
    3 <!ENTITY releasedate "January 29, 2006">
     2<!ENTITY version "SVN-20060130">
     3<!ENTITY releasedate "January 30, 2006">
    44<!ENTITY milestone "6.2">
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note: See TracChangeset for help on using the changeset viewer.