diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2021-09-17 21:43:15 -0500 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2021-09-17 21:43:15 -0500 |
commit | 7e62bbc5065ed196872a223c6558b89d4f9bce6d (patch) | |
tree | 25d13e2b3eb97aee43981f1f62da7ea2fa247c9b /part3intro/toolchaintechnotes.xml | |
parent | 43b6ecdc1fd6df576cba795798d35dc72fd6d557 (diff) |
Tweak toolchain technical notes wording
Diffstat (limited to 'part3intro/toolchaintechnotes.xml')
-rw-r--r-- | part3intro/toolchaintechnotes.xml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/part3intro/toolchaintechnotes.xml b/part3intro/toolchaintechnotes.xml index ed5afc03b..72e3ab703 100644 --- a/part3intro/toolchaintechnotes.xml +++ b/part3intro/toolchaintechnotes.xml @@ -38,9 +38,9 @@ <title>About Cross-Compilation</title> <para>Cross-compilation involves some concepts that deserve a section on - their own. Although this section may be omitted in a first reading, it - is strongly suggested to come back to it later in order to get a full - grasp of the build process.</para> + their own. Although this section may be omitted in a first reading, + coming back to it later will be beneficial to your full understanding of + the process.</para> <para>Let us first define some terms used in this context:</para> @@ -67,7 +67,7 @@ <para>As an example, let us imagine the following scenario (sometimes referred to as <quote>Canadian Cross</quote>): we may have a - compiler on a slow machine only, let's call the machine A, and the compiler + compiler on a slow machine only, let's call it machine A, and the compiler ccA. We may have also a fast machine (B), but with no compiler, and we may want to produce code for another slow machine (C). To build a compiler for machine C, we would have three stages:</para> @@ -141,7 +141,7 @@ cpu-vendor-kernel-os referred to as the machine triplet. An astute reader may wonder why a <quote>triplet</quote> refers to a four component name. The reason is history: initially, three component names were enough - to designate unambiguously a machine, but with new machines and systems + to designate a machine unambiguously, but with new machines and systems appearing, that proved insufficient. The word <quote>triplet</quote> remained. A simple way to determine your machine triplet is to run the <command>config.guess</command> @@ -156,9 +156,9 @@ linker <command>ld</command> that is part of binutils). The dynamic linker provided by Glibc finds and loads the shared libraries needed by a program, prepares the program to run, and then runs it. The name of the - dynamic linker for a 32-bit Intel machine will be <filename - class="libraryfile">ld-linux.so.2</filename> (<filename - class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems). A + dynamic linker for a 32-bit Intel machine is <filename + class="libraryfile">ld-linux.so.2</filename> and is<filename + class="libraryfile">ld-linux-x86-64.so.2</filename> for 64-bit systems. A sure-fire way to determine the name of the dynamic linker is to inspect a random binary from the host system by running: <userinput>readelf -l <name of binary> | grep interpreter</userinput> and noting the @@ -167,7 +167,7 @@ tree.</para> </note> - <para>In order to fake a cross compilation, the name of the host triplet + <para>In order to fake a cross compilation in LFS, the name of the host triplet is slightly adjusted by changing the "vendor" field in the <envar>LFS_TGT</envar> variable. We also use the <parameter>--with-sysroot</parameter> option when building the cross linker and @@ -295,7 +295,7 @@ checking what linker to use... /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ld</compute always use the compiler relating to the <parameter>--host</parameter> parameter passed to its configure script; e.g. in our case, the compiler will be <command>$LFS_TGT-gcc</command>. The binary tools and kernel - headers can be a bit more complicated. Therefore, take no risks and use + headers can be a bit more complicated. Therefore, we take no risks and use the available configure switches to enforce the correct selections. After the run of <command>configure</command>, check the contents of the <filename>config.make</filename> file in the <filename |