From 1f536265dd95eaecbd3d666a788351c108caee35 Mon Sep 17 00:00:00 2001 From: Greg Schafer Date: Tue, 16 Sep 2003 07:28:26 +0000 Subject: Add sanity checks and some notes on the toolchain testsuites. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2825 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/adjustingtoolchain.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'chapter06/adjustingtoolchain.xml') diff --git a/chapter06/adjustingtoolchain.xml b/chapter06/adjustingtoolchain.xml index fd5ba1676..522727785 100644 --- a/chapter06/adjustingtoolchain.xml +++ b/chapter06/adjustingtoolchain.xml @@ -43,5 +43,33 @@ is unavoidable, but luckily does not present a problem. There are no libraries in that location as all the temporary tools libraries are located in /tools/lib. +It is imperative at this point to stop and ensure that the +basic functionality of the adjusted toolchain is working as expected. We are +going to perform a simple sanity check: + +echo 'main(){}' > dummy.c +gcc dummy.c +readelf -l a.out | grep ': /lib' + +If everything is working correctly, the output of the last command will +be: + +[Requesting program interpreter: /lib/ld-linux.so.2] + + +If you did not receive the output as shown above then something is +seriously wrong. You will need to investigate and retrace your steps to find +out where the problem is and correct it. There is no point in continuing +until this is done. Most likely, something went wrong with the specs file +amendment above. Note especially that /lib now appears as +the prefix of our dynamic linker. Of course, if you are working on a platform +where the name of the dynamic linker is something other than +ld-linux.so.2 then the output will be slightly different. + +Once you are satisfied that all is well, clean up the test files: + +rm dummy.c a.out + + -- cgit v1.2.3-54-g00ecf