Changeset 8119
- Timestamp:
- 05/06/07 02:36:44 (2 years ago)
- Files:
-
- trunk/BOOK/chapter06/gcc.xml (modified) (1 diff)
- trunk/BOOK/chapter06/readjusting.xml (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BOOK/chapter06/gcc.xml
r7972 r8119 162 162 xpointer="xpointer(//*[@os='g'])"/> 163 163 164 <screen role="nodump"><userinput>grep -B2 '^ /usr/include' dummy.log</userinput></screen>164 <screen><userinput>grep -B2 '^ /usr/include' dummy.log</userinput></screen> 165 165 166 166 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" trunk/BOOK/chapter06/readjusting.xml
r7986 r8119 59 59 as expected. To do this, perform the following sanity checks:</para> 60 60 61 <screen role="nodump"os="a"><userinput>echo 'main(){}' > dummy.c61 <screen os="a"><userinput>echo 'main(){}' > dummy.c 62 62 cc dummy.c -v -Wl,--verbose &> dummy.log 63 63 readelf -l a.out | grep ': /lib'</userinput></screen> … … 74 74 <para os="d">Now make sure that we're setup to use the correct startfiles:</para> 75 75 76 <screen role="nodump"os="e"><userinput>grep -o '/usr/lib.*/crt[1in].* .*' dummy.log</userinput></screen>76 <screen os="e"><userinput>grep -o '/usr/lib.*/crt[1in].* .*' dummy.log</userinput></screen> 77 77 78 78 <para os="f">If everything is working correctly, there should be no errors, … … 86 86 files:</para> 87 87 88 <screen role="nodump"><userinput>grep -B1 '^ /usr/include' dummy.log</userinput></screen>88 <screen><userinput>grep -B1 '^ /usr/include' dummy.log</userinput></screen> 89 89 90 90 <para os="h">This command should return successfully with the following output:</para> … … 95 95 <para os="i">Next, verify that the new linker is being used with the correct search paths:</para> 96 96 97 <screen role="nodump"os="j"><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen>97 <screen os="j"><userinput>grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'</userinput></screen> 98 98 99 99 <para os="k">If everything is working correctly, there should be no errors, … … 106 106 <para os="l">Next make sure that we're using the correct libc:</para> 107 107 108 <screen role="nodump"os="m"><userinput>grep "/lib/libc.so.6 " dummy.log</userinput></screen>108 <screen os="m"><userinput>grep "/lib/libc.so.6 " dummy.log</userinput></screen> 109 109 110 110 <para os="n">If everything is working correctly, there should be no errors, … … 115 115 <para os="p">Lastly, make sure GCC is using the correct dynamic linker:</para> 116 116 117 <screen role="nodump"os="q"><userinput>grep found dummy.log</userinput></screen>117 <screen os="q"><userinput>grep found dummy.log</userinput></screen> 118 118 119 119 <para os="r">If everything is working correctly, there should be no errors, … … 131 131 <para os="u">Once everything is working correctly, clean up the test files:</para> 132 132 133 <screen role="nodump"os="v"><userinput>rm -v dummy.c a.out dummy.log</userinput></screen>133 <screen os="v"><userinput>rm -v dummy.c a.out dummy.log</userinput></screen> 134 134 135 135 </sect1>
