diff --git a/chapter05/binutils-pass1-inst.xml b/chapter05/binutils-pass1-inst.xml index 7ac9f31c3..70b4abff8 100644 --- a/chapter05/binutils-pass1-inst.xml +++ b/chapter05/binutils-pass1-inst.xml @@ -81,9 +81,9 @@ variable specifies the linker's default library search path. You'll see how this preparation is utilised later on in the chapter. -Do not yet remove the Binutils build and source -directories. You will need them again in their current state a bit further on -in this chapter. +Do not yet remove the Binutils build and source directories. You +will need them again in their current state a bit further on in this +chapter. diff --git a/chapter05/binutils-pass2-inst.xml b/chapter05/binutils-pass2-inst.xml index 35bdae13d..7b46d7ce8 100644 --- a/chapter05/binutils-pass2-inst.xml +++ b/chapter05/binutils-pass2-inst.xml @@ -54,9 +54,9 @@ chapter: make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib -Do not yet remove the Binutils source and build -directories. We'll need these directories again in the next chapter in the -state they are in now. +Do not yet remove the Binutils source and build directories. +We'll need these directories again in the next chapter in the state they are in +now. diff --git a/chapter06/adjustingtoolchain.xml b/chapter06/adjustingtoolchain.xml index 4a79ba2bb..b033a8d3f 100644 --- a/chapter06/adjustingtoolchain.xml +++ b/chapter06/adjustingtoolchain.xml @@ -14,6 +14,16 @@ adjusted linker by running the following from within the make -C ld INSTALL=/tools/bin/install install +If you somehow missed the earlier warning to retain the Binutils +source and build directories from the second pass in Chapter 5 or otherwise +accidentally deleted them or just don't have access to them, don't worry, all is +not lost. Just ignore this step. The result will be that the next package, +Binutils, will link against the Glibc libraries in +/tools rather than +/usr. This is not ideal, however, our +testing has shown that the resulting Binutils program binaries should be +identical. + From now on every compiled program will link only against the libraries in /usr/lib and /lib. The extra diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index cd45f41a3..71df04e4c 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -7,6 +7,12 @@ the packages we need. Before you can chroot, however, you need to become root, since only root can execute the chroot command. +Just like earlier, ensure the LFS environment variable is set up properly +(if you decided to make use of it) by running echo $LFS +and ensuring it shows the path to your LFS partition's mount point, which is +/mnt/lfs if you followed our +example. + Become root and run the following command to enter the chroot environment: