Changeset 98e7ac4 for chapter06/adjusting.xml
- Timestamp:
- 12/18/2016 03:14:26 PM (6 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, 8.0, 8.0-rc1, 8.1, 8.1-rc1, 8.1-rc2, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, arm, cross-chap5, ml-11.0, multilib, old-trunk, s6-init, trunk, xry111/arm64, xry111/clfs-ng, xry111/git-transition, xry111/glibc-2.34, xry111/glibc-2.37, xry111/kcfg-revise, xry111/lfs-next, xry111/pip3, xry111/queue-11.3, xry111/rust-wip-20221008, xry111/tester-nohack, xry111/usr-move
- Children:
- ed3be61
- Parents:
- be3d9f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/adjusting.xml
rbe3d9f3 r98e7ac4 51 51 platform-specific differences in dynamic linker name):</para> 52 52 53 <screen os="c"><computeroutput>[Requesting program interpreter: /lib /ld-linux.so.2]</computeroutput></screen>53 <screen os="c"><computeroutput>[Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]</computeroutput></screen> 54 54 55 55 <para>Note that <filename class="directory">/lib</filename> is now 56 56 the prefix of our dynamic linker.</para> 57 57 58 <note><para>On 64-bit systems the interpreter should be59 /lib 64/ld-linux-x86-64.so.2.</para></note>58 <note><para>On 32-bit systems the interpreter should be 59 /lib/ld-linux.so.2.</para></note> 60 60 61 61 <para os="d">Now make sure that we're setup to use the correct start files:</para> … … 65 65 <para os="f">The output of the last command should be:</para> 66 66 67 <screen><computeroutput>/usr/lib/crt1.o succeeded 68 /usr/lib/crti.o succeeded 69 /usr/lib/crtn.o succeeded</computeroutput></screen> 70 71 <note><para>On 64-bit systems, the path above will be 72 /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib64/. This 73 reduces to /usr/lib64 and /usr/lib64 is a symlink that points to 74 /usr/lib.</para></note> 67 <screen><computeroutput>/usr/lib/../lib/crt1.o succeeded 68 /usr/lib/../lib/crti.o succeeded 69 /usr/lib/../lib/crtn.o succeeded</computeroutput></screen> 75 70 76 71 <para os="g">Verify that the compiler is searching for the correct header … … 92 87 93 88 <screen><computeroutput>SEARCH_DIR("/usr/lib") 94 SEARCH_DIR("/lib") ;</computeroutput></screen>89 SEARCH_DIR("/lib")</computeroutput></screen> 95 90 96 91 <para os="l">Next make sure that we're using the correct libc:</para> … … 98 93 <screen os="m"><userinput>grep "/lib.*/libc.so.6 " dummy.log</userinput></screen> 99 94 100 <para os="n">The output of the last command (allowing for a lib64 directory 101 on 64-bit hosts) should be:</para> 95 <para os="n">The output of the last command should be:</para> 102 96 103 97 <screen os="o"><computeroutput>attempt to open /lib/libc.so.6 succeeded</computeroutput></screen> … … 107 101 <screen os="q"><userinput>grep found dummy.log</userinput></screen> 108 102 109 <para os="r"> The output of the last command should be (allowing for 110 platform-specific differences in dynamic linker name and a lib64 directory on 111 64-bit hosts):</para> 103 <para os="r">The output of the last command should be (allowing for 104 platform-specific differences in dynamic linker name):</para> 112 105 113 <screen os="s"><computeroutput>found ld-linux .so.2 at /lib/ld-linux.so.2</computeroutput></screen>106 <screen os="s"><computeroutput>found ld-linux-x86-64.so.2 at /lib/ld-linux-x86-64.so.2</computeroutput></screen> 114 107 115 108 <para os="t">If the output does not appear as shown above or is not received
Note:
See TracChangeset
for help on using the changeset viewer.