From 006ed0368e8b992a325bf9522965ccb70f67c2f3 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 6 May 2007 08:36:44 +0000 Subject: Removed nodump attributes from chapter06 readjusting and GCC sanity checks. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8119 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/gcc.xml | 2 +- chapter06/readjusting.xml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'chapter06') 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 -- cgit v1.2.3-54-g00ecf