Changeset 006ed03
- Timestamp:
- 05/06/2007 08:36:44 AM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0a6f214
- Parents:
- a2ac094
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc.xml
ra2ac094 r006ed03 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" -
chapter06/readjusting.xml
ra2ac094 r006ed03 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>
Note:
See TracChangeset
for help on using the changeset viewer.