Hi,

I would like to propose adding more sanity checks to the book since
toolchain adjustment seems to be the primary source of operator error
for newbies.  Here's what I'm thinking.

Ch. 5.7 Adjusting:
gcc dummy.c -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /tools'  # confirms specs specify new linker
grep 'SEARCH_DIR.*/tools/lib'  # confirms ld search path has changed

Ch. 5.8 Tcl:
After installation, check that binaries are actually using the new
dynamic linker:
readelf -l /tools/bin/tclsh8.4 | grep ': /tools'  # or grep 'ld-linux' with note

Ch. 5.31 Stripping (or here about)
Redo 5.7 sanity check to save the trouble of setting up and entering
the chroot environment if the toolchain isn't working.

Ch. 6.13 Readjusting
Change the glibc startfile check (see
http://linuxfromscratch.org/pipermail/lfs-dev/2006-March/056408.html)
grep '/usr/lib.*/crt[1in].*succeeded' dummy.log

Ch. 6.14 GCC
After installation, check that binaries are actually using the new
dynamic linker.
readelf -l /usr/bin/cc | grep ': /lib'

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to