|
@@ -46,7 +46,7 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
|
|
cc dummy.c -v -Wl,--verbose &> dummy.log
|
|
cc dummy.c -v -Wl,--verbose &> dummy.log
|
|
readelf -l a.out | grep ': /lib'</userinput></screen>
|
|
readelf -l a.out | grep ': /lib'</userinput></screen>
|
|
|
|
|
|
- <para os="b">If everything is working correctly, there should be no errors,
|
|
|
|
|
|
+ <para os="b">There should be no errors,
|
|
and the output of the last command will be (allowing for
|
|
and the output of the last command will be (allowing for
|
|
platform-specific differences in dynamic linker name):</para>
|
|
platform-specific differences in dynamic linker name):</para>
|
|
|
|
|
|
@@ -59,8 +59,7 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
|
|
|
|
|
|
<screen os="e"><userinput>grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log</userinput></screen>
|
|
<screen os="e"><userinput>grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log</userinput></screen>
|
|
|
|
|
|
- <para os="f">If everything is working correctly, there should be no errors,
|
|
|
|
- and the output of the last command will be:</para>
|
|
|
|
|
|
+ <para os="f">The output of the last command should be:</para>
|
|
|
|
|
|
<screen><computeroutput>/usr/lib/crt1.o succeeded
|
|
<screen><computeroutput>/usr/lib/crt1.o succeeded
|
|
/usr/lib/crti.o succeeded
|
|
/usr/lib/crti.o succeeded
|
|
@@ -71,7 +70,7 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
|
|
|
|
|
|
<screen><userinput>grep -B1 '^ /usr/include' dummy.log</userinput></screen>
|
|
<screen><userinput>grep -B1 '^ /usr/include' dummy.log</userinput></screen>
|
|
|
|
|
|
- <para os="h">This command should return successfully with the following output:</para>
|
|
|
|
|
|
+ <para os="h">This command should return the following output:</para>
|
|
|
|
|
|
<screen><computeroutput>#include <...> search starts here:
|
|
<screen><computeroutput>#include <...> search starts here:
|
|
/usr/include</computeroutput></screen>
|
|
/usr/include</computeroutput></screen>
|
|
@@ -80,9 +79,7 @@ readelf -l a.out | grep ': /lib'</userinput></screen>
|
|
|
|
|
|
<screen os="j"><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>
|
|
<screen os="j"><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>
|
|
|
|
|
|
- <para os="k">If everything is working correctly, there should be no errors,
|
|
|
|
- and the output of the last command
|
|
|
|
- will be:</para>
|
|
|
|
|
|
+ <para os="k">The output of the last command should be:</para>
|
|
|
|
|
|
<screen><computeroutput>SEARCH_DIR("/usr/lib")
|
|
<screen><computeroutput>SEARCH_DIR("/usr/lib")
|
|
SEARCH_DIR("/lib");</computeroutput></screen>
|
|
SEARCH_DIR("/lib");</computeroutput></screen>
|
|
@@ -91,9 +88,8 @@ SEARCH_DIR("/lib");</computeroutput></screen>
|
|
|
|
|
|
<screen os="m"><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
|
|
<screen os="m"><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen>
|
|
|
|
|
|
- <para os="n">If everything is working correctly, there should be no errors,
|
|
|
|
- and the output of the last command (allowing for a lib64 directory on 64-bit hosts)
|
|
|
|
- will be:</para>
|
|
|
|
|
|
+ <para os="n">The output of the last command (allowing for a lib64 directory
|
|
|
|
+ on 64-bit hosts) should be:</para>
|
|
|
|
|
|
<screen os="o"><computeroutput>attempt to open /lib/libc.so.6 succeeded</computeroutput></screen>
|
|
<screen os="o"><computeroutput>attempt to open /lib/libc.so.6 succeeded</computeroutput></screen>
|
|
|
|
|
|
@@ -101,10 +97,9 @@ SEARCH_DIR("/lib");</computeroutput></screen>
|
|
|
|
|
|
<screen os="q"><userinput>grep found dummy.log</userinput></screen>
|
|
<screen os="q"><userinput>grep found dummy.log</userinput></screen>
|
|
|
|
|
|
- <para os="r">If everything is working correctly, there should be no errors,
|
|
|
|
- and the output of the last command will be (allowing for
|
|
|
|
- platform-specific differences in dynamic linker name and a lib64 directory
|
|
|
|
- on 64-bit hosts):</para>
|
|
|
|
|
|
+ <para os="r"> The output of the last command should be (allowing for
|
|
|
|
+ platform-specific differences in dynamic linker name and a lib64 directory on
|
|
|
|
+ 64-bit hosts):</para>
|
|
|
|
|
|
<screen os="s"><computeroutput>found ld-linux.so.2 at /lib/ld-linux.so.2</computeroutput></screen>
|
|
<screen os="s"><computeroutput>found ld-linux.so.2 at /lib/ld-linux.so.2</computeroutput></screen>
|
|
|
|
|