diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index 91a7bc0de..178e77ad2 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -34,7 +34,15 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld Next, amend the GCC specs file so that it points to the new dynamic linker, and so that GCC knows where to find its start files. - A perl command accomplishes this: + A perl command accomplishes this. + + + If working on a platform where the name of the dynamic linker is + something other than ld-linux.so.2, + substitute ld-linux.so.2 with the name of the platform's + dynamic linker in the following commands. Refer to if necessary. + gcc -dumpspecs | \ perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \ @@ -44,14 +52,6 @@ perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \ It is a good idea to visually inspect the specs file to verify the intended change was actually made. - - If working on a platform where the name of the dynamic linker is - something other than ld-linux.so.2, - substitute ld-linux.so.2 with the name of the platform's - dynamic linker in the above commands. Refer to if necessary. - - It is imperative at this point to ensure that the basic functions (compiling and linking) of the adjusted toolchain are working as expected. To do this, perform the following sanity checks: