Peter Ennis <peterennis <at> yahoo.com> writes:
>
> Perhaps a test script at the earliest needed points in Ch5 and Ch6
> could be added in the FAQ that would provide a definitive
> pass and fail status?
>
A little snippet that does the trick for Ch5:
echo
echo "=> Test for correct toolchain readjustment"
programinterpreter=$(readelf -l a.out | grep ': /tools')
echo "=> \${programinterpreter}="${programinterpreter}
if echo "${programinterpreter}" | grep -q "[Requesting program interpreter:
/tools/lib/ld-linux.so.2]" ; then
echo "=> ${programinterpreter} - FOUND"
else
echo "=> ${programinterpreter} - NOT FOUND - ERROR!"
exit 1
fi
(NOTE: The if ... then is one line, so watch for line wrapping with C&P)
Thanks,
Peter
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page