diff options
author | Pierre Labastie <pierre.labastie@neuf.fr> | 2021-09-20 13:13:35 +0200 |
---|---|---|
committer | Pierre Labastie <pierre.labastie@neuf.fr> | 2021-09-20 13:13:35 +0200 |
commit | 0bf23c841e6573eb8b6117a98ddc1fd7225dfcd0 (patch) | |
tree | 161bd33a86345848393792f62ffea9f1e5a81192 | |
parent | 4809582902edddeff30dae6693447382ef69f3db (diff) | |
parent | d887817942f47b63fd9b81b0c074ab87ab718af0 (diff) |
Merge branch 'trunk' into plabs/condxml
-rw-r--r-- | general.ent | 1 | ||||
-rw-r--r-- | part3intro/toolchaintechnotes.xml | 20 |
2 files changed, 10 insertions, 11 deletions
diff --git a/general.ent b/general.ent index b3526641e..6cb34ee97 100644 --- a/general.ent +++ b/general.ent @@ -19,7 +19,6 @@ <!ENTITY releasedate "August 26th, 2021"> <!ENTITY copyrightdate "1999-2021"> --> -<!-- jhalfs needs a literal dash, not – --> <![ %sysv; [ <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 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 |