diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index 288e049f8..3db1fd945 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -161,7 +161,7 @@ cd ../gcc-build
href="readjusting.xml"
xpointer="xpointer(//*[@os='g'])"/>
-grep -B2 '^ /usr/include' dummy.log
+grep -B2 '^ /usr/include' dummy.log
functions (compiling and linking) of the adjusted toolchain are working
as expected. To do this, perform the following sanity checks:
-echo 'main(){}' > dummy.c
+echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
@@ -73,7 +73,7 @@ readelf -l a.out | grep ': /lib'
Now make sure that we're setup to use the correct startfiles:
-grep -o '/usr/lib.*/crt[1in].* .*' dummy.log
+grep -o '/usr/lib.*/crt[1in].* .*' dummy.log
If everything is working correctly, there should be no errors,
and the output of the last command will be:
@@ -85,7 +85,7 @@ readelf -l a.out | grep ': /lib'
Verify that the compiler is searching for the correct header
files:
-grep -B1 '^ /usr/include' dummy.log
+grep -B1 '^ /usr/include' dummy.log
This command should return successfully with the following output:
@@ -94,7 +94,7 @@ readelf -l a.out | grep ': /lib'
Next, verify that the new linker is being used with the correct search paths:
-grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
+grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
If everything is working correctly, there should be no errors,
and the output of the last command will be:
@@ -105,7 +105,7 @@ SEARCH_DIR("/lib");
Next make sure that we're using the correct libc:
-grep "/lib/libc.so.6 " dummy.log
+grep "/lib/libc.so.6 " dummy.log
If everything is working correctly, there should be no errors,
and the output of the last command will be:
@@ -114,7 +114,7 @@ SEARCH_DIR("/lib");
Lastly, make sure GCC is using the correct dynamic linker:
-grep found dummy.log
+grep found dummy.log
If everything is working correctly, there should be no errors,
and the output of the last command will be (allowing for
@@ -130,6 +130,6 @@ SEARCH_DIR("/lib");
Once everything is working correctly, clean up the test files:
-rm -v dummy.c a.out dummy.log
+rm -v dummy.c a.out dummy.log